Server Time
Returns the HFT server's current time. Useful for clock-skew monitoring before signing requests.
| Method | GET |
| Path | /v5/market/time |
| Auth | Authenticated — the HFT proxy requires the standard auth headers on every endpoint, including this one. |
Request
No parameters. Send the standard HFT auth headers (X-AUTH-APIKEY, X-AUTH-SIGNATURE, X-AUTH-EPOCH).
- cURL
- Python
- Java
- Go
- Node.js
# Requires signing — use one of the language tabs below for a working example.
# cURL invocation needs the same X-AUTH-* headers as any other HFT endpoint.
import requests
BASE_URL = "https://dma.coinswitch.co"
headers, path = sign_request("GET", "/v5/market/time")
r = requests.get(BASE_URL + path, headers=headers)
print(r.json())
HttpResponse<String> resp = client.send(
"GET", "/v5/market/time", null, null);
System.out.println(resp.body());
headers, p, err := SignRequest("GET", "/v5/market/time", nil)
if err != nil { panic(err) }
req, _ := http.NewRequest("GET", BaseURL+p, nil)
for k, v := range headers { req.Header.Set(k, v) }
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
out, _ := io.ReadAll(resp.Body)
fmt.Println(string(out))
const {signRequest, BASE_URL} = require('./reference-client');
const {headers, path} = signRequest('GET', '/v5/market/time');
const r = await fetch(BASE_URL + path, { headers });
console.log(await r.json());
Response
{
"retCode": 0,
"retMsg": "OK",
"result": {
"timeSecond": "1756460688",
"timeNano": "1756460688504684927"
},
"retExtInfo": {},
"time": 1756460688504
}
| Field | Type | Description |
|---|---|---|
result.timeSecond | string | Server time in seconds (Unix). |
result.timeNano | string | Server time in nanoseconds (Unix). |
time | integer | Server time in milliseconds (Unix). |