pub struct ProfitAnalysisSummary {Show 13 fields
pub currency: String,
pub current_total_asset: Option<Decimal>,
pub start_date: String,
pub end_date: String,
pub start_time: String,
pub end_time: String,
pub ending_asset_value: Option<Decimal>,
pub initial_asset_value: Option<Decimal>,
pub invest_amount: Option<Decimal>,
pub is_traded: bool,
pub sum_profit: Option<Decimal>,
pub sum_profit_rate: Option<Decimal>,
pub profits: ProfitSummaryBreakdown,
}Expand description
Account-level P&L summary
Fields§
§currency: StringAccount currency
current_total_asset: Option<Decimal>Current total asset value
start_date: StringQuery start date string
end_date: StringQuery end date string
start_time: StringStart time (unix timestamp string)
end_time: StringEnd time (unix timestamp string)
ending_asset_value: Option<Decimal>Ending asset value
initial_asset_value: Option<Decimal>Initial asset value
invest_amount: Option<Decimal>Total invested amount
is_traded: boolWhether any trades occurred
sum_profit: Option<Decimal>Total profit/loss
sum_profit_rate: Option<Decimal>Total profit/loss rate
profits: ProfitSummaryBreakdownPer-asset-type breakdown
Trait Implementations§
Source§impl Clone for ProfitAnalysisSummary
impl Clone for ProfitAnalysisSummary
Source§fn clone(&self) -> ProfitAnalysisSummary
fn clone(&self) -> ProfitAnalysisSummary
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 ProfitAnalysisSummary
impl Debug for ProfitAnalysisSummary
Source§impl<'de> Deserialize<'de> for ProfitAnalysisSummary
impl<'de> Deserialize<'de> for ProfitAnalysisSummary
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 ProfitAnalysisSummary
impl RefUnwindSafe for ProfitAnalysisSummary
impl Send for ProfitAnalysisSummary
impl Sync for ProfitAnalysisSummary
impl Unpin for ProfitAnalysisSummary
impl UnsafeUnpin for ProfitAnalysisSummary
impl UnwindSafe for ProfitAnalysisSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more