Check Server Time
Type: NONE · Weight: 1
Status: Implemented.
GET /api/v3/time
Returns the gateway clock. Use it to compute the offset you add to timestamp on signed requests (see Time synchronization).
Request
GET /api/v3/time
Response — 200
{ "serverTime": 1756600000000 }
| Field | Type | Notes |
|---|---|---|
serverTime | number | Unix milliseconds. |
Errors
| HTTP | code | When |
|---|---|---|
429 | -1003 | Per-IP public weight exhausted. |
Example
import time, requests
server = requests.get("https://api.rocky.exchange/api/v3/time").json()["serverTime"]
offset_ms = server - int(time.time() * 1000)