Time convention for the API

It looks like the time convention for the API is: 2021-05-31T09:59:59Z(although for the candles it is a timestamp). I seem to recall seeing sometime with millisecond, or even microsecond (in the Websocket, if I recall)
Does the API seamlessly accepts all these format, or only strftime() in seconds?
Thank you @Sandy @rishabh

1 Like

Hey @MementoMori, the API responses do have the time convention in the format date-time, while the /candles endpoint returns the start (string) as a Timestamp - UNIX Time.

However, to set the timestamp, the CB-ACCESS-TIMESTAMP header must be a UNIX timestamp and it must be the same timestamp used to create the request signature.

We hope this helps. Please let us know if you have any more questions.

Thank you and have a nice day.

@rishabh Thank you for the feedback, regards