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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 0 1 0

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 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

@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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea