DSS Rest API, is it possible to have 250 days ROLLING history for an equity? could you provide an...

DSS Rest API, is it possible to have 250 days ROLLING history for an equity? could you provide an example?

Best Answer

  • zoya faberov
    zoya faberov ✭✭✭✭✭
    Answer ✓

    Hello @alejandro.lesaga,

    I am almost positive you are using PriceHistoryExtractionRequest.

    It is possible to pull 250 days by requesting Range with specific dates, i.e. dates will have to always be calculated prior:

    "

    "Condition": {

    "QueryStartDate": "2015-05-24T00:00:00.000Z",

    "QueryEndDate": "2015-05-31T00:00:00.000Z"

    }

    "

    For the interval less then 31 days, one can use relative query, for example:

    "

    "Condition": {

    "ReportDateRangeType": "Delta",

    "DaysAgo": "30"

    }

    "

    Please refer to DSS REST API Reference Tree

    For more details on PriceHistoryExtractionbRequest -> Condition -> ReportDateRangeType

    Does this help?