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
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛