pub struct WalletPnlSummary {Show 20 fields
pub avg_profit_per_trade_in_usd: String,
pub buy_amount_in_usd: String,
pub buys: String,
pub losses: String,
pub realized_profit_in_usd: String,
pub realized_profit_ratio: String,
pub resolution: 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_profit_ratio: String,
pub total_trades: String,
pub unrealized_profit_in_usd: String,
pub unrealized_profit_ratio: String,
pub updated_at: Option<String>,
pub wallet_address: String,
pub win_rate: String,
pub wins: String,
}Expand description
Wallet PnL Summary (aggregated across all tokens for a given resolution)
JSON schema
{
"description": "Wallet PnL Summary (aggregated across all tokens for a given resolution)",
"type": "object",
"required": [
"avgProfitPerTradeInUsd",
"buyAmountInUsd",
"buys",
"losses",
"realizedProfitInUsd",
"realizedProfitRatio",
"resolution",
"sellAmountInUsd",
"sells",
"tokens",
"totalCostInUsd",
"totalProfitInUsd",
"totalProfitRatio",
"totalTrades",
"unrealizedProfitInUsd",
"unrealizedProfitRatio",
"walletAddress",
"winRate",
"wins"
],
"properties": {
"avgProfitPerTradeInUsd": {
"description": "Average profit per trade in USD",
"examples": [
"402.86"
],
"type": "string"
},
"buyAmountInUsd": {
"description": "Total buy amount in USD",
"examples": [
"101371192.39"
],
"type": "string"
},
"buys": {
"description": "Total number of buy trades",
"examples": [
"1515999"
],
"type": "string"
},
"losses": {
"description": "Number of losing trades",
"examples": [
"348350"
],
"type": "string"
},
"realizedProfitInUsd": {
"description": "Realized profit in USD",
"examples": [
"802583.91"
],
"type": "string"
},
"realizedProfitRatio": {
"description": "Realized profit ratio",
"examples": [
"0.0035521324"
],
"type": "string"
},
"resolution": {
"description": "PnL time resolution",
"examples": [
"1d"
],
"type": "string"
},
"sellAmountInUsd": {
"description": "Total sell amount in USD",
"examples": [
"60369621.10"
],
"type": "string"
},
"sells": {
"description": "Total number of sell trades",
"examples": [
"1011994"
],
"type": "string"
},
"tokens": {
"description": "Total number of traded tokens",
"examples": [
"15126"
],
"type": "string"
},
"totalCostInUsd": {
"description": "Total cost basis in USD",
"examples": [
"225944253.64"
],
"type": "string"
},
"totalProfitInUsd": {
"description": "Total profit (realized + unrealized) in USD",
"examples": [
"1018427683.08"
],
"type": "string"
},
"totalProfitRatio": {
"description": "Total profit ratio",
"examples": [
"4.5074290081"
],
"type": "string"
},
"totalTrades": {
"description": "Total number of all trades",
"examples": [
"2527993"
],
"type": "string"
},
"unrealizedProfitInUsd": {
"description": "Unrealized profit in USD",
"examples": [
"1017625099.17"
],
"type": "string"
},
"unrealizedProfitRatio": {
"description": "Unrealized profit ratio",
"examples": [
"4.5038768756"
],
"type": "string"
},
"updatedAt": {
"description": "Last updated timestamp",
"examples": [
"2026-02-04T11:42:50.000Z"
],
"type": "string"
},
"walletAddress": {
"description": "Wallet address",
"examples": [
"54Pz1e35z9uoFdnxtzjp7xZQoFiofqhdayQWBMN7dsuy"
],
"type": "string"
},
"winRate": {
"description": "Ratio of winning trades to total trades",
"examples": [
"0.5575"
],
"type": "string"
},
"wins": {
"description": "Number of profitable trades",
"examples": [
"438944"
],
"type": "string"
}
}
}Fields§
§avg_profit_per_trade_in_usd: StringAverage profit per trade in USD
buy_amount_in_usd: StringTotal buy amount in USD
buys: StringTotal number of buy trades
losses: StringNumber of losing trades
realized_profit_in_usd: StringRealized profit in USD
realized_profit_ratio: StringRealized profit ratio
resolution: StringPnL time resolution
sell_amount_in_usd: StringTotal sell amount in USD
sells: StringTotal number of sell trades
tokens: StringTotal number of traded tokens
total_cost_in_usd: StringTotal cost basis in USD
total_profit_in_usd: StringTotal profit (realized + unrealized) in USD
total_profit_ratio: StringTotal profit ratio
total_trades: StringTotal number of all trades
unrealized_profit_in_usd: StringUnrealized profit in USD
unrealized_profit_ratio: StringUnrealized profit ratio
updated_at: Option<String>Last updated timestamp
wallet_address: StringWallet address
win_rate: StringRatio of winning trades to total trades
wins: StringNumber of profitable trades
Implementations§
Source§impl WalletPnlSummary
impl WalletPnlSummary
pub fn builder() -> WalletPnlSummary
Trait Implementations§
Source§impl Clone for WalletPnlSummary
impl Clone for WalletPnlSummary
Source§fn clone(&self) -> WalletPnlSummary
fn clone(&self) -> WalletPnlSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WalletPnlSummary
impl Debug for WalletPnlSummary
Source§impl<'de> Deserialize<'de> for WalletPnlSummary
impl<'de> Deserialize<'de> for WalletPnlSummary
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<&WalletPnlSummary> for WalletPnlSummary
impl From<&WalletPnlSummary> for WalletPnlSummary
Source§fn from(value: &WalletPnlSummary) -> Self
fn from(value: &WalletPnlSummary) -> Self
Converts to this type from the input type.
Source§impl From<WalletPnlSummary> for WalletPnlSummary
impl From<WalletPnlSummary> for WalletPnlSummary
Source§fn from(value: WalletPnlSummary) -> Self
fn from(value: WalletPnlSummary) -> Self
Converts to this type from the input type.
Source§impl Serialize for WalletPnlSummary
impl Serialize for WalletPnlSummary
Source§impl TryFrom<WalletPnlSummary> for WalletPnlSummary
impl TryFrom<WalletPnlSummary> for WalletPnlSummary
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WalletPnlSummary) -> Result<Self, ConversionError>
fn try_from(value: WalletPnlSummary) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WalletPnlSummary
impl RefUnwindSafe for WalletPnlSummary
impl Send for WalletPnlSummary
impl Sync for WalletPnlSummary
impl Unpin for WalletPnlSummary
impl UnsafeUnpin for WalletPnlSummary
impl UnwindSafe for WalletPnlSummary
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