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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
11 0 0 2

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

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
23k 22 9 14

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?

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