Trying to access asset type of an asset using ISIN, tried using the code from an answer but getti...

...ng errors.
Everything is being done in the Refinitiv Codebook through Jupyter Notebooks
Code:
import eikon
eikon.get_data(['US0378331005','US345370CS72','F5YUSAX=R', '.SPX'],
['TR.AssetCategoryCode','TR.AssetCategory'])
Error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/tmp/ipykernel_107/42610158.py in <module>
1 import eikon
----> 2 eikon.get_data(['US0378331005','US345370CS72','F5YUSAX=R', '.SPX'],
3 ['TR.AssetCategoryCode','TR.AssetCategory'])
/opt/conda/lib/python3.8/site-packages/eikon/data_grid.py in get_data(instruments, fields, parameters, field_name, raw_output, debug)
188 payload = {'requests': [payload]}
189 --> 190 result = eikon.json_requests.send_json_request(_endpoint, payload, debug=debug)
191 192 if result.get('responses'):
/opt/conda/lib/python3.8/site-packages/eikon/json_requests.py in send_json_request(entity, payload, debug)
86 udf_request = {'Entity': {'E': entity, 'W': data} }
87 logger.debug('Request:{}'.format(udf_request))
---> 88 response = profile._desktop_session.http_request(url=profile.get_url(),
89 method="POST",
90 headers={'Content-Type': 'application/json',
AttributeError: 'NoneType' object has no attribute 'http_request'
Best Answer
-
Hello @carlos.bonilla ,
Run a quick test on my side- the code included runs as expected on my side in CodeBook, so can confirm no issue with the code:
I suspect this is due to permissioning.
So I would suggest to verify with Refinitiv Eikon support via My Refinitiv -> Get Support (Refinitiv Helpdesk Online) if your Eikon user account has permissions to this content via API.
If it does not, and you require to request via ISIN, would suggest to contact your Refinitiv account team to discuss the requirement.
0
Answers
-
Sorry yeah forgot to setup my key, functioning normally now.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 702 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 2.9K Elektron
- 1.5K EMA
- 257 ETA
- 566 WebSocket API
- 40 FX Venues
- 16 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 283 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 24 RDMS
- 2.1K Refinitiv Data Platform
- 823 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 122 Open DACS
- 1.1K RFA
- 107 UPA
- 195 TREP Infrastructure
- 232 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 100 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛