pub struct AssetSummary {
pub account_id: String,
pub acct_alias: Option<String>,
pub model: Option<String>,
pub asset_category: Option<AssetCategory>,
pub total_buy_quantity: Option<Decimal>,
pub total_sell_quantity: Option<Decimal>,
pub total_buy_value: Option<Decimal>,
pub total_sell_value: Option<Decimal>,
pub total_commission: Option<Decimal>,
pub realized_pnl: Option<Decimal>,
pub currency: Option<String>,
}Expand description
Asset summary (aggregated trading data by asset class)
Fields§
§account_id: StringAccount ID
acct_alias: Option<String>Account alias
model: Option<String>Model
asset_category: Option<AssetCategory>Asset category
total_buy_quantity: Option<Decimal>Total buy quantity
total_sell_quantity: Option<Decimal>Total sell quantity
total_buy_value: Option<Decimal>Total buy value
total_sell_value: Option<Decimal>Total sell value
total_commission: Option<Decimal>Total commission
realized_pnl: Option<Decimal>Realized P&L
currency: Option<String>Currency
Trait Implementations§
Source§impl Clone for AssetSummary
impl Clone for AssetSummary
Source§fn clone(&self) -> AssetSummary
fn clone(&self) -> AssetSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssetSummary
impl Debug for AssetSummary
Source§impl<'de> Deserialize<'de> for AssetSummary
impl<'de> Deserialize<'de> for AssetSummary
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
Source§impl PartialEq for AssetSummary
impl PartialEq for AssetSummary
Source§impl Serialize for AssetSummary
impl Serialize for AssetSummary
impl StructuralPartialEq for AssetSummary
Auto Trait Implementations§
impl Freeze for AssetSummary
impl RefUnwindSafe for AssetSummary
impl Send for AssetSummary
impl Sync for AssetSummary
impl Unpin for AssetSummary
impl UnwindSafe for AssetSummary
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