pub struct TradeStats {
pub count: u64,
pub volume: f64,
pub total_fees: f64,
pub avg_price: f64,
pub pnl: f64,
pub winning_trades: u64,
pub losing_trades: u64,
}Expand description
Trade statistics
Fields§
§count: u64Total number of trades
volume: f64Total volume
total_fees: f64Total fees paid
avg_price: f64Average price
pnl: f64Profit and loss
winning_trades: u64Number of winning trades
losing_trades: u64Number of losing trades
Implementations§
Trait Implementations§
Source§impl Clone for TradeStats
impl Clone for TradeStats
Source§fn clone(&self) -> TradeStats
fn clone(&self) -> TradeStats
Returns a duplicate of the value. Read more
1.0.0 · 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 TradeStats
impl Debug for TradeStats
Source§impl Default for TradeStats
impl Default for TradeStats
Source§impl<'de> Deserialize<'de> for TradeStats
impl<'de> Deserialize<'de> for TradeStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TradeStats
impl Display for TradeStats
Auto Trait Implementations§
impl Freeze for TradeStats
impl RefUnwindSafe for TradeStats
impl Send for TradeStats
impl Sync for TradeStats
impl Unpin for TradeStats
impl UnwindSafe for TradeStats
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