pub fn trigger_order_to_derive_payload(
order: &OrderAny,
instrument: &DeriveInstrument,
subaccount_id: u64,
wallet: Address,
signer: &PrivateKeySigner,
nonce: u64,
signature_expiry_sec: i64,
module_address: Address,
domain_separator: B256,
action_typehash: B256,
max_fee: Decimal,
explicit_price: Option<Decimal>,
conn_id: impl Into<String>,
order_id: impl Into<String>,
) -> Result<DeriveTriggerOrderParams>Expand description
Builds typed params for a signed trigger private/order request.
Derive assigns the order id and stores the order off-book until triggered.
The legacy conn_id and order_id arguments are omitted from the wire.
§Errors
Returns an error if the order quantity is quote-denominated, the order type, flags, or trigger
source are unsupported, required prices are absent, the instrument’s base_asset_address cannot
be parsed, decimal scaling fails, or EIP-712 signing fails.