pub struct PnL {
pub daily_pnl: f64,
pub unrealized_pnl: Option<f64>,
pub realized_pnl: Option<f64>,
}
Expand description
Realtime PnL update for account.
Fields§
§daily_pnl: f64
DailyPnL for the position
unrealized_pnl: Option<f64>
UnrealizedPnL total unrealized PnL for the position (since inception) updating in real time.
realized_pnl: Option<f64>
Realized PnL for the position
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PnL
impl<'de> Deserialize<'de> for PnL
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 PnL
impl RefUnwindSafe for PnL
impl Send for PnL
impl Sync for PnL
impl Unpin for PnL
impl UnwindSafe for PnL
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