pub struct PnlDetailSummary {Show 16 fields
pub avg_profit_per_trade_in_usd: String,
pub buy_amount_in_usd: String,
pub buys: String,
pub current_value: String,
pub losses: String,
pub realized_profit_in_usd: String,
pub realized_profit_ratio: String,
pub sell_amount_in_usd: String,
pub sells: String,
pub tokens: String,
pub total_cost_in_usd: String,
pub total_profit_in_usd: String,
pub total_trades: String,
pub unrealized_profit_in_usd: String,
pub win_rate: String,
pub wins: String,
}Expand description
Aggregated PnL summary across all items (mirrors TS PnlDetailSummaryDTO).
JSON schema
{
"description": "Aggregated PnL summary across all items (mirrors TS PnlDetailSummaryDTO).",
"type": "object",
"required": [
"avgProfitPerTradeInUsd",
"buyAmountInUsd",
"buys",
"currentValue",
"losses",
"realizedProfitInUsd",
"realizedProfitRatio",
"sellAmountInUsd",
"sells",
"tokens",
"totalCostInUsd",
"totalProfitInUsd",
"totalTrades",
"unrealizedProfitInUsd",
"winRate",
"wins"
],
"properties": {
"avgProfitPerTradeInUsd": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.AVG_PROFIT_PER_TRADE_IN_USD",
"examples": [
"3206068.5728287027967835484926836364"
],
"type": "string"
},
"buyAmountInUsd": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.BUY_AMOUNT_IN_USD",
"examples": [
"48469.1690094067802589"
],
"type": "string"
},
"buys": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.BUYS",
"examples": [
"275"
],
"type": "string"
},
"currentValue": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.CURRENT_VALUE",
"examples": [
"1062513957.429816153652557077014"
],
"type": "string"
},
"losses": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.LOSSES",
"examples": [
"69"
],
"type": "string"
},
"realizedProfitInUsd": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.REALIZED_PROFIT_IN_USD",
"examples": [
"67.1297848453256596"
],
"type": "string"
},
"realizedProfitRatio": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.REALIZED_PROFIT_RATIO",
"examples": [
"0.0013849997063555447320269173"
],
"type": "string"
},
"sellAmountInUsd": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.SELL_AMOUNT_IN_USD",
"examples": [
"6467.3243671310312402"
],
"type": "string"
},
"sells": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.SELLS",
"examples": [
"110"
],
"type": "string"
},
"tokens": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.TOKENS",
"examples": [
"1"
],
"type": "string"
},
"totalCostInUsd": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.TOTAL_COST_IN_USD",
"examples": [
"48469.1690094067802589"
],
"type": "string"
},
"totalProfitInUsd": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.TOTAL_PROFIT_IN_USD",
"examples": [
"1234336400.5390505767616661696832"
],
"type": "string"
},
"totalTrades": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.TOTAL_TRADES",
"examples": [
"385"
],
"type": "string"
},
"unrealizedProfitInUsd": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.UNREALIZED_PROFIT_IN_USD",
"examples": [
"1234336333.4092657314360065696832"
],
"type": "string"
},
"winRate": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.WIN_RATE",
"examples": [
"0.5688"
],
"type": "string"
},
"wins": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.WINS",
"examples": [
"91"
],
"type": "string"
}
}
}Fields§
§avg_profit_per_trade_in_usd: StringENTITY.PNL_DETAIL_SUMMARY.AVG_PROFIT_PER_TRADE_IN_USD
buy_amount_in_usd: StringENTITY.PNL_DETAIL_SUMMARY.BUY_AMOUNT_IN_USD
buys: StringENTITY.PNL_DETAIL_SUMMARY.BUYS
current_value: StringENTITY.PNL_DETAIL_SUMMARY.CURRENT_VALUE
losses: StringENTITY.PNL_DETAIL_SUMMARY.LOSSES
realized_profit_in_usd: StringENTITY.PNL_DETAIL_SUMMARY.REALIZED_PROFIT_IN_USD
realized_profit_ratio: StringENTITY.PNL_DETAIL_SUMMARY.REALIZED_PROFIT_RATIO
sell_amount_in_usd: StringENTITY.PNL_DETAIL_SUMMARY.SELL_AMOUNT_IN_USD
sells: StringENTITY.PNL_DETAIL_SUMMARY.SELLS
tokens: StringENTITY.PNL_DETAIL_SUMMARY.TOKENS
total_cost_in_usd: StringENTITY.PNL_DETAIL_SUMMARY.TOTAL_COST_IN_USD
total_profit_in_usd: StringENTITY.PNL_DETAIL_SUMMARY.TOTAL_PROFIT_IN_USD
total_trades: StringENTITY.PNL_DETAIL_SUMMARY.TOTAL_TRADES
unrealized_profit_in_usd: StringENTITY.PNL_DETAIL_SUMMARY.UNREALIZED_PROFIT_IN_USD
win_rate: StringENTITY.PNL_DETAIL_SUMMARY.WIN_RATE
wins: StringENTITY.PNL_DETAIL_SUMMARY.WINS
Implementations§
Source§impl PnlDetailSummary
impl PnlDetailSummary
pub fn builder() -> PnlDetailSummary
Trait Implementations§
Source§impl Clone for PnlDetailSummary
impl Clone for PnlDetailSummary
Source§fn clone(&self) -> PnlDetailSummary
fn clone(&self) -> PnlDetailSummary
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 PnlDetailSummary
impl Debug for PnlDetailSummary
Source§impl<'de> Deserialize<'de> for PnlDetailSummary
impl<'de> Deserialize<'de> for PnlDetailSummary
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 From<&PnlDetailSummary> for PnlDetailSummary
impl From<&PnlDetailSummary> for PnlDetailSummary
Source§fn from(value: &PnlDetailSummary) -> Self
fn from(value: &PnlDetailSummary) -> Self
Converts to this type from the input type.
Source§impl From<PnlDetailSummary> for PnlDetailSummary
impl From<PnlDetailSummary> for PnlDetailSummary
Source§fn from(value: PnlDetailSummary) -> Self
fn from(value: PnlDetailSummary) -> Self
Converts to this type from the input type.
Source§impl Serialize for PnlDetailSummary
impl Serialize for PnlDetailSummary
Source§impl TryFrom<PnlDetailSummary> for PnlDetailSummary
impl TryFrom<PnlDetailSummary> for PnlDetailSummary
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PnlDetailSummary) -> Result<Self, ConversionError>
fn try_from(value: PnlDetailSummary) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PnlDetailSummary
impl RefUnwindSafe for PnlDetailSummary
impl Send for PnlDetailSummary
impl Sync for PnlDetailSummary
impl Unpin for PnlDetailSummary
impl UnsafeUnpin for PnlDetailSummary
impl UnwindSafe for PnlDetailSummary
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