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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
11 1 2 4

get_data() frequency and improved documentation.

I am looking to get the average bid/ask price for the last 30 days. After playing with the get_data() function, I was able to get daily requests. However, there is no documentation for changing the frequency. The best resources I could find are below (and this took about 15 minutes to find).

https://community.developers.refinitiv.com/questions/52700/get-data-specify-time-interval.html



Two things:

1. Is there documentation of the fields for each function? If not, can this please be added. It's very inefficient to search through the forum for notation that should be in the docs.

2. How do you change the interval in get_data() to hourly, tick, minute, etc.?


Thanks in advance!



eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythondocumentation
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
18k 21 12 20

Hi @michaelberk99


Q1. Is there documentation of the fields for each function? If not, can this please be added. It's very inefficient to search through the forum for notation that should be in the docs.


The different fields have different supported parameters.

You are correct to use "Data Item Browser" to see all the supported parameters on each field.


To pass in parameters, you can do it at field level (Copy the formula generated from Data Item Browser, see bottom right after you select any prefer parameters).

Or you can pass in the parameter which should apply to all the fields in your request.


The document for get_data() is at this url.

The document for "Data Item Browser" is at this url.


Q2. How do you change the interval in get_data() to hourly, tick, minute, etc.?

I believe that field available from "Data Item Browser" to be used with get_data() does not support "intraday" interval.



ahs.png (82.0 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.

Hi Chavalit - thanks for the response! I'm aware of the get_data() documentation and the Data Item Browser, but where is the "Frq" field documentation? The high-level function documentation is good, but no specifics provided. Here's an example of what's needed. For question 2, if this is the case, how do I get intraday bid/ask data?

The "Frq" parameter is a field-specific parameter.

Not every field supports it.

For example, TR.CompanyMarketCap support timeseries and you can use DIB to see what are the available Frq.

M = Monthly, W = Weekly, ... as you could see its document/specification within DIB


get_timeseries() support intraday interval but it also depends on the instrument as well.

And it can only retrieve "default" view of the data.

So you can test it with the instrument you have.

ahs.png (71.2 KiB)
ahs2.png (39.3 KiB)

Great thanks! Extremely helpful.

Click below to post an Idea Post Idea