question

Upvotes
Accepted
1 0 1 2

python如何获取一个指标的field='GEN_VAL1'的数据,需要历史数据

ticker是2YSB-USG-A1,

field是GEN_VAL1,

需要历史数据,

请问用python怎么写脚本?能否给个范例,谢谢!

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-data-platform-eikon
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.

Upvotes
Accepted
78.2k 246 52 72

@yl

I checked and found that 140 is a value of FUT_BASIS in the RDP historical-pricing endpoint.

1634176339476.png

Typically, the get_timeseries method in the Eikon Data API can retrieve history data of Open, High, Low, Close fields.

As mentioned by my colleague, you can try other products, such as Refinitiv Tick History or Refinitiv Data Platform to get historical data of FUT_BASIS.


1634176339476.png (27.3 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.

Upvotes
21.8k 57 14 21

Hello @yl,

The GEN_VAL1 is a real time field, which implies that historical data is not available within Eikon data API. If you open the data item browser, it will show that this field does not have a "series checkbox" in the parameters.


1634134035173.png

If you are interested in historical data, other products like Refinitiv Tickhistory can provide this.


1634134035173.png (36.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.

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.