Skip to content
Get started

Get Clock

v1.calendar.get_clock() -> CalendarGetClockResponse
GET/v1/clock

Returns the current server time in UTC.

ReturnsExpand Collapse
class CalendarGetClockResponse:

Current server time and market clock information

clock: datetime

Current server time in UTC

formatdate-time

Get Clock

from clear_street import ClearStreet

client = ClearStreet(
    api_key="My API Key",
)
response = client.v1.calendar.get_clock()
print(response)
{
  "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"
  }
}