Date and Time Formats

Understand the date formats used in the 🍋.markets Brokerage API

This section will describe date formats used in the lemon.markets platform.

Timestamps

In the API, a timestamp is represented using the ISO 8601 standard with millisecond precision, like this: 2024-06-28T13:07:12.345Z.

The API also accepts shortened formats without fractional seconds: 2024-06-28T13:07:12.345Z.

You can also specify a different time zone (e.g. when capturing timestamps on customers mobile devices): 2024-06-28T15:07:12.345+0200.

However, the API will reject a representation without time zone, as the timestamp provided is too ambiguous for actual processing: 🚫 2024-06-28T13:07:12.345 🚫.

Dates

A date (as in “a specific day”) are represented using the ISO 8601 representation without a time stamp and a time zone: 2024-06-28.