bellSubscription Interface

Events

1. Kline Data Subscription

1.1 Kline Data Subscription (v1 - Spot Only, Original)

socket.emit('subscribe_kline', poolId, interval);

socket.emit('subscribe_kline', 1, '1m');

Returns only spot engine kline data, excluding AMM swap klines. This is the original behavior and remains the default.

1.2 Kline Data Subscription v2 (Aggregated)

socket.emit('subscribe_kline_v2', poolId, interval);

socket.emit('subscribe_kline_v2', 1, '1m');

Returns aggregated kline data (spot + AMM) including AMM swap klines. This is the new enhanced version.

2. Depth Data Subscription

2.1 Depth Data Subscription (v1 - Spot Only, Original)

socket.emit('subscribe_depth', poolId, precision);

socket.emit('subscribe_depth', 1, '0.00000001');

Returns only spot order book depth data, excluding AMM liquidity. This is the original behavior and remains the default.

2.2 Depth Data Subscription v2 (Aggregated)

Returns aggregated depth data (spot + AMM) when AMM pools are available. This is the new enhanced version.

3.Pool Stats Data Subscription

All Pools Stats Data Subscription

12. Unsubscribe

Unsubscribe All

Unsubscribe All Kline

Unsubscribe All Depth

Unsubscribe All Pool Stats

Subscription Response

When successfully subscribing to a topic, the subscribed event is received:

Last updated