pub struct PageResponseNetWorthByTokensItem {
pub data: Vec<PageResponseNetWorthByTokensItemDataItem>,
pub end_cursor: Option<String>,
pub has_next: Option<bool>,
pub has_prev: Option<bool>,
pub start_cursor: Option<String>,
}Expand description
Generic pagination response
JSON schema
{
"description": "Generic pagination response",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"description": "Page data",
"type": "array",
"items": {
"description": "Single token net-worth item (mirrors TS WalletNetWorthItemDTO).",
"type": "object",
"required": [
"amount",
"chain",
"decimals",
"isActive",
"name",
"priceInNative",
"priceInUsd",
"symbol",
"tokenAddress",
"valueInNative",
"valueInUsd"
],
"properties": {
"accuAmount": {
"description": "Accumulated net token position in token native units:\nbuy_amount - sell_amount + transfer_in_amount - transfer_out_amount.\nMirrors GMGN `accu_amount`. None when all four source fields are absent.",
"type": "string"
},
"amount": {
"description": "Token holding amount",
"examples": [
"1000.50"
],
"type": "string"
},
"avgCostUsd": {
"description": "Average cost per token in USD (balance_cost_avg_in_usd; sparse ~0.2% fill rate)",
"type": "string"
},
"chain": {
"description": "Blockchain network identifier",
"examples": [
"sol"
],
"type": "string"
},
"decimals": {
"description": "Token decimal places",
"examples": [
6
],
"type": "integer",
"format": "int32"
},
"isActive": {
"description": "Whether the wallet currently holds a non-zero balance",
"type": "boolean"
},
"lastActiveAt": {
"description": "Last active timestamp (ms since epoch)",
"type": "integer",
"format": "int64"
},
"logoUri": {
"description": "Token logo URI",
"examples": [
"https://s1.chainstream.io/tokens/images/usdc.webp"
],
"type": "string"
},
"name": {
"description": "Token display name",
"examples": [
"USD Coin"
],
"type": "string"
},
"priceInNative": {
"description": "Token price in native token",
"examples": [
"0.00000667"
],
"type": "string"
},
"priceInUsd": {
"description": "Token price in USD",
"examples": [
"1.0001"
],
"type": "string"
},
"realizedPnlInUsd": {
"description": "Realized PnL in USD (all-time cumulative)",
"type": "string"
},
"symbol": {
"description": "Token ticker symbol",
"examples": [
"USDC"
],
"type": "string"
},
"tokenAddress": {
"description": "Token contract address",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"unrealizedPnlInUsd": {
"description": "Unrealized PnL in USD (current open position)",
"type": "string"
},
"valueInNative": {
"description": "Holding value in native token",
"examples": [
"6.67"
],
"type": "string"
},
"valueInUsd": {
"description": "Holding value in USD",
"examples": [
"1000.60"
],
"type": "string"
},
"walletTokenTags": {
"description": "Trader classification tags",
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"endCursor": {
"description": "Cursor for the end of current page",
"examples": [
"eyJpZCI6ImVuZCJ9"
],
"type": "string"
},
"hasNext": {
"description": "Whether there is a next page",
"examples": [
false
],
"type": "boolean"
},
"hasPrev": {
"description": "Whether there is a previous page",
"examples": [
false
],
"type": "boolean"
},
"startCursor": {
"description": "Cursor for the start of current page",
"examples": [
"eyJpZCI6InN0YXJ0In0="
],
"type": "string"
}
}
}Fields§
§data: Vec<PageResponseNetWorthByTokensItemDataItem>Page data
end_cursor: Option<String>Cursor for the end of current page
has_next: Option<bool>Whether there is a next page
has_prev: Option<bool>Whether there is a previous page
start_cursor: Option<String>Cursor for the start of current page
Implementations§
Trait Implementations§
Source§impl Clone for PageResponseNetWorthByTokensItem
impl Clone for PageResponseNetWorthByTokensItem
Source§fn clone(&self) -> PageResponseNetWorthByTokensItem
fn clone(&self) -> PageResponseNetWorthByTokensItem
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 PageResponseNetWorthByTokensItem
impl<'de> Deserialize<'de> for PageResponseNetWorthByTokensItem
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<&PageResponseNetWorthByTokensItem> for PageResponseNetWorthByTokensItem
impl From<&PageResponseNetWorthByTokensItem> for PageResponseNetWorthByTokensItem
Source§fn from(value: &PageResponseNetWorthByTokensItem) -> Self
fn from(value: &PageResponseNetWorthByTokensItem) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseNetWorthByTokensItem> for PageResponseNetWorthByTokensItem
impl From<PageResponseNetWorthByTokensItem> for PageResponseNetWorthByTokensItem
Source§fn from(value: PageResponseNetWorthByTokensItem) -> Self
fn from(value: PageResponseNetWorthByTokensItem) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PageResponseNetWorthByTokensItem> for PageResponseNetWorthByTokensItem
impl TryFrom<PageResponseNetWorthByTokensItem> for PageResponseNetWorthByTokensItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PageResponseNetWorthByTokensItem,
) -> Result<Self, ConversionError>
fn try_from( value: PageResponseNetWorthByTokensItem, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseNetWorthByTokensItem
impl RefUnwindSafe for PageResponseNetWorthByTokensItem
impl Send for PageResponseNetWorthByTokensItem
impl Sync for PageResponseNetWorthByTokensItem
impl Unpin for PageResponseNetWorthByTokensItem
impl UnsafeUnpin for PageResponseNetWorthByTokensItem
impl UnwindSafe for PageResponseNetWorthByTokensItem
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