question

Upvotes
Accepted
1 1 2 5

Example C# SDK code for downloading gzip file from TRTH?

A client is trying to make on demand requests to TRTH using the sample code in the C# SDK - the request is for 3 RICs for a day's worth of tick data (Time and Sales) and the download is incomplete. I suspect that the client is relying on the streaming download being sent directly to their command line display instead of downloading the .gzip file. Is there a TRTH example in C# that downloads the gzip file? The examples I have seen usually echo the data straight to the GUI (using Visual Studio or the Dss.Api.Examples.exe).

I know that there are Python examples to download (I use them) but this client seems to need C# and cannot figure it out for themselves.

tick-history-rest-api
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.

@mrr
Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to 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

1 Answer

Upvotes
Accepted
13.7k 26 8 12

@mrr, yes, we have a C# sample that saves the data in a compressed file.

It is based on an intraday summary, not Time and Sales, but the download part would be the same whatever data type you request.

It is described in .Net SDK Tutorial 5, the code is available under the downloads tab.

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