Get one of the values in the Excel API that returns a list of values
Hello,
I have a question specific to using the Eikon data API in Excel (i.e. Eikon Excel API). For API that returns a set of values (i.e. return a data frame when called from Python), how can I get a specific value within that set of values if I call the API from Excel?
For example: I will get a list of values if I call the Eikon data API as:
fund_TNA, dummy = ek.get_data('LP68331664',['TR.FundTotalNetAssets.Date', 'TR.FundTotalNetAssets'], {'SDate':'2000-01-01', 'EDate':'2023-04-30', 'Curn':'Native'})
The variable: fund_TNA will be a data-frame looks like:
Instrument Date Total Net Assets
0 LP68331664 2015-12-31T00:00:00Z 231271501.17
1 LP68331664 2016-03-31T00:00:00Z 134753836.25
2 LP68331664 2016-06-30T00:00:00Z 114594781.12
3 LP68331664 2016-09-30T00:00:00Z 114989303.67
In Python, I can get the value in the first row as fund_TNA.iat[0,2]. Can I do the similar thing in Eikon Excel to get the single value populated in a cell rather than the full list of values?
*This is a technical question, not about business logic, such as changing the dates to get only 1 row of data.
Best Answer
-
Hi @bob.lee
In Eikon Excel there is no possibility to throw the selected row out of the whole table when using TR function. However you can limit the output area starting from the top left corner. If you try the formula below, you should get the single value.
=@TR("LP68331664","TR.FundTotalNetAssets;TR.FundTotalNetAssets.date","SDate=2000-01-01 EDate=2023-04-30 Curn=Native",C3:C3)
1
Answers
-
What is Eikon Excel API that you are using? Is it Eikon COM API or Eikon Excel functions?0
-
Hi @Jirapongse , I am referring to Eikon Excel functions. i.e. I want to type the formula in Excel's function bar like:
=@TR("LP68331664", "TR.FundTotalNetAssets.Date", ...
and get the TNA value at the top row as a single value. Hence, I need to do it in Excel, not in any programming language.
0 -
Thanks @marcin.bunkowski01 for the answer and the tip for a potential work-around.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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛