Welcome to TruBit-Python
Install
pip install broker-trade-clientUsage
REST API
b = BrokerClient(entry_point='', api_key='', secret='')b = BrokerOptionClient(entry_point='', api_key='', secret='')b = BrokerContractClient(entry_point='', api_key='', secret='')proxies = {
"http": "http://ip:port",
"https": "http://ip:port",
}
b = BrokerClient(entry_point='', api_key='', secret='', proxies=proxies)Web Socket
API List
Public API
ping
time
broker info
depth
trades
klines
ticker 24hr
Private API
new order
get order
cancel order
open orders
history orders
account
my trades
deposit orders
Examples
Last updated