Retrieving historical bid-ask quotes for bonds

Is it possible to retrieve historical values for the fields "PRIMACT_1" (bid) and "SEC_ACT_1" (ask)? Currently i can only manage to retrieve the live value from those fields through the eikon API. I currently use R for this, but i could also use python, if there is better support for the API there.


Best Answer

  • aramyan.h
    Answer ✓

    Hi @ss01 ,


    You can use RD Libraries for python:

    import refinitiv.data as rd
    rd.open_session()
    rd.get_history('594918BB9=')

    This will return all available pricing fields for the instrument:

    screenshot-2024-04-19-at-140808.png

    Then you can use the field parameter to specify fields if you want to:

    rd.get_history('594918BB9=', fields=['BID', "ASK"])


    Hope this helps.


    Best regards,

    Haykaz

Answers