How to load in live options quote data in Python using Workspace API?

I currently have Workspace open and I am looking at the derivatives tab of the SPX. It has exactly what I am looking for: different strike prices with different maturity dates and bid, ask, volume, and open interest data on those derivatives.

I am trying to load that exact data into my own Python program in real time using the api provided through Workspace. I already have a working api key and I can make basic calls about the latest prices of underlying assets and other information. What I have not been able to find is how to load live options data specifically. I have found the data item browser information for the SPX, but I do not see the relevant field for options quote data anywhere.

It's also important that I load this data using a streaming endpoint for maximum speed. I have seen example streaming code in the codebook for python, but I do not know which data fields to use to stream this live options data.

Thanks for taking the time to help me out, I really appreciate it.

Best Answer

  • aramyan.h
    aramyan.h admin
    Answer ✓

    Hi @nathan03 ,


    To see the all streaming fields for an instruments you can use the example here and miss the fields parameter and it will return all fields coming to the stream. See below:

    stream = rd.open_pricing_stream(
    universe=['1SPXFZ3'],
    on_data=display_data
    )

    screenshot-2023-11-23-at-101612.png

    Hope this will help.


    Best regards,

    Haykaz

Answers