Module websocket

Module websocket 

Source
Expand description

WebSocket client implementation for the OKX v5 API.

This module provides real-time streaming connectivity to OKX WebSocket endpoints, supporting:

  • Market data streaming (order books, trades, tickers, bars).
  • Private data streaming (account updates, positions, orders).
  • Order management (place, cancel, amend) via WebSocket.
  • Authentication and automatic reconnection.
  • Channel subscription management.

Re-exports§

pub use crate::websocket::client::OKXWebSocketClient;

Modules§

client
Provides the WebSocket client integration for the OKX WebSocket API.
enums
error
messages
parse