How coud I retrieve NDA_RAW.Nda_date and NDA_RAW.Nda_volume via Python Eikon Data API properly?
I tried the following formula but it retrieved NA:
ek.get_timeseries(rics=['MPAA.O'], fields=['NDA_RAW.Nda_date','NDA_RAW.Nda_volume'], start_date='2005-01-01',end_date= '2005-03-22', interval = 'daily')
Your colleague advised me usind NDA_RAW.Nda_volume because it is more accurate than other indicators of volume.
Best Answer
-
hi @alekseenkova.marina ,
The field 'NDA_RAW' is only available on RHistory function in the Eikon Excel, not the Eikon Data API, to retrieve the same value, you can use the code below.
df, err = ek.get_data('MPAA.O', ['TR.ACCUMULATEDVOLUME.date', 'TR.ACCUMULATEDVOLUME'],
{'SDate':'2005-01-01', 'EDate':'2005-03-22', 'Frq':'D'})
dfHere's the output, it's matched with the output from RHistory function
Hope this helps
2
Answers
-
Dear @raksina.samasiri, what is the difference in the resulted data between the code you provided and the following one:
import refinitiv.data as rd
rd.open_session()
rd.get_history(universe="MPAA.O", fields=["ACVOL_UNS"], interval="1D", start="2005-01-01", end="2005-03-22")
?
0 -
Dear @alekseenkova.marina,
As I compared the result from the code posted by you and me, the value are all matched
Plus, here's the description of both fields from DIB (Data Item Browser) app in Eikon Desktop
However, this forum is more for programming-type queries, rather than content queries such as this one. I would recommend you to contact the Eikon support team directly via MyRefinitiv to clarify the difference between those fields
0 -
Dear @raksina.samasiri,
Could you tell me, please, why when I lauch the code rd.get_history(universe="MPAA.O", fields=["ACVOL_UNS"], interval="1D", start="2005-01-01", end="2005-03-22") in CODEBOOK I do not have any problems, whereas I launch the same code in Jupyter I get the following error message:
refinitiv.data._errors.RDError: Error code 1 | No data to return, please check errors: ERROR: No successful response.
(TS.Interday.UserRequestError.70005, The universe is not found.. Requested ric: MPAA.PK. Requested fields: ['ACVOL_UNS', 'DATE'])
0 -
I request data for MPAA.O and not
MPAA.PK0 -
@alekseenkova.marina I checked your permissioning and you have no access to real time RIC MPAA.O (Eikon may automatically switch it to deleyed one /MPAA.O). Try to replace MPAA.O with /MPAA.O in your script
0 -
0
-
@alekseenkova.marina Please check your rd version using:
rd.__version__
if it's lover than b13 please perform rd upgrade:
pip install refinitiv-data==1.0.0b13
then restart kernel and run the script again (with /MPAA.O)
1 -
I have the newest version: b13. It is not the reason of the problem.0
-
Dear @raksina.samasiri, do you know what could be the reason of the problem?
0 -
@lukasz.trzcinski0, thank you! Downgrade pip install refinitiv-data==1.0.0b9 helps!
1 -
@lukasz.trzcinski0 the oldest version produces another errors - not related to this request. What should you recommend me to do?0
-
@raksina.samasiri is thery any information?0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛