question

Upvotes
Accepted
7 1 2 4

Streaming 1min bars from Refinitiv Data Library for Python

Does the Refinitiv Data Library for Python (link) support streaming 1 minute OHLC bars?

I.e. allow to open a subscription and await/stream the bars as they come in, using a websockets-like event based framework.


As opposed to having to query them repetitively with the REST rd.get_history function.

#productpython apirefinitiv-data-platform-librariesstreaming-data
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
19k 85 39 63

Hi @pvklooster

The Refinitiv Data Library for Python does not presently support streaming timeseries bars. However, this is something that will be worked on in 2023. No timelines have been set for the Python implementation. However, the Refinitiv Data Library for .Net is planning a release of this capability in Q1 2023.

Hope this helps.

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.

Upvote
19k 85 39 63

Hi @pvklooster

I just received word that you can try the following feature (this may have been addressed on another thread - but here is a bit of sample code):

def print_history(history, recorder):
    print(history)

stream = rd.open_pricing_stream(universe=["EUR="], fields=["BID", "ASK"])

stream.recorder.record(frequency="5s", duration="60s", on_data=print_history)
stream.close()

history = stream.recorder.get_history()
print(history)
rd.close_session()
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.