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
1 1 1 1

What is a "universe" in the rdp.steamingPrices API for news headlines

streaming_prices = rdp.StreamingPrices(

universe = ['NFCP_UBMS'],

on_update = lambda streaming_price, instrument_name, fields :

display_news_headline(streaming_prices, instrument_name, fields)

)


So the code block above has a universe. And I'm not sure what it means and what values it takes in. Could someone help me out please?


Thank you!

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

Thank you for your participation in the forum.
Is the reply below satisfactory in resolving your query?
If yes please click the 'Accept' text next to the reply.
This will guide all community members who have a similar question.
Otherwise please post again offering further insight into your question.
Thanks,
AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


1 Answer

· Write an Answer
Upvotes
Accepted
17.2k 82 39 63

Hi @bregarious,

The universe parameter in the rdp.StreamingPrices() refers to the list of instruments or RICs that provide real-time, streaming updates. In your case, you are specifying a streaming news headline RIC ('NFCP_UBMS') which will return headlines and some other metadata fields.

If you simply want to use the 'NFCP_UBMS' streaming RIC to retrieve streaming headlines, try this:

sp = rdp.StreamingPrices(universe = ['NFCP_UBMS'], 
           on_update = lambda streaming_price, instrument_name, fields : 
               print(f'Headline => {fields["HEADLINE1"]}')) 
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.

Hi,

Thank you for the answer. Is there any documentation on what values can be populated with the universe? And what data those values will provide?

Hi @bregarious,

The universe represents an identifier that describes what data you are looking for. If you want to understand what values you can use, I would start with the RIC Search utility: https://developers.refinitiv.com/en/tools-catalog/ric-search. You can find this link from the home page of the Developer Community. Additionally, you can navigate within your Refinitiv Workspace/Eikon desktop to discover the nature of the items you can use within the APIs. For example, typing in an expression such as "Apple" will pull up the RIC AAPL.O.

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.