question

Upvotes
Accepted
7 1 0 4

Is there any way to retrieve Spread chain historical/time series as well as Live data using Eikon API or Refinitiv API?

I wanted to retrieve the historical/time series data for several Products of FI, C&E such 0#FF-:, 0#FEI-: similarly for other chains using Eikon API

I was able to retrieve live data using get_data() but are there any other available methods thank you

eikon-data-apirefinitiv-dataplatform-eikon#technologyrefinitiv-data-platformpython api
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.

1 Answer

· Write an Answer
Upvotes
Accepted
15.6k 33 5 10

Hi @dhruv.singh.1 ,

As answered in this thread, the code below can be used with Refinitiv Data Library to get the chain's constituents and retrieve their historical data

import refinitiv.data as rd
from refinitiv.data.discovery import Chain

rd.open_session()

chain = Chain(name="0#FF-:")

# print number of chain's constituents
print(len(chain.constituents))

# get history of first 10 constituents in the chain (for example)
rd.get_history(chain.constituents[:10])

1693563066337.png

Python helper function can be used to check available parameters of get_history function and some example

help(rd.get_history)

1693563126706.png

Hope this helps and please let me know in case you have any further questions.


1693563066337.png (113.0 KiB)
1693563126706.png (70.9 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.