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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
12 1 2 5

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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
capture1.png (19.2 KiB)
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
629 2 4 7

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea