Retrieving historical bid-ask quotes for bonds

Options

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.


Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • aramyan.h
    aramyan.h admin
    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

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.