pub struct PnLSingle {
pub position: f64,
pub daily_pnl: f64,
pub unrealized_pnl: f64,
pub realized_pnl: f64,
pub value: f64,
}Expand description
Real-time profit and loss metrics for a single position.
Fields§
§position: f64Current size of the position
daily_pnl: f64DailyPnL for the position
unrealized_pnl: f64UnrealizedPnL is the total unrealized PnL for the position (since inception) updating in real time
realized_pnl: f64RealizedPnL is the realized PnL for the position.
value: f64Current market value of the position
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PnLSingle
impl<'de> Deserialize<'de> for PnLSingle
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 PnLSingle
impl RefUnwindSafe for PnLSingle
impl Send for PnLSingle
impl Sync for PnLSingle
impl Unpin for PnLSingle
impl UnsafeUnpin for PnLSingle
impl UnwindSafe for PnLSingle
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