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 renee.yao · Nov 02, 2017 at 10:44 AM · eikon apiindex error

index error: too many indices for array

Hi,

ek.get_timeseries( ['BLX'], fields=['CLOSE'], interval = 'minute',start_date='2017-11-1T19:30', end_date='2017-11-1T19:35')

produces the error: *** IndexError: too many indices for array

It seems this is due to no data for 'BLX' in that period. But what's important is that the error causes the bulk request to throw exception (e.g. ek.get_timeseries( ['BLX','AA'], fields=['CLOSE'], interval = 'minute',start_date='2017-11-1T19:30', end_date='2017-11-1T19:35') ) which is not the case until this morning (2017-11-2T14:00 utc)

Can anyone explain?

Thanks

People who like this

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

avatar image
REFINITIV
zoya.farberov ♦♦ · Dec 06, 2018 at 05:10 PM 0
Share

Hello @renee.yao,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

-AHS

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by nick.zincone.1 · Nov 29, 2018 at 04:30 PM

Hi @renee.yao,

Since reporting this, I've attempted to run the get_timeseries() query again and observed expected behavior as documented. For example, if I request for the same data you are interested in where data is available, I get a response that looks like this:

When requesting for a timeframe where the data is not available, the get_timeseries() raises an exception as documented. For example:

The above output no longer provides the "too many indices for array" as we both initially observed but instead provides the expected output that "No data available...".


ahs.png (13.2 KiB)
ahs2.png (35.3 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.

avatar image
REFINITIV
Answer by nick.zincone.1 · Nov 02, 2017 at 03:34 PM

Hi @renee.yao,

In general, these types of exceptions should not happen. I is likely an issue that needs to be resolved. I was able to replicate the issue.

As a test, I changed the end date by one minute and received some data.

I will raise the issue with the team.

thanks,


scripting.png (8.9 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 >
12 People are following this question.

Related Questions

Force to get_data() function to look for an orgId

List of parameters for a given TR field.

Error when accessing Eikon data via API using R

Eikon API: Retrieving filing date for annual reports

API Request: Error code 1422 | Can not process metadata for request: DataGrid_StandardAsync.requests.instruments - non-empty is required

  • 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