DSS REST API Search FuturesAndOptionsSearch getting Gold composite weekly options expiries

I want to get expiries for GC weekly options (specifically "0#GMW+", "0#GWW+" and "0#GCW+").
I usually use the datascope select search FuturesAndOptionsSearch rest api.
I use this to get expiries for Equity Options ("0#SPX*.U and "0#SPXW*.U") but it doesn't work for GC weekly options.
{
"SearchRequest": {
"FileCodes": null,
"CurrencyCodes": null,
"StrikePrice": null,
"ExchangeCodes": ["CMX"],
"ExpirationDate": null,
"IdentifierType": "RICRoot",
"Identifier": "GCW*",
"AssetStatus": "Active",
"FuturesAndOptionsType": "FuturesOnOptions"
}
}
The response
{
"@odata.context": "https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#Collection(DataScope.Select.Api.Search.FuturesAndOptionsSearchResult)",
"value": []
}
What is the best way to get the expiries for these chainRICs? Why does the FuturesAndOptionsSearch work on some types of options and not others?
Working examples for 0#SPXW*.U
{
"SearchRequest": {
"FileCodes": null,
"CurrencyCodes": null,
"StrikePrice": null,
"ExchangeCodes": ["OPQ"],
"ExpirationDate": null,
"IdentifierType": "RICRoot",
"Identifier": "SPXW*",
"AssetStatus": "Active",
"FuturesAndOptionsType": "Options"
}
}
Response:
{
"@odata.context": "https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#Collection(DataScope.Select.Api.Search.FuturesAndOptionsSearchResult)",
"value": [
{
"Identifier": "SPXWf302343500.U",
"IdentifierType": "Ric",
"Source": "OPQ",
"Key": "VjF8MHgwMDEwMGIwMDJmOGMyMTNifDB4MDAxMDBiMDAyZjhiZTViOXxPUFF8RFZRVXxERVJWfE9QVHxEfHxTUFhXZjMwMjM0MzUwMC5VfDcxNjk",
"Description": "SPXW JN3Q 4350C",
"InstrumentType": "DerivativeQuote",
"Status": "Valid",
"ExchangeCode": "OPQ",
"CurrencyCode": "USD",
"FuturesAndOptionsType": "Options",
"PutCallCode": "Call",
"ExpirationDate": "2023-06-30T00:00:00.000Z",
"StrikePrice": 4350,
"AssetStatus": "Active"
},
{
"Identifier": "SPXWr302345000.U",
"IdentifierType": "Ric",
"Source": "OPQ",
"Key": "VjF8MHgwMDEwMGIwMDJmOGMyMWEwfDB4MDAxMDBiMDAyZjhiZTY4YXxPUFF8RFZRVXxERVJWfE9QVHxEfHxTUFhXcjMwMjM0NTAwMC5VfDcxNjk",
"Description": "SPXW JN3Q 4500P",
"InstrumentType": "DerivativeQuote",
"Status": "Valid",
"ExchangeCode": "OPQ",
"CurrencyCode": "USD",
"FuturesAndOptionsType": "Options",
"PutCallCode": "Put",
"ExpirationDate": "2023-06-30T00:00:00.000Z",
"StrikePrice": 4500,
"AssetStatus": "Active"
},
...
Best Answer
-
Hi @una.keller ,
I'm posting the resolution from the support ticket below as a reference
In the API query used the RIC root is incorrect; hence the response has no values extracted. Please find the below RIC roots respectively and the example API request with response attached.
Chain RIC RIC Root
0#GMW+ GM2W
0#GWW+ GW2W
0#GCW+ GC3W0
Answers
-
Hi @una.keller ,
The moderators
on this forum are expertise on Refinitiv APIs usage. However, they do not have
deep expertise in every type of content available through Refinitiv products.
Such expertise is available through Refinitiv Helpdesk, which can be reached
via MyRefinitiv. To be of help, ticket number 12640612 was raised on your
behalf and the support team is going to contact you soon to assist with this.Hope this helps
and please let me know in case you have any further questions0 -
@raksina.samasiri thank you for raising a ticket for me!0
-
For other looking for an answer, you can use Extractions to get the same data for expired options
https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractWithNotes
{"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.HistoricalReferenceExtractionRequest",
"ContentFieldNames": [
"RIC", "Security Description", "Put Call Flag", "Expiration Date", "Strike Price"
],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{ "Identifier": "0#GWW+", "IdentifierType": "ChainRIC" }
],
"ValidationOptions": {"AllowHistoricalInstruments": true},
"UseUserPreferencesForValidationOptions": false
},
"Condition": {
"ReportDateRangeType": "Range",
"QueryStartDate": "2023-12-01",
"QueryEndDate": "2023-12-31"
}
}
}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
- 616 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
- 557 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
- 654 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
- 229 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 中文论坛