Expand description
JSON-RPC method names exchanged on the Derive WebSocket transport.
The private/* trading methods mirror the REST endpoints exactly: the
signed EIP-712 params built in crate::http::query and the result
envelopes in crate::http::models are reused verbatim over the
WebSocket. The session is authorized once via PUBLIC_LOGIN; no
per-request auth headers are sent.
Constantsยง
- PRIVATE_
CANCEL - Cancel a single order. Params:
crate::http::query::DeriveCancelParams. - PRIVATE_
CANCEL_ ALL - Cancel every open order on the subaccount, optionally scoped to an
instrument. Params:
crate::http::query::DeriveCancelAllParams. - PRIVATE_
CANCEL_ TRIGGER_ ORDER - Cancel a single trigger order. Params:
crate::http::query::DeriveCancelTriggerOrderParams. - PRIVATE_
GET_ TRIGGER_ ORDERS - List untriggered trigger orders. Params:
crate::http::query::DeriveGetTriggerOrdersParams. - PRIVATE_
ORDER - Submit a signed order. Params:
crate::http::query::DeriveOrderParams. - PRIVATE_
REPLACE - Atomically cancel one order and submit a replacement. Params:
crate::http::query::DeriveReplaceParams. - PRIVATE_
TRIGGER_ ORDER - Submit a signed trigger order. Params:
crate::http::query::DeriveTriggerOrderParams. - PUBLIC_
LOGIN - Authenticated session login. Params:
super::WsLoginParams. - PUBLIC_
SUBSCRIBE - Subscribe to a list of channels. Params:
super::WsSubscribeParams. - PUBLIC_
UNSUBSCRIBE - Unsubscribe from a list of channels. Params:
super::WsUnsubscribeParams.