- Go to https://github-dev.orderly.network/broker-registration
- Connect your wallet
- Select "EOA wallet"
- Select the broker id Mode or enter manually "mode"
- Click on "Register Account" and sign the message
- Select scope "read,trading" and click on "Create Orderly key" and sign the message (the key will expire in 1 year)
- Copy your Orderly account ID, Orderly public key and private key
- Create the
.envfile based on the example and populate the values - You can deposit: go to the "Assets" tab, enter an amount and proceed to the deposit
You can also deposit and withdraw from the Mode Trade UI: https://trade.mode.network
python3.10 -m venv venv
source venv/bin/activate
pip install -r requirements
You can use the ccxt library for Mode Trade exchange.
import ccxt
exchange = ccxt.modetrade(
{
"apiKey": os.environ.get("MODE_TRADE_PUBLIC_KEY"),
"secret": os.environ.get("MODE_TRADE_PRIVATE_KEY"),
"accountId": os.environ.get("MODE_TRADE_ACCOUNT_ID")
}
)
# Load the markets to get trading pairs info.
markets = exchange.load_markets()
print("markets:", markets)
currencies = exchange.fetch_currencies()
print("currencies:", currencies)
balance = exchange.fetch_balance()
print("balance: ", balance)python example_ccxt.py
Once you have your Orderly account ID, public key, and private key, you can use them to configure the Freqtrade bot. The following steps will guide you through the process of setting up Freqtrade with the Mode Trade exchange.
freqtrade create-userdir --userdir datafreqtrade trade --userdir data --strategy SampleStrategy
config.json
{
"exchange": {
"name": "modetrade",
"key": "orderly public key",
"secret": "orderly secret key",
"accountId": "orderly account id"
}
}This project is for educational purposes only. It is not intended to be used for trading or investment purposes. The authors and contributors are not responsible for any losses or damages that may occur as a result of using this project. Always do your own research and consult with a financial advisor before making any investment decisions.
This project is licensed under the MIT License.