question

Upvotes
Accepted
31 7 13 17

API for get_data not working

Hi,

the following query is not working at the moment:


rd.get_data(
universe=['LSEG.L', 'VOD.L'],
fields=["TR.AdjmtFactorAdjustmentDate", "TR.AdjmtFactorAdjustmentFactor", "TR.AdjmtFactorAdjustmentType", "TR.AdjmtFactorUnderlyingEventId", "TR.CACorpActEventType"],
parameters = {'SDate': '2010-01-01', 'EDate': '2024-06-1'}
)

Is there a global issue?

Thanks

Simon

python#technology#productfundamental-data
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
10.6k 20 6 9

@simon.keel thanks for you question and sorry to hear about your issue - I can also replicate the issue you are experiencing - it should be returning data as I can see there is data available in the Data Item Browser app - I have opened up Case number: 13652738 on your behalf. They will reach out to you shortly. I hope this can help.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thank you!

Upvote
18.6k 85 39 63

Hi @simon.keel

I was able to retrieve data in my tests. For example, I first attempt to retrieve data without the specification of parameters (date range):


I then applied the date range:

1718632475591.png

Perhaps there may have been a global issue when both you and @jason.ramchandani01 tried. Can you try again?


1718632441718.png (28.1 KiB)
1718632475591.png (60.4 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

thanks @nick.zincone ! for me the results still are empty, also after restart of workspace...

Hi @simon.keel

If you are still seeing no data, I would suggest you enable logging so you can clearly see what is going on. You can enable logging via configuration or in code. For example, in code:

# Enable logging
rd.get_config()["logs.level"] = "debug"

# Console
rd.get_config()["logs.transports.console.enabled"] = True
Upvotes
31 7 13 17

hi @nick.zincone , thanks for your help, i was connected to the wrong datacenter, now works again...


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.