Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
63 10 17 19

Server side operations for RD.get_history()

I am using the Refinitiv data library for Python.

I was looking to calculate the bid-ask spread on 5-minute intervals for a month for an ETF.

Currently, I get the history
x = rd.get_history(universe = x_ticker, interval = '5min', start = MTH_START, end = MTH_END, fields = ['BID','ASK'])

and calculate the min, max and mean spread locally. Can I do the calculation on LSEG and just get the min, max and mean spreads?

eikon-data-api#productrefinitiv-data-libraries
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
79.2k 251 52 74

@rajanraju

Thank you for reaching out to us.

The library retrieves the intraday summary data of the real-time fields (no TR. prefix) from the historical pricing endpoint on the Data Platform.

As far as I know, the historical pricing endpoint on the Data Platform doesn't support server-side calculations.


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
63 10 17 19

Many thanks, @Jirapongse.

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.