pub struct OpenTrade {
pub symbol: Symbol,
pub side: Side,
pub quantity: Quantity,
pub entry_price: Price,
pub entry_fair_value: Price,
pub entry_fee: Decimal,
pub opened_at: NanoTimestamp,
}Expand description
An open trade leg awaiting closure.
Fields§
§symbol: SymbolInstrument traded.
side: SideDirection of the opening fill.
quantity: QuantitySize of the opening fill.
entry_price: PriceExecution price of the opening fill.
entry_fair_value: PriceTheoretical fair value at entry time (e.g. mid-price).
Used to compute slippage: (entry_price - fair_value).abs() * qty.
entry_fee: DecimalCommission charged on entry.
opened_at: NanoTimestampWhen the trade was opened.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenTrade
impl RefUnwindSafe for OpenTrade
impl Send for OpenTrade
impl Sync for OpenTrade
impl Unpin for OpenTrade
impl UnsafeUnpin for OpenTrade
impl UnwindSafe for OpenTrade
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