Rate Limits
Last updated
Last updated
The WebSocket API rate limits requests and connections by IP address.
If you exceed a rate limit, an error is thrown and your requests will be blocked for 2 minutes.
Rate limits for the WebSocket API are as follows:
Connections
10 active connections per IP address.
Requests
40 requests per 1 minute per IP address. Requests are counted, in total, across your active connections.
To avoid rate limiting, sFOX recommends following these best practices:
Subscribe/unsubscribe to multiple WebSocket feeds in a single request rather than sending subscribe requests per WebSocket feed.
For example, if you want to subscribe to both the and feeds:
Consuming the same data across >1 connection will result in duplicate requests. For example, if you want consume the BTC/USD order book, do so in a single connection.
For example, consume and in separate connections.
This segregation ensures that time-sensitive updates, such as or messages, are not impacted by high-frequency feeds like .