|
|
|
Interact with centralized trading platforms (CEX) supported by CCXT, Capital.com, DEGIRO, IBKR and others. |
cex = CexTrader()
balance = await cex.get_balances()
print("balance ", balance)
symbol = "BTC"
quote = await cex.get_quotes(symbol)
print("quote ", quote)
order = {
"action": "BUY",
"instrument": "BTC",
"quantity": 1,
}
order = await cex.submit_order(order)
print("order ", order)