Differences in TRTH API and GUI

I am trying to pull down Elektron Timeseries content for Equity Options by:
1. Expanding a chain RIC such as <0#AAPL*.U> using GET /Extractions/GetValidContentFieldTypes...
2. Submitting the returned list to TRTH.
The returning volumes are correct, save for missing weeklies instruments.
Narrowing the problem down to the options causing an issue, it seems that the REST API is return back "Not Found" for these RICs. Confusing the issue further, the GUI does return back data. The json body used is below:
@{'ExtractionRequest': {'@odata.type': '#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.ElektronTimeseriesExtractionRequest', 'ContentFieldNames': ['Trade Date', 'Volume'], 'IdentifierList': {'@odata.type': '#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList', 'InstrumentIdentifiers': [{'Identifier': 'AAPLA102020500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102021000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102021500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102022000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102022500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102022750.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102023000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102023250.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102023500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102023750.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102024000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102024250.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102024500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102024750.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102025000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102025250.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102025500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102025750.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102026000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102026000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102026500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102026750.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102027000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102027250.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102027500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102027750.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102028000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102028250.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102028500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102028750.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102029000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102029250.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102029500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102029750.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102030000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102030250.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102030500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102030750.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102031000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102031000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102031500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102031750.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102032000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102032250.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102032500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102032750.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102033000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102033500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102034000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102034500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102035000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102035500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102036000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102036500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102037000.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102037500.U', 'IdentifierType': 'Ric'}, {'Identifier': 'AAPLA102038000.U', 'IdentifierType': 'Ric'}]}, 'Condition': {'ReportDateRangeType': 'Range', 'QueryStartDate': '2020-01-06', 'QueryEndDate': '2020-01-16'}}}
Best Answer
-
Following up on the answer by Jirapongse, to add an explanation, note that by default, On Demand API requests do not deliver data for expired instruments, because On Demand extractions do not take the User Preferences set in the GUI into consideration.
For an On Demand extraction to deliver data for historical instruments (expired contracts are historical instruments), this must be specified in the request, using the instrument validation options. There is an explanation here in the Tutorials introduction, where you will also find links to several examples.
Please also note that there are cases where setting AllowHistoricalInstruments to true might not suffice. There are 2 other settings you might need to set to true: AllowInactiveInstruments and AllowOpenAccessInstruments.
0
Answers
-
Please add the ValidateOptions with AllowHistoricalInstruments: True in the request.
....
{
"Identifier":"AAPLA102037500.U",
"IdentifierType":"Ric"
},
{
"Identifier":"AAPLA102038000.U",
"IdentifierType":"Ric"
}
] ,
"ValidationOptions": {
"AllowHistoricalInstruments": true
},
"UseUserPreferencesForValidationOptions": false
},
"Condition":{
"ReportDateRangeType":"Range",
"QueryStartDate":"2020-01-06",
"QueryEndDate":"2020-01-16"
}
}0 -
That answered the question, thanks everyone!
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.5K 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
- 560 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
- 281 Open PermID
- 46 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 724 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 中文论坛