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

Options

...xchanges?

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?

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @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: