Response fields in search requests

Philipp
Philipp Contributor

Running this of your postman examples:Tuto-11a: Search by RIC

Is is possible to add additional fields to the response like getting RIC, ISIN, Currency code, etc. in the response? At the moment we are just getting a fixed amount of response fields like these:

"Identifier": "VOD.L",
"IdentifierType": "Ric",
"Source": "LSE",
"Key": "VjF8MHgwMDAzZGQwMDE0OGU3NDMwfDB4MDAwM2RjMDAzNDdjOTEwNnxMU0V8RVFRVXxFUVRZfHxFfHxWT0QuTHwwNjkx",
"Description": "VODAFONE GROUP ORD",
"InstrumentType": "EquityQuote",
"Status": "Valid"

Of course the Identifier field can be changed by defining a prefered identifer type, but is is possible to generally add additional response fields?

Thx in advance!

Best Answer

  • @Philipp


    The output field set of a Search (as wll as EquitySearch and FuturesAndOptionsSearch) is not configurable.
    But as filter criteria of those 2 search calls you can use multiple exchange codes, and/or a single currency code.
    Here is the body of an equity search based on Tutorial 12, modified for your use case:

    {
    "SearchRequest": {
    "AssetStatus": "Active",
    "AssetCategoryCodes": null,
    "SubTypeCodes": null,
    "CurrencyCodes": ["GBp"],
    "CompanyName": null,
    "Description": null,
    "DomicileCodes": null,
    "ExchangeCodes": [
    "CHI", "GER", "LSE", "OTC", "PAR", "STO"
    ],
    "FairValueIndicator": null,
    "FileCodes": null,
    "GicsCodes": null,
    "OrgId": null,
    "Ticker": null,
    "Identifier": "GB00BH4HKS39",
    "IdentifierType": "Isin",
    "PreferredIdentifierType": "Ric"
    }
    }

    Would that be of any help ?

Answers