Is it possible to request result from multiple views in RDP Searchlight API ??

Hi Team,

Quick Question:
Rather than requesting results using view "SearchAllLight", is it possible combine more than one view?
For example:
"View": "Organisations, EquityQuotes, FundQuotes"

If i try this, I get HTTP 400 Bad Request error.

1677512502022.pngMany Thanks,

Milan

Best Answer

  • raksina.samasiri
    Answer ✓

    Hi @milan.gurung ,

    Only one view is supported in the RDP Searchlight API, you could see in the reason of error in response that

    json.View in body should be one of [CommodityQuotes EquityDerivativeQuotes EquityQuotes FundQuotes GovCorpInstruments IndexInstruments IndicatorQuotes Organisations RCS SearchAllLight STIRs YieldCurveContQuotes]

    Below is the infor from reference tab documentation in API playground, just for reference

    1677557069496.png

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @milan.gurung

    Thanks for reaching out to us.

    I don't think so.

    If you send multiple views, you will get the following error.

    "reason": "json.View in body should be one of [CommodityQuotes EquityDerivativeQuotes EquityQuotes FundQuotes GovCorpInstruments IndexInstruments IndicatorQuotes Organisations RCS SearchAllLight STIRs YieldCurveContQuotes]"
    }
    ]

    The following is a definition of the View parameter.

    • View (required) picks a subset of the data universe to search against

    According to this, you can set one view in the request.

    I hope that this information is of help.