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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
0 0 2 4

DSS Response as JSON through On Demand execution C# .NET SDK

Hello Support,

I would like to fetch minute candles using TRTH REST API. Can i get the response as JSON?

If it doesn't return as JSON then I have to parse the data manually. So kindly send me some work around solution.

Thanks in advance.

dss-rest-apidatascope-selectdsstick-history-rest-apic#
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.

1 Answer

Upvotes
Accepted
14.7k 39 12 18

@ziaul The response format for almost all REST API data calls is CSV format. JSON is not feasible, since some of the downloads can be couple of gigabytes in size.

It is relatively trivial to parse the CSV data in .NET. You can either use Microsoft.VisualBasic.FileIO.TextFieldParser library or third party easy to use libraries for this.

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.