From 17 November 2026, Bitget’s V3 (UTA) kline and publicTrade WebSocket channels stop sending a snapshot after you subscribe. You only get action: "update" messages from then on. Demo trading has behaved like this since 4 November. If your Node.js code waited for that first snapshot to fill a chart or a candle buffer, it will start with an empty history on live.
The fix is to load recent history over REST and merge the stream on top. With bitget-api (3.2.8 at the time of writing) that’s RestClientV3.getCandles() for candles and RestClientV3.getFills() for recent public trades, plus WebsocketClientV3 for the stream.
What changes on 17 November
- V3 / UTA:
klineandpublicTradeno longer pushaction: "snapshot"after a subscription. Bitget’s UTA update preview says to use the matching REST API for history. - V2 / Classic: the spot and futures
candle*andtradechannels get the same change, per the Classic changelog. - Ticker and order book channels are not part of this change.
Seed candles over REST, then stream updates
Subscribe first, so nothing is missed while the REST call is in flight. Buffer anything that arrives, load history, apply the buffer, then switch to live mode. Keying candles by their start time means a snapshot (still sent on live until the 17th), a REST row and a stream update for the same minute all land in the same slot.
import { RestClientV3, WebsocketClientV3, WS_KEY_MAP } from 'bitget-api';
const symbol = 'BTCUSDT';
const rest = new RestClientV3();
const ws = new WebsocketClientV3();
// Candles keyed by start time (ms), so REST history and WS updates merge cleanly.
const candles = new Map();
let seeded = false;
const pending = [];
// REST returns each candle as an array, the WebSocket pushes objects.
function fromRest([start, open, high, low, close, volume, turnover]) {
return { start, open, high, low, close, volume, turnover };
}
function applyCandle(candle) {
candles.set(Number(candle.start), candle);
}
ws.on('update', (event) => {
if (event.arg?.topic !== 'kline') return;
if (!seeded) {
pending.push(...event.data);
return;
}
for (const candle of event.data) applyCandle(candle);
const latest = candles.get(Math.max(...candles.keys()));
console.log(event.action, 'candles:', candles.size, 'latest close:', latest.close);
});
ws.on('exception', console.error);
// 1. Subscribe first, so nothing is missed while REST loads.
ws.subscribe(
{ topic: 'kline', payload: { instType: 'spot', symbol, interval: '1m' } },
WS_KEY_MAP.v3Public,
);
// 2. Load recent history over REST.
const history = await rest.getCandles({ category: 'SPOT', symbol, interval: '1m', limit: '100' });
for (const row of history.data) applyCandle(fromRest(row));
// 3. Apply anything that arrived during the REST call, then go live.
for (const candle of pending) applyCandle(candle);
seeded = true;
console.log('seeded with', candles.size, 'candles');
One thing that trips people up: REST returns each candle as an array of strings ([start, open, high, low, close, volume, turnover]), while the WebSocket pushes objects with named fields. The fromRest() helper above maps one to the other so the rest of your code only deals with one shape.
I ran this against live Bitget on 13 November. It seeded 100 one-minute candles over REST and then kept updating the current candle from the stream.
Recent trades work the same way
For publicTrade, load the last trades with getFills() and de-duplicate on execId:
const fills = await rest.getFills({ category: 'SPOT', symbol: 'BTCUSDT', limit: '100' });
// each fill: { execId, price, size, side, ts }
ws.subscribe(
{ topic: 'publicTrade', payload: { instType: 'spot', symbol: 'BTCUSDT' } },
WS_KEY_MAP.v3Public,
);
Reconnects
The SDK reconnects and resubscribes on its own, and emits reconnected when the connection is back. After 17 November a resubscribe no longer gives you a catch-up snapshot, so any candles that closed while you were disconnected are missing. Listen for reconnected and run the REST seed again:
ws.on('reconnected', async () => {
const history = await rest.getCandles({ category: 'SPOT', symbol, interval: '1m', limit: '100' });
for (const row of history.data) applyCandle(fromRest(row));
});
Checklist
- Don’t treat the first
klineorpublicTrademessage as a full history. - Seed from
getCandles()(orgetHistoryCandles()for older ranges) andgetFills(). - Re-seed after
reconnected. - Test on demo trading now, since it already behaves the new way.
The Bitget API JavaScript tutorial covers the REST and WebSocket clients in more detail, and the Siebly docs list the other exchange SDKs from the same maintainers.

