pub struct PooledOrder {
pub order_id: SmartString,
pub client_order_id: SmartString,
pub symbol: SmartString,
pub side: SmartString,
pub order_type: SmartString,
pub price: Decimal,
pub quantity: Decimal,
pub filled_quantity: Decimal,
pub remaining_quantity: Decimal,
pub status: SmartString,
pub timestamp: u64,
pub exchange_timestamp: u64,
}Expand description
Pooled order object for zero-allocation order processing
Fields§
§order_id: SmartStringUnique identifier for the order assigned by the exchange
client_order_id: SmartStringClient-provided order identifier for tracking purposes
symbol: SmartStringTrading symbol (e.g., “BTC-USDT”)
side: SmartStringOrder side (“buy” or “sell”)
order_type: SmartStringOrder type (e.g., “limit”, “market”, “stop”)
price: DecimalOrder price in decimal precision
quantity: DecimalTotal order quantity in decimal precision
filled_quantity: DecimalQuantity that has been filled so far
remaining_quantity: DecimalQuantity remaining to be filled
status: SmartStringCurrent order status (e.g., “new”, “filled”, “cancelled”)
timestamp: u64System timestamp when the order was created (nanoseconds)
exchange_timestamp: u64Exchange timestamp when the order was received (nanoseconds)
Trait Implementations§
Source§impl Clone for PooledOrder
impl Clone for PooledOrder
Source§fn clone(&self) -> PooledOrder
fn clone(&self) -> PooledOrder
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 PooledOrder
impl RefUnwindSafe for PooledOrder
impl Send for PooledOrder
impl Sync for PooledOrder
impl Unpin for PooledOrder
impl UnwindSafe for PooledOrder
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