Skip to main content

Module methods

Module methods 

Source
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.