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": {
"examples": [
"402.86"
],
"type": "string"
},
"buyAmountInUsd": {
"examples": [
"101371192.39"
],
"type": "string"
},
"buys": {
"examples": [
"1515999"
],
"type": "string"
},
"losses": {
"examples": [
"348350"
],
"type": "string"
},
"realizedProfitInUsd": {
"examples": [
"802583.91"
],
"type": "string"
},
"realizedProfitRatio": {
"examples": [
"0.0035521324"
],
"type": "string"
},
"resolution": {
"examples": [
"1d"
],
"type": "string"
},
"sellAmountInUsd": {
"examples": [
"60369621.10"
],
"type": "string"
},
"sells": {
"examples": [
"1011994"
],
"type": "string"
},
"tokens": {
"examples": [
"15126"
],
"type": "string"
},
"totalCostInUsd": {
"examples": [
"225944253.64"
],
"type": "string"
},
"totalProfitInUsd": {
"examples": [
"1018427683.08"
],
"type": "string"
},
"totalProfitRatio": {
"examples": [
"4.5074290081"
],
"type": "string"
},
"totalTrades": {
"examples": [
"2527993"
],
"type": "string"
},
"unrealizedProfitInUsd": {
"examples": [
"1017625099.17"
],
"type": "string"
},
"unrealizedProfitRatio": {
"examples": [
"4.5038768756"
],
"type": "string"
},
"updatedAt": {
"examples": [
"2026-02-04T11:42:50.000Z"
],
"type": "string"
},
"walletAddress": {
"examples": [
"54Pz1e35z9uoFdnxtzjp7xZQoFiofqhdayQWBMN7dsuy"
],
"type": "string"
},
"winRate": {
"examples": [
"0.5575"
],
"type": "string"
},
"wins": {
"examples": [
"438944"
],
"type": "string"
}
}
}Fields§
§avg_profit_per_trade_in_usd: String§buy_amount_in_usd: String§buys: String§losses: String§realized_profit_in_usd: String§realized_profit_ratio: String§resolution: String§sell_amount_in_usd: String§sells: String§tokens: String§total_cost_in_usd: String§total_profit_in_usd: String§total_profit_ratio: String§total_trades: String§unrealized_profit_in_usd: String§unrealized_profit_ratio: String§updated_at: Option<String>§wallet_address: String§win_rate: String§wins: StringImplementations§
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 · 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