question

Upvotes
Accepted
16 3 1 5

cannot get data for delisted stock

Hi, when I run the following command, I got "400 bad request". Do you know how I can get data for the delisted stock? thanks.

ek.get_data(['RAI.^G17'], ['TR.SgaExpenseTotal.Date','TR.SgaExpenseTotal'],{'SDate':'2013-01-01','EDate':'2015-12-31'})

eikoneikon-com-apidata
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.

@dxu

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such. Thanks, AHS

1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 77 11 27

The RIC in your request is wrong. It's either missing the exchange suffix or it has the dot where one shouldn't be. Try instead either 'RAI.N^G17' or 'RAI^G17'.
The "bad request" error however is likely to be the symptom of a timeout. See this thread for more details:
https://community.developers.refinitiv.com/questions/22857/backend-error-400-bad-request.html

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.