pub struct WalletStats {
pub address: String,
pub username: Option<String>,
pub avatar: Option<String>,
pub volume_usd: f64,
pub realized_pnl_usd: f64,
pub unrealized_pnl_usd: f64,
pub total_pnl_usd: f64,
pub roi_pct: f64,
pub win_rate: f64,
pub tokens_traded: i64,
pub trade_count: i64,
pub holding_value_usd: f64,
}Expand description
Average-cost performance for a wallet, rolled up across every token traded.
Fields§
§address: StringWallet address.
username: Option<String>Display name, when set.
avatar: Option<String>Avatar URL, when set.
volume_usd: f64Lifetime USD volume.
realized_pnl_usd: f64Realised PnL in USD.
unrealized_pnl_usd: f64Unrealised PnL in USD.
total_pnl_usd: f64Realised plus unrealised PnL in USD.
roi_pct: f64Return on invested capital, percent.
win_rate: f64Share of traded tokens that are net profitable, 0-1.
tokens_traded: i64Distinct tokens traded.
trade_count: i64Lifetime trade count.
holding_value_usd: f64USD value of everything still held.
Trait Implementations§
Source§impl Clone for WalletStats
impl Clone for WalletStats
Source§impl Debug for WalletStats
impl Debug for WalletStats
Source§impl<'de> Deserialize<'de> for WalletStats
impl<'de> Deserialize<'de> for WalletStats
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 WalletStats
impl RefUnwindSafe for WalletStats
impl Send for WalletStats
impl Sync for WalletStats
impl Unpin for WalletStats
impl UnsafeUnpin for WalletStats
impl UnwindSafe for WalletStats
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