Improved
2026.08.30 - Add Market Cap Chart Mode to WebSocket OHLCV Subscriptions
about 2 hours ago by Dqd
Expand WebSocket OHLCV subscriptions with a new chartBy selector so clients can receive OHLCV candles by token price or by market cap.
Features
WebSocket - Subscribe OHLCV
- Add
chartByto OHLCV subscriptions - Support
priceandmcapas validchartByvalues - Default
chartBytopricewhen omitted - Support market cap OHLCV output for token subscriptions on Solana
- Fall back to price-based OHLCV if token supply is unavailable
- Keep existing OHLCV subscription behavior unchanged for clients that do not send
chartBy
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
chartBy | string | No | price | Select OHLCV display mode: price or mcap. mcap applies to token OHLCV on Solana and falls back to price if supply is unavailable. |
Compatibility Note
- Existing clients continue receiving price-based OHLCV data without any request changes
chartBy=mcapis only applicable to token OHLCV on Solana- Unsupported
chartByvalues are rejected
