How do extract symbols that fulfil regex criteria in datastream?

Options

How do extract symbols that fulfil regex criteria in datastream?

For instance, when I type SPXw, I can see a list of options RIC/ Mnemonic in DFO Navigator.

I want this to an output from a python function.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @kenneth.fung

    You can DS.SYMBOLLOOKUP with the DataStream.

    ds.get_data(tickers="SPXw", fields=["DS.SYMBOLLOOKUP(Count=50)"],  kind=0)

    The output is:

    image

Answers