pub struct TradeFillData {Show 16 fields
pub common: OrderUpdateCommon,
pub side: String,
pub price: Option<String>,
pub avg_price: Option<String>,
pub quantity: Option<String>,
pub last_filled_qty: String,
pub last_filled_price: String,
pub commission: String,
pub commission_asset: String,
pub is_maker: bool,
pub trade_id: u64,
pub realized_pnl: String,
pub fill_type: Option<String>,
pub cumulative_filled_size: Option<String>,
pub cumulative_filled_cot: Option<String>,
pub remaining_size: Option<String>,
}Expand description
Order data for TRADE fills.
Fields populated only for orderbook fills (when the rollup emits cumulative
counters) are wrapped in Option: ap, ft, z, Z, rs. Liquidation
fills typically omit these — use X == "FILLED" from OrderUpdateCommon
as the canonical “fully filled” signal in that case.
Fields§
§common: OrderUpdateCommon§side: String§price: Option<String>§avg_price: Option<String>Average fill price across cumulative fills. Added 2026-05-23.
quantity: Option<String>§last_filled_qty: String§last_filled_price: String§commission: String§commission_asset: StringCommission asset (e.g. "USDC"). Added 2026-05-23.
is_maker: boolWhether this fill was on the maker side.
trade_id: u64Sequencer-assigned trade id.
realized_pnl: StringRealized PnL for this fill. Added 2026-05-23.
fill_type: Option<String>Fill type: "orderbook" ("o") for book fills, "liquidation" ("l")
for liquidation fills. Absent on legacy fills.
cumulative_filled_size: Option<String>Cumulative filled size across partial fills. Absent when upstream did not provide it (e.g. liquidations).
cumulative_filled_cot: Option<String>Cumulative quote notional filled. Absent when upstream did not provide it.
remaining_size: Option<String>Remaining size on the order ("0" means fully filled). Absent when
upstream did not provide it; fall back to X == "FILLED" for that case.
Trait Implementations§
Source§impl Clone for TradeFillData
impl Clone for TradeFillData
Source§fn clone(&self) -> TradeFillData
fn clone(&self) -> TradeFillData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more