Retrieve Last trading day for future chain using DSS API
Hi,
Do you have example on how to retrieve Last trading day for future chain (within a specific date range) using chain RIC?
Thanks in advance!
Best Answer
-
Hello @celeste.hong ,
Historical Reference Extraction Request can be used to retrieve history for a future chain, the request is limited by date range:
{{protocol}}{{host}}{{api}}Extractions/ExtractWithNotes
{
"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.HistoricalReferenceExtractionRequest",
"ContentFieldNames": [
"RIC",
"Start date",
"Change Date",
"Expiration Date",
"Last Trading Day"
],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{"Identifier": "0#SLW:", "IdentifierType": "ChainRIC" }
],
"ValidationOptions": {
"AllowHistoricalInstruments": true
},
"UseUserPreferencesForValidationOptions": false
},
"Condition": {
"StartDate": "2018-01-01T00:00:00.000Z",
"EndDate": "2021-11-10T00:00:00.000Z"
}
}
}The result looks like:
{
"@odata.context": "https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#DataScope.Select.Api.Extractions.ExtractionRequests.ExtractionResult",
"Contents": [
{
"IdentifierType": "ChainRIC",
"Identifier": "0#SLW:",
"RIC": "SLWU1",
"Start date": null,
"Change Date": "2020-08-21",
"Expiration Date": "2021-09-17",
"Last Trading Day": null
},
{
"IdentifierType": "ChainRIC",
"Identifier": "0#SLW:",
"RIC": "SLWU1",
"Start date": null,
"Change Date": "2020-08-24",
"Expiration Date": "2021-09-17",
"Last Trading Day": "2021-09-17"
},
{
"IdentifierType": "ChainRIC",
"Identifier": "0#SLW:",
"RIC": "SLWU1^2",
"Start date": null,
"Change Date": "2021-09-21",
"Expiration Date": "2021-09-17",
"Last Trading Day": "2021-09-17"
},
...Let us know how this works on your side?
1
Answers
-
Hi @zoya faberov ,
Thank you so much for your prompt reply. I am new to DSS, this is really helpful!
Questions:
1. It seems "Expiration Date" is available in Historical Reference Extraction Request, but not always for "Last Trading date", are they the same? Should I refer to "Expiration date" instead of "Last Trading Day"?
2. Is there a Historical Reference Extraction Request equivalent functionality on the DSS UI? So that my user can use to verify result.
Thanks.
0 -
You can refer to the Refinitiv DataScope Select Data Content Guide which provides definitions of all of the data fields available in DataScope Select.
I found that the "Last Trading Date" field is available in several report templates, such as Composite, and Price History.
You can specify the "QueryStartDate" and "QueryEndDate" conditions in the Price History Extraction.
Otherwise, you can contact the Datascope Select support team directly via MyRefinitiv to explain the fields' descriptions or find the report templates and fields for you.
0 -
Thank you so much, I found the Price History report template, this is really helpful.
Thanks again!
0 -
Hello @celeste.hong ,
Historical Reference request is available via DSS GUI:
if the user wishes to verify the result via GUI
0 -
Hi @zoya faberov ,
Sorry for my ignorant, I can't find the "Historical Reference" menu, could it be that my account does not have permission?
0 -
Hello @celeste.hong ,
We are glad to answer if we can.
It is possible.
Did you look under Datascope Select -> Report Templates-> Create,
and scroll down to "Reference Data" section?
0
Categories
- All Categories
- 6 AHS
- 39 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 中文论坛