pub struct Trade {Show 17 fields
pub symbol: String,
pub strategy: &'static str,
pub label: &'static str,
pub entry: NaiveDate,
pub exit: NaiveDate,
pub days: usize,
pub risk: f64,
pub pnl: f64,
pub ret: f64,
pub real_iv: bool,
pub path: Vec<(NaiveDate, f64)>,
pub legs: String,
pub entry_spot: f64,
pub exit_spot: f64,
pub entry_iv: f64,
pub dte: usize,
pub entry_edge: f64,
}Fields§
§symbol: String§strategy: &'static str§label: &'static str§entry: NaiveDate§exit: NaiveDate§days: usize§risk: f64§pnl: f64§ret: f64§real_iv: bool§path: Vec<(NaiveDate, f64)>Return on risk at each close the trade was open (entry day = cost only), for marking a portfolio to market day by day.
legs: StringHuman-readable legs, e.g. “+1 C 412.50, +1 P 412.50”.
entry_spot: f64§exit_spot: f64§entry_iv: f64ATM implied vol at entry (annualized).
dte: usizeTrading days from entry to expiry.
entry_edge: f64SD’s expected move ÷ the implied move, at entry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnsafeUnpin for Trade
impl UnwindSafe for Trade
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