Skip to content
/ cefi Public
generated from mraniki/template

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

License

Notifications You must be signed in to change notification settings

mraniki/cefi

Repository files navigation




Logo







Interact with Centralised Exchanges (CEX)
supported by CCXT or Broker (IB & Capital.com).
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