Get Server Time
Return the current server time as a bare Unix-seconds integer.
PM-CLOB canonical (PM-compat round 2, audit 2026-05-19 AF-3):
Polymarket emits GET /time as a bare JSON integer
(1779147906), NOT as an object ({"server_time":1779147906}).
py-clob-client does int(response.text) on this surface; the
object form TypeErrors on every startup health check.
MIGRATION NOTE (PR #1509 Copilot review, 2026-05-19): pre-AF-3
polysim wrapped this in {"server_time": N}. Clients that read
the old shape used resp.json()["server_time"] to extract the
integer; under the new bare-integer form the equivalent is
int(resp.text) (what py-clob-client does) or resp.json()
(which now returns the int directly because the body parses as a
JSON integer). Code that previously did
int(resp.json()["server_time"]) will KeyError under the new
shape — clients need to switch to one of the bare forms above.
Response
Successful Response
The response is of type integer.