Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Refinitiv Data Platform /
  • Refinitiv Data Platform Libraries /
avatar image
Question by jian.lu · Nov 09, 2020 at 03:09 AM · pythonrdp-apirefinitiv-data-platformrefinitiv-data-platform-libraries

Python RDP get_historical_price_summaries

hi, i noticed there is no error msg returned for get_historical_price_summaries, but instead a "None" is returned even you input an invalid ric. is there a way to turn on the error msg?

example:

df = rdp.get_historical_price_summaries('XXX.XX', interval=rdp.Intervals.DAILY, start='2020.11.01', end='2020.11.06')

also what is the data limit for get_historical_price_summaries, looks it works for a short lookback windows, but not even more than a year. i.e., "None" is return when more than a year.

df = rdp.get_historical_price_summaries('IBM.N', interval=rdp.Intervals.DAILY, start='2019.11.01', end='2020.11.06')

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.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by moragodkrit.chumsri_1 · Nov 09, 2020 at 04:36 AM

@jian.lu

Not sure what version of python and RDP Lib for python you are using? I found a similar issue sometime when using 1.0.0.6a with python 3.7. I have to check if the df is not None before process it. It randomly occurs even I use a short period or set count to a minimal value.

But I just reconfigure conda env using python 3.8 with rdp 1.0.0.7a and it seems to works fine for me now.

Comment

People who like this

0 Show 0 · 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
REFINITIV
Answer by nick.zincone · Nov 09, 2020 at 02:31 PM

Hi @jian.lu,

The RDP Libraries have multiple layers to request for data, the lowest layer being the delivery, on top of that we have the content layer and for scripting languages such as Python we have the function layer. The code segment you provided is at the function layer providing simple syntax returning data. At this layer, if you encounter situations where no data is returned, you can use some convenient functions to check.

For example,

rdp.get_last_status()

At the content layer, you have more control over the response. For example:

While the syntax to request for data is similar, the response contains some more information about the response.


ahs.png (8.8 KiB)
ahs.png (16.4 KiB)
Comment

People who like this

0 Show 0 · 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.

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 >
11 People are following this question.

Related Questions

Python RDP StreamingPrices returns no data

RDP in Python not connecting despite valid App Key

Refinitiv Data Platform library version on pip vs EIKON codebook

RDP Python API performance

issue to use refinitiv_dataplatform with python

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • FX Venues
    • FX Trading – RFQ Maker
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • 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
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges