pub struct ClosedPnl {Show 18 fields
pub symbol: String,
pub order_id: String,
pub order_link_id: Option<String>,
pub side: Side,
pub qty: Decimal,
pub order_price: Decimal,
pub order_type: OrderType,
pub exec_type: ExecType,
pub closed_size: Decimal,
pub cum_entry_value: Decimal,
pub avg_entry_price: Decimal,
pub cum_exit_value: Decimal,
pub avg_exit_price: Decimal,
pub closed_pnl: Decimal,
pub fill_count: i64,
pub leverage: Decimal,
pub created_time: Timestamp,
pub updated_time: Timestamp,
}Fields§
§symbol: String§order_id: String§order_link_id: Option<String>§side: Side§qty: Decimal§order_price: Decimal§order_type: OrderType§exec_type: ExecType§closed_size: Decimal§cum_entry_value: Decimal§avg_entry_price: Decimal§cum_exit_value: Decimal§avg_exit_price: Decimal§closed_pnl: Decimal§fill_count: i64§leverage: Decimal§created_time: Timestamp§updated_time: TimestampTrait Implementations§
Source§impl<'de> Deserialize<'de> for ClosedPnl
impl<'de> Deserialize<'de> for ClosedPnl
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
impl StructuralPartialEq for ClosedPnl
Auto Trait Implementations§
impl Freeze for ClosedPnl
impl RefUnwindSafe for ClosedPnl
impl Send for ClosedPnl
impl Sync for ClosedPnl
impl Unpin for ClosedPnl
impl UnsafeUnpin for ClosedPnl
impl UnwindSafe for ClosedPnl
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