question

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

hi @Jirapongse , I saw you helped answer such questions for PYTHON EIKON, translated this question to English. Not sure if you know the answer. Thanks!


How does python get the data of an indicator's field='GEN_VAL1', which requires historical data ticker is 2YSB-USG-A1, field is GEN_VAL1, Need historical data, How to write scripts in python? Can you give me an example, thank you!

您好 @yl ,感谢您参与本论坛并提出问题。不知道以下回答有没有帮助?如果您觉得对解答满意,欢迎您点击‘接纳’按钮,以方便有类似问题的访客检索到问题。如果仍然需要支持,欢迎回复以提供更多信息。谢谢。

Hello @yl ,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

-AHS

Upvotes
Accepted
78.8k 250 52 74

@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
22k 58 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.