Get started
HTTP 401

Stream session expired

The WebSocket session lapsed because no ping arrived within its lease.

"type": "https://ohlc.io/problems/stream-expired"

Why it happens

  • No ping within the 120-second session lease. (A connection that does not authenticate within 10 seconds is closed with code 1008 instead.)

How to fix it

  • Reconnect, authenticate, resubscribe, and send ping well inside every 120 seconds. See streaming.

All problem types