...
Code Block | ||
---|---|---|
| ||
# placing a market order every 30 seconds from trade29.sc.bridge import SCBridge import time bridge = SCBridge() while True: print('placing order') bridge.submit_order('xx', is_buy=1, order_type=0, attach_orders_sc_trade_window=1) time.sleep(30) |
get graph data
See here for more: graph_data_request
Code Block | ||
---|---|---|
| ||
from trade29.sc.bridge import SCBridge bridge = SCBridge() request_id = bridge.graph_data |
...
_request(key='xx', base_data='1;4')
messages = bridge.get_response_queue()
while True:
msg = messages.get()
print(msg.df)
|
Support and Help
Email: support@trade29.com
...