Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Datastream /
avatar image
Question by gabrev · Feb 18 at 01:57 PM · datastream-apihistoricaldatastreamsymbol-list

NA response while downloading lists

I am trying to download Russell 2000 stocks(and other lists) for backtesting with dead stocks too.
I use Python Datastream API. I start from 1990 and get the list of constituents then download them.
For most of the lists I only get N/A so no stocks.
Only for a list: LFRUSS2L I get stocks but they are less than 2000 !
I attach my code.
Thanks Gabriel
The code I use:

...
mlist = set()
mmyy_list = []

for yea in range( 60, 122):
    for mo in range(1 , 13):
        yea2 = yea
        if yea2 > 99:
            yea2 -= 100
        stri = str(yea2).zfill(2) + str(mo).zfill(2)
        mmyy_list.append(stri)
print(' ***** STARTING ' + symb)

ds = dsws.Datastream(username=user, password=pw)

# call Datastream to get RICs list
rics_list = {}
for mmyy in mmyy_list:
    reque = symb + mmyy + '|L'
    try:
        dat = ds.get_data(tickers=reque, fields=['MNEM'], kind=0)
        # print(dat)
        # save rics list in python dict
        rics_list = dat['Value'].tolist()
...

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 Jirapongse · Feb 21 at 02:18 AM

@gabrev

The code looks incorrect. The date format is "mmyy" but the code creates dates in the "yymm" format. Please use the below code.

stri = str(mo).zfill(2) + str(yea2).zfill(2)

For the N/A issue, please contact the Refinitiv Datastream Web Service support team directly via MyRefinitiv to verify the content.


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
Answer by gabrev · Mar 08 at 03:15 PM

@Jirapongse @raksina.samasiri
Thank you very much. Now it works better.
I copied that part of the code from this forum and I did not notice the month/year swap...
However downloading Russell 2000 constituents I get the following results:
- using LFRUSSL2:

{NA} in all responses from 1960
- using LFRUSS2L:
the list is downloaded but I get only 1440 stocks

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
REFINITIV
Jirapongse ♦♦ · Mar 09 at 07:33 AM 0
Share

@gabrev

Please contact the Refinitiv Datastream Web Service support team directly via MyRefinitiv to verify the content.

1646811199043.png (9.1 KiB)
avatar image
REFINITIV
raksina.samasiri ♦♦ · Mar 09 at 11:19 AM 0
Share

hi @gabrev ,

Ticket ID 11022779 was raised on your behalf to verify the content, support team is going to reach you directly. Hope this could help.

Plus, as this thread is already closed (have the accepted answer) so it won't be monitored anymore, if you have any further questions, please raise a new question.

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

Related Questions

In Datastream/Worldscope, does Item "Total Intangible Assets" (WC02649) include Total (accumulated) goodwill?

Is Datastream code (DSCD) a unique and permanent identifier?

GetDataBundle using Datastream Web Service

Oas History for security on DSWS

Request Corporate and Sovereign S&P Ratings

  • 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