Expand description
Wire-format enums for the Derive REST/WS APIs.
Variants are sourced from the venue’s own Rust SDK at
derivexyz/cockpit,
which is generated from Derive’s JSON-RPC schemas. Variant wire strings are
case-sensitive and must round-trip byte-equivalent.
Structs§
- Derive
Asset Type Iter - An iterator over the variants of DeriveAssetType
- Derive
Instrument Type Iter - An iterator over the variants of DeriveInstrumentType
Enums§
- Derive
Asset Type - Wire-level asset type as returned in subaccount and collateral responses
(
asset_typefield onprivate/get_subaccount,public/get_assets,private/get_collaterals). The variants line up byte-for-byte withDeriveInstrumentTypebut the venue treats it as a distinct field. - Derive
Auction State - Liquidation auction state.
- Derive
Auction Type - Liquidation auction type returned by
private/get_liquidation_history. - Derive
Balance Update Type - Cause of a balance row update on the WS
{subaccount_id}.balanceschannel. - Derive
Compliance Status - Compliance status returned by
public/change_compliance_status. - Derive
Environment - Derive network selector. Drives REST/WS URLs and per-network protocol
constants (
DOMAIN_SEPARATOR, module addresses). - Derive
Instrument Type - Wire-level instrument type returned by
public/get_instrumentsand used as theinstrument_typefilter on listing endpoints and WS channel names liketrades.{instrument_type}.{currency}. - Derive
Liquidity Role - Role of the user in a trade (
liquidity_rolefield). - Derive
Margin Type - Subaccount margining mode. Returned by
private/get_subaccount. Subaccount creation accepts onlySmandPm;Pm2appears only as a read value when an account has migrated to PMRM v2. - Derive
Notification Status - Notification acknowledgement state on
private/get_notificationsandprivate/update_notifications. - Derive
Notification Type - Notification category. The
Typesvariant is emitted by the upstream codegen and surfaces in the wire enum; treat it as a generic placeholder rather than a meaningful category. - Derive
Option Kind - Option kind parsed from the
instrument_namesuffix (e.g.-Cor-P). - Derive
Order Cancel Reason - Cancel reason attached to a cancelled order. Empty string corresponds to no reason (order is still open or finished by another transition).
- Derive
Order Side - Order side (
directionfield on the venue API). - Derive
Order Status - Order lifecycle status reported by
private/get_orders,private/get_order_history, and the WS{subaccount_id}.orderschannel. - Derive
Order Type - Order type accepted by
private/orderandprivate/trigger_order. - Derive
Orderbook Depth - Discrete depth values allowed in the WS subscription channel name
orderbook.{instrument_name}.{group}.{depth}. - Derive
Orderbook Group - Discrete price-grouping values for
orderbook.{instrument_name}.{group}.{depth}. - Derive
RfqCancel Reason - Cancel reason attached to a cancelled RFQ quote. Similar to
DeriveOrderCancelReasonbut emitsrfq_no_longer_openinstead ofioc_or_market_partial_fill. - Derive
Ticker Interval - Discrete ticker push intervals (milliseconds) for the WS
ticker_slim.{instrument_name}.{interval}channel. - Derive
Time InForce - Time-in-force flag accepted by
private/order. - Derive
Trigger Price Type - Trigger price source accepted by
private/trigger_order. - Derive
Trigger Type - Trigger side accepted by
private/trigger_order. - Derive
TxStatus - Blockchain transaction lifecycle status (
tx_statusfield on trades, deposits, withdrawals, transfers, and liquidation history).