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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 1 3 2

Is there a way to limit the search results from the Datascope /Search/InstrumentSearch based on exchanges?

My requirement is to do a search for a particular instrument in few exchanges. But DSS /Search/InstrumentSearch gives symbols on every exchange available. Is there a way to limit the search based on exchanges?

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.

Hello @dilan.cse

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


1 Answer

· Write an Answer
Upvotes
Accepted
78.8k 250 52 74

@dilan.cse

InstrumentSearch request doesn't support ExchangeCodes property. Therefore, you are unable to specify it in the request. Therefore, you need to filter it in the response.

Otherwise, you can use other searches, such as Search/EquitySearch, and Search/FuturesAndOptionsSearch that can specify ExchangeCodes in the request.

{
    "SearchRequest": {
        "AssetStatus": "Active",
        "AssetCategoryCodes": null,
        "SubTypeCodes": null,
        "CurrencyCodes": null,
        "CompanyName": "IBM",
        "Description": null,
        "DomicileCodes": null,
        "ExchangeCodes": ["NYS"],
        "FairValueIndicator": null,
        "FileCodes": null,
        "GicsCodes": null,
        "OrgId": null,
        "Ticker": null,
        "Identifier": null,
        "IdentifierType": null,
        "PreferredIdentifierType": null
    }
}

For more information, please refer to:

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.

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.