Can't pull data for expired contracts - do I need to specify AssetStatus?

pdebaz
Newcomer
Hi - I am trying to pull data for an expired contract. My extraction request looks like this:
requestBody = {
"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.TickHistoryIntradaySummariesExtractionRequest",
"ContentFieldNames": [
"Close Ask",
"Close Bid",
"High",
"High Ask",
"High Bid",
"Last",
"Low",
"Low Ask",
"Low Bid",
"No. Asks",
"No. Bids",
"No. Trades",
"Open",
"Open Ask",
"Open Bid",
"Volume"
],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": {
"Identifier": "USM2^2",
"IdentifierType": "Ric"
},
"UseUserPreferencesForValidationOptions": "false",
},
"Condition": {
"MessageTimeStampIn": "GmtUtc",
"ReportDateRangeType": "Range",
"QueryStartDate": "2022-06-22T00:00:00.000Z",
"QueryEndDate": "2022-06-23T00:00:00.000Z",
"SummaryInterval": "OneHour",
"TimebarPersistence": "true",
"DisplaySourceRIC": "true"
}
}
}
This returns no data, but switching to an active RIC (like USU2) will return data.
I think I need to use the AssetStatus flag, but I don't know where to put it. Can you please assist?
Tagged:
0
Best Answer
-
I would like to share the resolution from the Tick History support team.
Tick History doesn't use ^ RICs in extractions. We can use USM2 and modify the request by adding two conditions below.
"ValidationOptions": {
"AllowHistoricalInstruments": true,
"AllowInactiveInstruments": true
}The full request is:
{
"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.TickHistoryIntradaySummariesExtractionRequest",
"ContentFieldNames": [
"Close Ask",
"Close Bid",
"High",
"High Ask",
"High Bid",
"Last",
"Low",
"Low Ask",
"Low Bid",
"No. Asks",
"No. Bids",
"No. Trades",
"Open",
"Open Ask",
"Open Bid",
"Volume"
],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{
"Identifier": "USM2",
"IdentifierType": "Ric"
}
],
"UseUserPreferencesForValidationOptions": "false",
"ValidationOptions": {
"AllowHistoricalInstruments": true,
"AllowInactiveInstruments": true
}
},
"Condition": {
"MessageTimeStampIn": "GmtUtc",
"ReportDateRangeType": "Range",
"QueryStartDate": "2022-06-22T00:00:00.000Z",
"QueryEndDate": "2022-06-23T00:00:00.000Z",
"SummaryInterval": "OneHour",
"TimebarPersistence": "true",
"DisplaySourceRIC": "true"
}
}
}0
Answers
-
I got the same result as yours.
In the notes file, it shows.
Instrument <RIC,USM2^2> expanded to 0 RICS
It could be a content issue. Please contact the Refinitiv Tick History support team directly via MyRefinitiv to verify if the Intraday Summary content of this RIC is available on Tick History.
0 -
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
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 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
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛