pub struct ClosedPnl {Show 19 fields
pub symbol: String,
pub order_id: String,
pub side: String,
pub qty: String,
pub order_price: String,
pub order_type: String,
pub exec_type: String,
pub closed_size: String,
pub open_fee: Option<String>,
pub close_fee: Option<String>,
pub cum_entry_value: String,
pub avg_entry_price: String,
pub cum_exit_value: String,
pub avg_exit_price: String,
pub closed_pnl: String,
pub fill_count: Option<String>,
pub leverage: String,
pub created_time: String,
pub updated_time: String,
}Expand description
Closed PnL record.
Fields§
§symbol: StringTrading symbol.
order_id: StringOrder ID.
side: StringSide.
qty: StringQuantity.
order_price: StringOrder price.
order_type: StringOrder type.
exec_type: StringExecution type.
closed_size: StringClosed size.
open_fee: Option<String>Opening fee.
close_fee: Option<String>Closing fee.
cum_entry_value: StringCumulative entry value.
avg_entry_price: StringAverage entry price.
cum_exit_value: StringCumulative exit value.
avg_exit_price: StringAverage exit price.
closed_pnl: StringClosed PnL.
fill_count: Option<String>Fill count.
leverage: StringLeverage.
created_time: StringCreated time (ms).
updated_time: StringUpdated time (ms).
Trait 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
Auto Trait Implementations§
impl Freeze for ClosedPnl
impl RefUnwindSafe for ClosedPnl
impl Send for ClosedPnl
impl Sync for ClosedPnl
impl Unpin 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