question

Upvotes
Accepted
1 0 0 0

Is there a way to determine expiration data for a historical future contract using DSS or TRTH REST API

I'm looking to get expiration dates for contracts that are resolved from futures chain RIC using HistoricalChainResolutionRequest call.


Thank you.

dss-rest-apitick-history-rest-apifutures
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
23k 22 9 14

Hello @ekhosid,

My understanding is that once you have resolved the chain you should have RICs of the future contracts. Next, you can run a search, either by specific RIC or by root RIC and a wild card, something like:

{
                {protocol}}{
                {host}}{
                {api}}Search/FuturesAndOptionsSearch 
{
    "SearchRequest": {
        "FileCodes": null,
        "CurrencyCodes": null,
        "ExchangeCodes": null,
        "ExpirationDate": {
            "@odata.type": "#ThomsonReuters.Dss.Api.Search.DateValueComparison",
            "ComparisonOperator": "LessThanEquals",
            "Value": "2016-12-31T00:00:00.000Z"
        },
        "IdentifierType": "Ric",
        "Identifier": "ED*",
        "PreferredIdentifierType": "Ric"
    }
}

resulting in:

{
    "@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#Collection(ThomsonReuters.Dss.Api.Search.FuturesAndOptionsSearchResult)",
    "value": [
        {
            "Identifier": "ED1tmH2^1",
            "IdentifierType": "Ric",
            "Source": "TIM",
            "Key": "VjF8MHgwMDAzZjgwNTEzOGM0ODI5fDB4MDAwM2Y4MDUxMzhjOWJmYXxUSU18RFZRVXxERVJWfEZVVHxEfHxFRDF0bUgyXjF8NTIyNQ",
            "Description": "ED1 MAR2",
            "InstrumentType": "DerivativeQuote",
            "Status": "Valid",
            "ExchangeCode": "TIM",
            "CurrencyCode": "TWD",
            "FuturesAndOptionsType": "Futures",
            "PutCallCode": "",
            "ExpirationDate": "2012-03-21T00:00:00.000Z",
            "AssetStatus": "Inactive"
        },
...

Does this work for your use case?




icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 0

Thank you. That's exactly what I was looking for. Let me try it.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea