Mapping data through the API

Hi all, I try to map the some features to each bond in my file. My file contains 50,000 individual bonds and I use loop and

"rd.get_data(universe = ['US010609FF77'], fields = ['TR.FiBankQualified', 'TR.FiInsuredCusipFlag'])"

to map the Data. However, after mapping around 4,000 bonds successfully, the codebook fails to return any value the rest of the day, even for a single bond. Could anyone tell me what's going on or give me some suggestions how I can achieve the mapping successfully? Thanks for your help!

Best Answer

  • raksina.samasiri
    Answer ✓

    Hi @aiden.tao ,

    It seems that the limit has been reached, you can check the detail in Eikon Data API Usage and Limits Guideline (If you are connecting using a desktop session to Eikon or Workspace via RD Library - the same limit as Eikon API applies - as the RD Library is mimicking the Eikon API and still sourcing its data from Eikon.)

    I'm not sure which limit is reached. However, could you try calling the rd.get_data with multiple instruments instead of looping through them, for example

    rd.get_data(universe = ['INSTRUMENT1,'INSTRUMENT2','INSTRUMENT3'','INSTRUMENT4']
    , fields = ['TR.FiBankQualified', 'TR.FiInsuredCusipFlag'])

    Hope this help and please let me know in case you have any further questions.