GuidesAPI Reference
DocumentationLog In

WS Best Practices

🚧

Coinbase Advanced Trade API is in Beta. We welcome your feedback in the forums!

  • Remember WebSocket rate limits.

  • Spread subscriptions over more than one WebSocket client connection. For example, do not subscribe to BTC-USD and ETH-USD on the same channel if possible. Instead, open up two separate WebSocket connections to help load balance those inbound messages across separate connections.

  • WebSocket clients should authenticate to help troubleshoot issues if necessary. Authenticating is optional and does not impact web socket performance.

  • Connected clients should increase their web socket receive buffer to the largest configurable amount possible (given any client library or infrastructure limitations), due to the potential volume of data for any given product.

  • Use alternative batch channels (such as ticker_batch instead of ticker) which deliver a batched version of the respective data on a set interval reducing overall traffic.