Skip to main content

Module client

Module client 

Source
Expand description

tokio-tungstenite-backed WebSocket client for the Derive JSON-RPC stream.

DeriveWebSocketClient orchestrates the connection lifecycle and exposes a typed surface for public/login + the initial ticker channel. The actual I/O runs in super::handler::FeedHandler; the client communicates with it through an unbounded command channel and consumes DeriveWsMessage events.

Structsยง

DeriveWebSocketClient
WebSocket client for the Derive JSON-RPC stream.
DeriveWebSocketSubscriptionHandle
Cloneable command handle for Derive public market data subscriptions.
DeriveWsCredentials
Credentials for public/login. The session-key signer never escapes the client; only the wallet address is exposed via Debug.
DeriveWsExecutionHandle
Cloneable handle for issuing signed private/* trading requests over the WebSocket transport.