pub struct TradingStats {
pub orders_placed: u32,
pub orders_filled: u32,
pub volume_traded: Decimal,
pub total_fees: Decimal,
pub realized_pnl: Decimal,
pub last_meta_log_ms: i64,
}Expand description
Trading statistics for meta logging (Poll mode)
Fields§
§orders_placed: u32Total orders placed
orders_filled: u32Total orders filled
volume_traded: DecimalTotal volume traded (notional)
total_fees: DecimalTotal fees paid
realized_pnl: DecimalRealized PnL (from closed positions)
last_meta_log_ms: i64Last meta log time
Trait Implementations§
Source§impl Clone for TradingStats
impl Clone for TradingStats
Source§fn clone(&self) -> TradingStats
fn clone(&self) -> TradingStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TradingStats
impl Debug for TradingStats
Source§impl Default for TradingStats
impl Default for TradingStats
Source§fn default() -> TradingStats
fn default() -> TradingStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TradingStats
impl RefUnwindSafe for TradingStats
impl Send for TradingStats
impl Sync for TradingStats
impl Unpin for TradingStats
impl UnsafeUnpin for TradingStats
impl UnwindSafe for TradingStats
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