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ยง
- Derive
WebSocket Client - WebSocket client for the Derive JSON-RPC stream.
- Derive
WebSocket Subscription Handle - Cloneable command handle for Derive public market data subscriptions.
- Derive
WsCredentials - Credentials for
public/login. The session-key signer never escapes the client; only the wallet address is exposed viaDebug. - Derive
WsExecution Handle - Cloneable handle for issuing signed
private/*trading requests over the WebSocket transport.