Skip to content

GET /v1/ping

A lightweight endpoint for keeping the underlying HTTPS connection alive between requests.

GET /v1/ping

No authentication required. No request body.

200 OK — empty body.

The server’s HTTP keepalive is configured to 70 seconds and 10 000 requests. If your client sits idle longer than 65 s, the connection is closed and the next request pays a full TCP + TLS handshake (~10–20 ms extra round-trip from Frankfurt).

Sending a ping every 60 seconds keeps the connection open and your first real request stays at baseline latency.

setInterval(async () => {
await fetch("https://api.darkfibre.dev/v1/ping");
}, 60_000).unref();

Keep-alive only matters if your trading loop has gaps longer than ~60 s. For bots that trade continuously you can skip it.