REST API - Issue with intraday OnDemand request
I am trying to run the Python sample script "TRTH_OnDemand_IntradayBars.py" come under the REST API example. I am able to retrieve teh authentication token
(screenshot removed for confidentiality reasons)
But then I am getting the following error messages
Can you please help?
Best Answer
-
Glad to know my suggestion on the proxy was appropriate, and that the issue is solved
IdentifierList
This is the list of instruments for which you want to retrieve data, with the associated instrument type code. Several instrument type codes are supported, like RICs, ISINs, Sedols, Cusips, etc. I usually recommend to use RICs, if you have the choice. There are millions of them, and I don't believe a list is available.To discover what instrument code corresponds to a particular company, you can use our Eikon product, if you have it, it has great search tools. If you do not have Eikon, you can use the RIC Search tool available under the Elektron APIs (even though those APIs have nothing to do with TRTH, the tool is valid as RIC codes are used by many of our products). In the tool, type in a company name, for instance Allianz. Assuming you want an equity instrument for that company, drill down further by clicking on Equities. The first item in the list, ALVG.DE, is the main RIC, on the german Xetra exchange. That code could be used in a data request, inside the IdentifierList parameter.
ContentFieldNames
The list of available field names depends on the type of data you are requesting, it is not the same for Intraday summaries, end of day data, tick or market depth data, etc. There are several ways to find out what fields are available for a specific call:
- Go to the GUI, and create a report template for the type of data you want. Then click on the "Fields" tab to see the list of available fields, with their description.
- Use the Data Dictionary. In tab "Field Descriptions", filter column C to contain the type of request you are making. Column D contains all available fields, the following columns describe them.
- Use an API call. See REST tutorial 6 for Intraday Summaries. The other tutorials illustrate that for other data requests.
Conditions
These also depend on the API call, i.e. the type of data you request. The API Reference Tree describes all API calls, as well as their conditions. See here for On Demand extractions, in the first parameter use the dropdown to select the call you are interested in (for instance TickHistoryIntradaySummaries), all the available conditions will be displayed, with short descriptions. The tutorials describe some of these as well.
For more info
I recommend you look at the Programming without SDK tutorial, in particular the best practices section which explains how to understand the API calls.
0
Answers
-
A few queries to help us investigate:
- Is this a once of, or does it happen every time you try to run this sample ?
- Do you run into the same error with the other Python sample we provide, or when using our Postman collection ?
- This error often occurs because of a proxy. Do you have a proxy, and if yes, did you modify the code to handle the proxy ?
Side note: please do not publish your credentials or token, someone else could access your data using them. I removed the first screenshot for that reason.
0 -
Hi Christiaan. Thanks for getting back. Indeed it is the proxy issue. I managed to update the script and pass in the proxy info and able to download the file.
I am new to python so please bear with me on my ignorance here. Within the requestBody under the "TRTH_OnDemand_IntradayBars.py" there are the "ContentFieldNames", "IdentifierList" and "Condition" that needs to be passed in. Can you let me know where I can find the list of available "ContentFieldNames", "IdentifierList" and "Condition"?
0 -
Can you let me know where I can find the list of available "ContentFieldNames", "IdentifierList" and "Condition"?
0 -
@wisam.alsalti
The question with an accepted answer will not be monitored by the moderators.
Please post new questions for any further inquries.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 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
- 280 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 720 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
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛