Futures, Options & Invoice Spread

Hi everyone,

How can I get the list of options (using the python api query) on bond futures such as FGBLZ4?
What is the field to extract the invoice spread on the same instrument?

Thank you

Best Answer

  • aramyan.h
    aramyan.h admin
    Answer ✓

    Hi @s.vincent ,


    You can get chain constituents using the Chain capabilities from RD Libraries for Python:

    import refinitiv.data as rd
    from refinitiv.data.discovery import Chain
    rd.open_session()
    constituents = Chain(name="0#FGBL:").constituents
    constituents
    ['FGBLZ4', 'FGBLH5', 'FGBLM5']

    Then if you use the get_data function and pass the RICs, it will return all available pricing fields for the given instruments:

    rd.get_data(universe=constituents)


    screenshot-2024-10-15-at-180322.png

    You can further request specific fields by using fields paramaters of the function and passing the list of fields.


    Hope this helps.


    Best regards,

    Haykaz


Answers

  • Hi @haykaz.aramyan

    when executing the code, I received the following error msg

    refinitiv.data._errors.RDError: Error code NotEntitled | Access Denied: User req to PE(8151)
    universe: 0#FGBL:

    Any idea what might be the cause?

    Thank you



  • Hi @s.vincent ,


    As the error suggest, you are not permissioned to that. I would advice raising this with your Account Manager to enable your access to it.


    Best regards,

    Haykaz