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


Keywords
cex, cefi, crypto, exchange, broker, capitalcom, ccxt, interactive-brokers, package, python, talky
License
MIT
Install
pip install cefi==6.0.9

Documentation




Logo







Interact with centralized trading platforms (CEX)
supported by CCXT, Capital.com, DEGIRO, IBKR and others.
How to use it
  
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)
Documentation