pub struct PageResponseTopTraderDataItem {
pub buy_amount: String,
pub buy_amount_in_native: String,
pub buy_amount_in_usd: String,
pub buy_count: i64,
pub sell_amount: String,
pub sell_amount_in_native: String,
pub sell_amount_in_usd: String,
pub sell_count: i64,
pub token_address: String,
pub trade_amount: String,
pub trade_count: i64,
pub wallet_address: String,
}Expand description
Top trader statistics
JSON schema
{
"description": "Top trader statistics",
"type": "object",
"required": [
"buyAmount",
"buyAmountInNative",
"buyAmountInUsd",
"buyCount",
"sellAmount",
"sellAmountInNative",
"sellAmountInUsd",
"sellCount",
"tokenAddress",
"tradeAmount",
"tradeCount",
"walletAddress"
],
"properties": {
"buyAmount": {
"description": "Total buy amount in token units",
"examples": [
"600000"
],
"type": "string"
},
"buyAmountInNative": {
"description": "Total buy amount in native token",
"examples": [
"100.5"
],
"type": "string"
},
"buyAmountInUsd": {
"description": "Total buy amount in USD",
"examples": [
"12000.50"
],
"type": "string"
},
"buyCount": {
"description": "Number of buy trades",
"examples": [
60
],
"type": "integer",
"format": "int64"
},
"sellAmount": {
"description": "Total sell amount in token units",
"examples": [
"400000"
],
"type": "string"
},
"sellAmountInNative": {
"description": "Total sell amount in native token",
"examples": [
"66.8"
],
"type": "string"
},
"sellAmountInUsd": {
"description": "Total sell amount in USD",
"examples": [
"8000.30"
],
"type": "string"
},
"sellCount": {
"description": "Number of sell trades",
"examples": [
40
],
"type": "integer",
"format": "int64"
},
"tokenAddress": {
"description": "Token contract address",
"examples": [
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
],
"type": "string"
},
"tradeAmount": {
"description": "Total trade amount in token units",
"examples": [
"1000000"
],
"type": "string"
},
"tradeCount": {
"description": "Total number of trades",
"examples": [
100
],
"type": "integer",
"format": "int64"
},
"walletAddress": {
"description": "Trader wallet address",
"examples": [
"3xd4LGVWtYXLBspR6X5JWbW49NXmEehfPtX6Kqx98b4w"
],
"type": "string"
}
}
}Fields§
§buy_amount: StringTotal buy amount in token units
buy_amount_in_native: StringTotal buy amount in native token
buy_amount_in_usd: StringTotal buy amount in USD
buy_count: i64Number of buy trades
sell_amount: StringTotal sell amount in token units
sell_amount_in_native: StringTotal sell amount in native token
sell_amount_in_usd: StringTotal sell amount in USD
sell_count: i64Number of sell trades
token_address: StringToken contract address
trade_amount: StringTotal trade amount in token units
trade_count: i64Total number of trades
wallet_address: StringTrader wallet address
Implementations§
Trait Implementations§
Source§impl Clone for PageResponseTopTraderDataItem
impl Clone for PageResponseTopTraderDataItem
Source§fn clone(&self) -> PageResponseTopTraderDataItem
fn clone(&self) -> PageResponseTopTraderDataItem
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<'de> Deserialize<'de> for PageResponseTopTraderDataItem
impl<'de> Deserialize<'de> for PageResponseTopTraderDataItem
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<&PageResponseTopTraderDataItem> for PageResponseTopTraderDataItem
impl From<&PageResponseTopTraderDataItem> for PageResponseTopTraderDataItem
Source§fn from(value: &PageResponseTopTraderDataItem) -> Self
fn from(value: &PageResponseTopTraderDataItem) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseTopTraderDataItem> for PageResponseTopTraderDataItem
impl From<PageResponseTopTraderDataItem> for PageResponseTopTraderDataItem
Source§fn from(value: PageResponseTopTraderDataItem) -> Self
fn from(value: PageResponseTopTraderDataItem) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PageResponseTopTraderDataItem> for PageResponseTopTraderDataItem
impl TryFrom<PageResponseTopTraderDataItem> for PageResponseTopTraderDataItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PageResponseTopTraderDataItem,
) -> Result<Self, ConversionError>
fn try_from( value: PageResponseTopTraderDataItem, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseTopTraderDataItem
impl RefUnwindSafe for PageResponseTopTraderDataItem
impl Send for PageResponseTopTraderDataItem
impl Sync for PageResponseTopTraderDataItem
impl Unpin for PageResponseTopTraderDataItem
impl UnsafeUnpin for PageResponseTopTraderDataItem
impl UnwindSafe for PageResponseTopTraderDataItem
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