Skip to main content

Module execution

Module execution 

Source
Expand description

Live execution client implementation for the Derive adapter.

Mirrors the Hyperliquid adapter’s structural pattern: an [ExecutionClientCore] holds identity and connection state, an [ExecutionEventEmitter] publishes order/account events back to the live engine, and the venue clients (DeriveHttpClient, DeriveWebSocketClient) handle the wire. All state-changing requests are EIP-712 typed-data signed against the per-action module contracts on the Derive Chain; the private/order body in particular is built by order_to_derive_payload.

Structs§

DeriveExecutionClient
Live execution client for Derive.

Functions§

dispatch_orders_payload
Dispatches a parsed {subaccount_id}.orders payload to the execution event emitter.
dispatch_trades_payload
Dispatches a parsed {subaccount_id}.trades payload to the execution event emitter.