Skip to content
Get started

Get Clock

$ clear-street v1:calendar get-clock
GET/v1/clock

Returns the current server time in UTC.

ReturnsExpand Collapse
V1CalendarGetClockResponse: BaseResponse { metadata, error }
data: object { clock }

Current server time and market clock information

clock: string

Current server time in UTC

Get Clock

clear-street v1:calendar get-clock \
  --api-key 'My API Key'
{
  "data": {
    "clock": "2025-03-01T03:35:00.000000000Z"
  },
  "error": null,
  "metadata": {
    "request_id": "1b2c3d4e-5f6a-7b8c-9d0e-1f2a3b4c5d6e"
  }
}
Returns Examples
{
  "data": {
    "clock": "2025-03-01T03:35:00.000000000Z"
  },
  "error": null,
  "metadata": {
    "request_id": "1b2c3d4e-5f6a-7b8c-9d0e-1f2a3b4c5d6e"
  }
}