cefi

A python package to interact with Crypto Exchanges (CCXT library) and brokers (IB & Capital.com)

MIT License

Downloads
9.8K
Stars
2
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)