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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
11 0 3 5

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 512.0 KiB each and 1.0 MiB total.

@alejandro.lesaga,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text beneath the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks, AHS

@alejandro.lesaga - This is a private post

Please note we made this query public. There is no reason to leave it internal, customers could benefit from reading this.

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


1 Answer

· Write an Answer
Upvotes
Accepted
32.2k 40 11 20

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.