pub struct BacktestClosedTrade {
pub entry_ts_ms: i64,
pub exit_ts_ms: i64,
pub side: String,
pub qty: String,
pub entry_price: String,
pub exit_price: String,
pub gross_pnl: String,
pub fees: String,
pub net_pnl: String,
}Expand description
Closed trade reconstructed from fill history.
Fields§
§entry_ts_ms: i64Entry timestamp in milliseconds.
exit_ts_ms: i64Exit timestamp in milliseconds.
side: StringTrade direction.
qty: StringClosed quantity as a decimal string.
entry_price: StringEntry price as a decimal string.
exit_price: StringExit price as a decimal string.
gross_pnl: StringGross PnL before fees as a decimal string.
fees: StringFees as a decimal string.
net_pnl: StringNet PnL after fees as a decimal string.
Trait Implementations§
Source§impl Clone for BacktestClosedTrade
impl Clone for BacktestClosedTrade
Source§fn clone(&self) -> BacktestClosedTrade
fn clone(&self) -> BacktestClosedTrade
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 BacktestClosedTrade
impl Debug for BacktestClosedTrade
Source§impl<'de> Deserialize<'de> for BacktestClosedTrade
impl<'de> Deserialize<'de> for BacktestClosedTrade
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
Auto Trait Implementations§
impl Freeze for BacktestClosedTrade
impl RefUnwindSafe for BacktestClosedTrade
impl Send for BacktestClosedTrade
impl Sync for BacktestClosedTrade
impl Unpin for BacktestClosedTrade
impl UnsafeUnpin for BacktestClosedTrade
impl UnwindSafe for BacktestClosedTrade
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