question

Upvotes
Accepted
16 1 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.

1 Answer

Upvotes
Accepted
39.3k 76 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.