pub struct PooledTrade {
pub trade_id: SmartString,
pub order_id: SmartString,
pub symbol: SmartString,
pub price: Decimal,
pub quantity: Decimal,
pub side: SmartString,
pub timestamp: u64,
pub exchange_timestamp: u64,
pub is_maker: bool,
}Expand description
Pooled trade object for zero-allocation trade processing
Fields§
§trade_id: SmartStringUnique identifier for the trade assigned by the exchange
order_id: SmartStringAssociated order identifier that generated this trade
symbol: SmartStringTrading symbol (e.g., “BTC-USDT”)
price: DecimalExecution price in decimal precision
quantity: DecimalTrade quantity in decimal precision
side: SmartStringTrade side (“buy” or “sell”)
timestamp: u64System timestamp when the trade was processed (nanoseconds)
exchange_timestamp: u64Exchange timestamp when the trade occurred (nanoseconds)
is_maker: boolWhether this trade was executed as a maker (liquidity provider)
Trait Implementations§
Source§impl Clone for PooledTrade
impl Clone for PooledTrade
Source§fn clone(&self) -> PooledTrade
fn clone(&self) -> PooledTrade
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PooledTrade
impl RefUnwindSafe for PooledTrade
impl Send for PooledTrade
impl Sync for PooledTrade
impl Unpin for PooledTrade
impl UnwindSafe for PooledTrade
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more