Problem with retriving historical fundemtal data
Hi ,
We are using historical data of MMM.N of the cash and cash equivalent line item from the balance sheet, however when we use the time-series function we only get partial data from 2015 forward, on other companies we get the full history , can you please help us with the issue
Thank you ,
Best Answer
-
@barshalev Not sure what exact parameters you are using as you did not paste the code, but this works for me:
df,err = ek.get_data('MMM',['TR.F.CashCashEquivTot(SDate=0,EDate=-19,Period=FY0,Frq=FY).date','TR.F.CashCashEquivTot(SDate=0,EDate=-19,Period=FY0,Frq=FY)'])
dfI hope this can help.
0
Answers
-
Hi thank you for the answer , we are using the following code:
ek.get_data('MMM',['TR.ISSourceDate', 'TR.Revenue.date','TR.Cash'],{'Scale': 6, 'SDate': '1980-01-01', 'EDate': 0, 'FRQ': 'FQ', 'Curn': 'USD','period':'FQ0'})
Can you please tell me what is the problem with this script?
0 -
@barshalev the issue with that call is you had parameter values not encased in ''. Again I recommend using the cash and equivalents field I used above. See my code below:
df, err = ek.get_data('MMM',['TR.ISSourceDate','TR.Revenue.date','TR.Cash'],parameters={'Scale': '6', 'SDate': '1980-01-01', 'EDate': '0',
'FRQ': 'FQ', 'Curn': 'USD','period':'FQ0'})
dfI hope this can help.
0 -
Ok I will try your script, but in the screenshot, you sent you also receive NaN value for MMM but in the Eikon GUI we can see that the data exists.0
-
Ok, I will try your script, but in the screenshot, you sent you also receive NaN value for MMM but in the Eikon GUI, we can see that the data exists.
0 -
@barshalev thats because I don't think TR.Cash is a valid fieldname - hence I recommend you to use the cash & cash equivalent field TR.F.CashCashEquivTot which will work as expected (see first code sample). You can check which fields are available using the Data Item Browser app (type DIB into Eikon search bar) - I strongly recommend you use this as your primary content navigation tool - as it provides field names, descriptions and all available parameter settings - as well as values if you provide an instrument. In the bottom right hand corner of that app it even creates the correct field for you based on the settings you select - so all you have to do is copy and paste that into your fields list.
0 -
Hi, thanks for your answer.
The parameter you suggested doe's not seem to be available in the eikon DIB.
We Know now that the item for cash and cash equivalent is the one you pointed but how can I tell what is the best data item for each parameter? and how can we know it for sure if I can't see this one?0 -
@barshalev apologies just saw this - there are two content navigators in Eikon - the first is the Data Item Browser app and the second is the Code Creator app. The Data Item Browser actually provides values as well as descriptions and parameters - so you can find the exact field you are looking for. In most eikon apps you can hover over any item name and next to it you will see a question mark '?' :
If you click that you will get the appropriate field name:
The second tool Code Creator is the next generation where you can visually select your query from all fields and parameters available and then it will create the python code for you, which you can either copy to a notebook or launch in CodeBook - our hosted python scripting environment. I hope this can help.
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛