Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Verify the library installation

...

...

Hello World

The following provides short videos and code snippets demonstrating hello world level usage of the libraries.

  • Time and sales

  • Market depth

  • Submitting orders

  • Accessing graph data

time and sales

...

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)

 

...