Request parameters.
Pushes best bid/ask updates for all symbols.
Request parameters.
Pushes mini ticker statistics for all symbols.
Request parameters.
Pushes full ticker statistics for all symbols.
Request parameters.
Pushes 24h ticker-like metrics for all tokens.
Request parameters.
Pushes best bid/ask updates for a symbol.
Request parameters.
Pushes kline updates by contractAddress@chainId.
Request parameters.
Disconnects from the WebSocket server. If there is no active connection, a warning is logged. Otherwise, all connections in the connection pool are closed gracefully, and a message is logged indicating that the connection has been disconnected.
A Promise that resolves when all connections have been closed.
Returns all available depth, including UI and API orders.
Request parameters.
Checks if the WebSocket connection is currently open.
true if the connection is open, false otherwise.
Checks if the WebSocket connection is subscribed to the specified stream.
The name of the WebSocket stream to check.
true if the connection is subscribed to the stream, false otherwise.
Pushes kline updates for a symbol.
Request parameters.
Pushes 24h rolling mini ticker statistics.
Request parameters.
Removes an event listener for the specified WebSocket event.
The WebSocket event to stop listening for, such as 'open', 'message', 'error', 'close', 'ping', or 'pong'.
The callback function that was previously added as the event listener.
Adds an event listener for the specified WebSocket event.
The WebSocket event to listen for, such as 'open', 'message', 'error', 'close', 'ping', or 'pong'.
The callback function to be executed when the event is triggered. The function can accept any number of arguments.
Pushes partial depth updates (UI orders only).
Request parameters.
Subscribes to one or multiple WebSocket streams Handles both single and pool modes
Single stream name or array of stream names to subscribe to
Optionalid: numberOptional subscription ID
void
Pushes full 24h rolling ticker statistics.
Request parameters.
Pushes raw trade updates for a symbol.
Request parameters.
Unsubscribes from one or multiple WebSocket streams Handles both single and pool modes
Single stream name or array of stream names to unsubscribe from
Optionalid: numberOptional unsubscription ID
void
Pushes aggregate trade updates for a symbol.