pub struct PnlDetailSummary {Show 20 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 transfer_in_amount_in_usd: Option<String>,
pub transfer_in_count: Option<String>,
pub transfer_out_amount_in_usd: Option<String>,
pub transfer_out_count: Option<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"
},
"transferInAmountInUsd": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.TRANSFER_IN_AMOUNT_IN_USD",
"examples": [
"350.00"
],
"type": "string"
},
"transferInCount": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.TRANSFER_IN_COUNT — total TFR_IN events across all items",
"examples": [
"5"
],
"type": "string"
},
"transferOutAmountInUsd": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.TRANSFER_OUT_AMOUNT_IN_USD",
"examples": [
"29.40"
],
"type": "string"
},
"transferOutCount": {
"description": "ENTITY.PNL_DETAIL_SUMMARY.TRANSFER_OUT_COUNT — total TFR_OUT events across all items",
"examples": [
"2"
],
"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
transfer_in_amount_in_usd: Option<String>ENTITY.PNL_DETAIL_SUMMARY.TRANSFER_IN_AMOUNT_IN_USD
transfer_in_count: Option<String>ENTITY.PNL_DETAIL_SUMMARY.TRANSFER_IN_COUNT — total TFR_IN events across all items
transfer_out_amount_in_usd: Option<String>ENTITY.PNL_DETAIL_SUMMARY.TRANSFER_OUT_AMOUNT_IN_USD
transfer_out_count: Option<String>ENTITY.PNL_DETAIL_SUMMARY.TRANSFER_OUT_COUNT — total TFR_OUT events across all items
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more