Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
12 4 4 9

EIKON API - download of EIA statistics

I'd like to download, using the Python API , the time series of the weekly EIA(DOE) statistics of oil inventories. I can see this data in Eikon (see attachment) but I can't download it in the API using get_timeseries ( I tried to use the RIC "CS-STK-T-EIA" , but it wont work)

How can I do it?

Thanks

capture1.png

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
capture1.png (19.2 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.

Hello @davide.costanzo,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the 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
644 4 7 8

This data is released weekly, so you need to make sure to stipulate a "weekly" interval when retrieving.

EIA = ek.get_timeseries(["CS-STK-T-EIA"],["CLOSE"], start_date = "2019-01-01", end_date = "2019-01-20", interval="weekly")

EIA.head(3)


eia.png (30.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.

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.