For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
49 4 6 8

Could you help adjust API request as if it works similarly as DSS search?

How could I adjust the API code (in API search DSS) by adding there underlying ric search and removing the neccessity of inserting regular RIC (Ric of the asset and not of the underlying one)?

dss-rest-apidatascope-selectdss
icon clock
10 |1500

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

@susskaya.anita

Please explain more about the problem. There are different kinds of searches in DSS. What kind of DSS search are you using?

1620634732805.png (23.8 KiB)
I am interested in Futures&Options and its replication in the API system.
Contacted DSS_SWAT to verify the problem with NextLink.

@susskaya.anita

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Upvotes
Accepted
79.2k 251 52 74

@zakirov.azat0

It looks like to be a bug in the SDK. I will contact the development team to verify it.

The temporary workaround is increasing the max page size so all instruments are returned on a single page. For example:

SearchContext.Preferences.MaxPageSize = 100000;
icon clock
10 |1500

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

Upvotes
79.2k 251 52 74

@susskaya.anita

You can specify the "UnderlyingRic" property in the request message, as shown below. The endpoint is /Search/FuturesAndOptionsSearch.

{
    "SearchRequest": {
        "FileCodes": null,
        "CurrencyCodes": null,
        "ExchangeCodes": null,
        "StrikePrice": {
            "@odata.type": "#ThomsonReuters.Dss.Api.Search.NumericRangeComparison",
            "From": 85,
            "To": 88
        },
        "ExpirationDate": {
            "@odata.type": "#ThomsonReuters.Dss.Api.Search.DateValueComparison",
            "ComparisonOperator": "GreaterThanEquals",
            "Value": "2016-12-31T00:00:00.000Z"
        },
        "IdentifierType": "Ric",
        "Identifier": "ED*",
        "PreferredIdentifierType": "Ric",
        "UnderlyingRic": "ED"
    }
}

You can refer to the DSS REST API Reference Tree for more information.

icon clock
10 |1500

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

Thank you for the comment. However, when we tried this we faced with an error. The query returns only 250 rows, it is not clear how to get others.

error.jpg (13.2 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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