Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rate Limits & Security

Limits are tracked per endpoint. A key with a 5-connection-per-IP cap can hold 5 connections on wss://cryptolisting.ws and 5 on wss://kr.cryptolisting.ws simultaneously (10 total). Cooldowns also apply per endpoint.

Connection limits

Per IP (any key)

LimitValue
Concurrent connections20
New connections10 / minute

Per API key

LimitValue
Connections per IP5
Distinct IPsconfigurable
Absolute connections (all IPs)20
Connection cooldown5 s per IP

Distinct IPs is set by the administrator at key creation.

429 error codes (handshake)

The server returns HTTP 429 with a JSON body whose error field tells you which limit you tripped:

ErrorCauseAction
connection_rate_limit_exceededYour IP opened > 10 connections in 60 s (any key)Back off; retry after the window
per_ip_concurrent_limit_reachedYour IP holds 20 concurrent connections (any key)Close unused connections
per_ip_connection_limit_reachedThis IP holds 5 connections for this specific keyClose one before opening another
max_distinct_ips_reachedKey already in use from its max distinct IPsRequest a higher cap
absolute_connection_cap_reachedKey hit the 20-total ceilingCap is fixed — use a second key
connection_cooldownSame key + IP reconnecting within 5 sWait retry_after_s (5)

Client message limits

LimitValueOn excess
Message rate3 / minuteConnection closed (rate_limit_exceeded)
Frame size1 KBConnection closed (frame_too_large)
Test rate1 / minuteError response (test_rate_limited)

The test rate is shared across all connections sharing a key. Excess returns an error message, not a disconnect — see Test Announcement.

Security

  • All connections use TLS (WSS).
  • Keys can be revoked instantly. Active sessions close with 1000 key_invalidated.
  • Keys with an expiration date are rejected after expiry. Active sessions close with 1000 key_expired.