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
3 2 3 4

How to retrieve data at specific time and date

import refinitiv.dataplatform as rdp

import datetime


rdp.open_desktop_session('DEFAULT_CODE_BOOK_APP_KEY')

rdp.get_historical_price_summaries(

universe = 'EUR=',

interval = rdp.Intervals.ONE_MINUTE,

count = 10,

SDate: 0,

EDate:- 4,

fields = ['BID','ASK']

)

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-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.

@avishen.bablee

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Upvote
Accepted
4.3k 2 4 5

Hi,

You can set range of dates with start/end parameters.

In your example, you refer to relative dates, but you can also set specific dates :

result = rdp.get_historical_price_summaries(universe="EUR=",
                                            start="2020-08-01T00:00:00.000000000Z",
                                            end="2020-08-10T00:00:00.000000000Z")

If you set an interval , take care about teh range you request.


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
3 2 3 4

Thanks Pierre. Is there any document which i can refer to.

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.