question

Upvotes
Accepted
588 8 13 16

TRTH Java API Timestamp

We use TRTH Java API to send the TimesAndSales request. The timestamp is display in milliseconds (Example : 08:00:01.784). We want to change that, and we like to receive a timestamp which is display in seconds (Example : 08:00:01).

I read the API documentation and the only parameter available for the TimeStamp seems to be <displayMicroseconds>, to display message timestamps in microseconds or in milliseconds?

My question is : is there a way to display the TimeStamp in seconds (Example : 08:00:01) with the TRTH API ?

tick-history-rest-apitime-stamp
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
322 5 12 16
TRTH, by default, gives out the data in milliseconds with an option to increase the granularity to microseconds (using <displayMicroseconds>). TRTH does not give the option to extract the data in (simple) seconds format. The only way to get the timestamp in seconds is to extract the data first in the default format (in milliseconds) and to change it in the excel file to seconds (?hh:mm:ss? format).
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