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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 2

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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

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 5.0 MiB each and 10.0 MiB total.

Upvotes
3 0 0 2

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea