pub struct GetStatsMultiResponseValue {
pub address: String,
pub periods: HashMap<String, TokenTradeStatPeriod>,
}Expand description
Token statistics with nested time period data
JSON schema
{
"description": "Token statistics with nested time period data",
"type": "object",
"required": [
"address",
"periods"
],
"properties": {
"address": {
"description": "ENTITY.TOKEN_STATS.ADDRESS",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"periods": {
"description": "Trade statistics grouped by time period (1m, 5m, 15m, 30m, 1h, 4h, 24h).\nEach period contains full OHLCV data, trade counts, and previous-period comparisons.\nSee `TokenTradeStatPeriod` schema for all fields.",
"examples": [
{
"24h": {
"buyVolumeInUsd": "45000.00",
"buyers": "320",
"buys": "1520",
"closeInUsd": "0.15600000",
"currentLiquidityInUsd": "250000.00",
"highInUsd": "0.15900000",
"lowInUsd": "0.15000000",
"openInUsd": "0.15000000",
"priceChangeRatioInUsd": "0.04000000",
"sellVolumeInUsd": "36000.00",
"sellers": "210",
"sells": "980",
"totalVolumeInUsd": "81000.00",
"traders": "530",
"trades": "2500"
}
}
],
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/TokenTradeStatPeriod"
}
}
}
}Fields§
§address: StringENTITY.TOKEN_STATS.ADDRESS
periods: HashMap<String, TokenTradeStatPeriod>Trade statistics grouped by time period (1m, 5m, 15m, 30m, 1h, 4h, 24h).
Each period contains full OHLCV data, trade counts, and previous-period comparisons.
See TokenTradeStatPeriod schema for all fields.
Implementations§
Source§impl GetStatsMultiResponseValue
impl GetStatsMultiResponseValue
pub fn builder() -> GetStatsMultiResponseValue
Trait Implementations§
Source§impl Clone for GetStatsMultiResponseValue
impl Clone for GetStatsMultiResponseValue
Source§fn clone(&self) -> GetStatsMultiResponseValue
fn clone(&self) -> GetStatsMultiResponseValue
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 GetStatsMultiResponseValue
impl Debug for GetStatsMultiResponseValue
Source§impl<'de> Deserialize<'de> for GetStatsMultiResponseValue
impl<'de> Deserialize<'de> for GetStatsMultiResponseValue
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<&GetStatsMultiResponseValue> for GetStatsMultiResponseValue
impl From<&GetStatsMultiResponseValue> for GetStatsMultiResponseValue
Source§fn from(value: &GetStatsMultiResponseValue) -> Self
fn from(value: &GetStatsMultiResponseValue) -> Self
Converts to this type from the input type.
Source§impl From<GetStatsMultiResponseValue> for GetStatsMultiResponseValue
impl From<GetStatsMultiResponseValue> for GetStatsMultiResponseValue
Source§fn from(value: GetStatsMultiResponseValue) -> Self
fn from(value: GetStatsMultiResponseValue) -> Self
Converts to this type from the input type.
Source§impl TryFrom<GetStatsMultiResponseValue> for GetStatsMultiResponseValue
impl TryFrom<GetStatsMultiResponseValue> for GetStatsMultiResponseValue
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GetStatsMultiResponseValue) -> Result<Self, ConversionError>
fn try_from(value: GetStatsMultiResponseValue) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GetStatsMultiResponseValue
impl RefUnwindSafe for GetStatsMultiResponseValue
impl Send for GetStatsMultiResponseValue
impl Sync for GetStatsMultiResponseValue
impl Unpin for GetStatsMultiResponseValue
impl UnsafeUnpin for GetStatsMultiResponseValue
impl UnwindSafe for GetStatsMultiResponseValue
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