Skip to content
/ cefi Public
generated from mraniki/template

A Python package to interact with centralized trading platforms (CEX) supported by CCXT, Capital.com, DEGIRO, IBKR and others

License

Notifications You must be signed in to change notification settings

mraniki/cefi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation




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