...
Code Block |
---|
from trade29.sc.bridge import SCBridge # create the bridge object bridge = SCBridge() # subscribe to time and sales data bridge.time_and_sales_request('xx') # get access to the response queue messages = bridge.get_response_queue() # go into a while loop, wait for messages and print them out while True: msg = messages.get() print(msg.df) |
market depth (TBD)
order management
...
...
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) |
graph data (TBD)
Support and Help
...