Exchanges
Hawkbot provides an abstraction layer on exchange-implementations, making sure that the rest of the code doesn't need to know exchange-specific details. This allows for example the core, plugins and strategies to interact with and receive updates from exchange-related information in a more abstract way.
Currently, the following exchanges are implemented:
Exchange | configuration key |
---|---|
Binance futures | binance |
Binance testnet | binance-testnet |
Binance spot | binance-spot |
Bybit | bybit |
Bybit testnet | bybit-testnet |
CCXT | ccxt |
When using CCXT, it will require you to add an extra configuration property exchange_type
in the account.json file.
An example for using CCXT with binance is shown below:
"ccxt_01": {
"exchange": "ccxt",
"exchange_type": "binanceusdm",
"key": "",
"secret": ""
},
If you provide a value for exchange_type that is not supported by CCXT, Hawkbot will provide an error listing all the support exchange types.
If you have a desire to have a new exchange added you can reach out to discuss.