Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by bregarious · Jan 04 at 06:51 PM · rdpstreaming price

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!

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by nick.zincone.1 · Jan 04 at 09:14 PM

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"]}')) 
Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
bregarious · Jan 05 at 08:58 AM 0
Share

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?

avatar image
nick.zincone.tr bregarious · Jan 05 at 03:25 PM 0
Share

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.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
12 People are following this question.

Related Questions

How to Plot Streaming Data from ek.StreamingPrices?

refinitiv data api via Python cannot retrieve some RICS

[Eikon Python API] How to specify the source in StreamingPrices?

StreamingPrices limits on Data API

Data fields for the Eikon streaming API

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges