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?
Glad to know my suggestion on the proxy was appropriate, and that the issue is solved :)
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.
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:
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
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"?