pub struct PageResponseTokenLiquiditySnapshotDataItem {
pub calculated_at: i64,
pub max_liquidity_in_native: String,
pub max_liquidity_in_usd: String,
pub max_liquidity_pool_address: String,
pub pool_count: i64,
pub price_native: String,
pub price_usd: String,
pub snapshot_time: i64,
pub total_liquidity_in_native: String,
pub total_liquidity_in_usd: String,
}Expand description
Token liquidity snapshot
JSON schema
{
"description": "Token liquidity snapshot",
"type": "object",
"required": [
"calculatedAt",
"maxLiquidityInNative",
"maxLiquidityInUsd",
"maxLiquidityPoolAddress",
"poolCount",
"priceNative",
"priceUsd",
"snapshotTime",
"totalLiquidityInNative",
"totalLiquidityInUsd"
],
"properties": {
"calculatedAt": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.CALCULATED_AT",
"examples": [
1705312800000
],
"type": "integer",
"format": "int64"
},
"maxLiquidityInNative": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.MAX_LIQUIDITY_IN_NATIVE",
"examples": [
"5000.123"
],
"type": "string"
},
"maxLiquidityInUsd": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.MAX_LIQUIDITY_IN_USD",
"examples": [
"1000000.45"
],
"type": "string"
},
"maxLiquidityPoolAddress": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.MAX_LIQUIDITY_POOL_ADDRESS",
"examples": [
"58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
],
"type": "string"
},
"poolCount": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.POOL_COUNT",
"examples": [
5
],
"type": "integer",
"format": "int64"
},
"priceNative": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.PRICE_NATIVE",
"examples": [
"0.005"
],
"type": "string"
},
"priceUsd": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.PRICE_USD",
"examples": [
"1.0001"
],
"type": "string"
},
"snapshotTime": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.SNAPSHOT_TIME",
"examples": [
1705312800000
],
"type": "integer",
"format": "int64"
},
"totalLiquidityInNative": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.TOTAL_LIQUIDITY_IN_NATIVE",
"examples": [
"10000.246"
],
"type": "string"
},
"totalLiquidityInUsd": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.TOTAL_LIQUIDITY_IN_USD",
"examples": [
"2000000.90"
],
"type": "string"
}
}
}Fields§
§calculated_at: i64ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.CALCULATED_AT
max_liquidity_in_native: StringENTITY.TOKEN_LIQUIDITY_SNAPSHOT.MAX_LIQUIDITY_IN_NATIVE
max_liquidity_in_usd: StringENTITY.TOKEN_LIQUIDITY_SNAPSHOT.MAX_LIQUIDITY_IN_USD
max_liquidity_pool_address: StringENTITY.TOKEN_LIQUIDITY_SNAPSHOT.MAX_LIQUIDITY_POOL_ADDRESS
pool_count: i64ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.POOL_COUNT
price_native: StringENTITY.TOKEN_LIQUIDITY_SNAPSHOT.PRICE_NATIVE
price_usd: StringENTITY.TOKEN_LIQUIDITY_SNAPSHOT.PRICE_USD
snapshot_time: i64ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.SNAPSHOT_TIME
total_liquidity_in_native: StringENTITY.TOKEN_LIQUIDITY_SNAPSHOT.TOTAL_LIQUIDITY_IN_NATIVE
total_liquidity_in_usd: StringENTITY.TOKEN_LIQUIDITY_SNAPSHOT.TOTAL_LIQUIDITY_IN_USD
Implementations§
Trait Implementations§
Source§impl Clone for PageResponseTokenLiquiditySnapshotDataItem
impl Clone for PageResponseTokenLiquiditySnapshotDataItem
Source§fn clone(&self) -> PageResponseTokenLiquiditySnapshotDataItem
fn clone(&self) -> PageResponseTokenLiquiditySnapshotDataItem
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<'de> Deserialize<'de> for PageResponseTokenLiquiditySnapshotDataItem
impl<'de> Deserialize<'de> for PageResponseTokenLiquiditySnapshotDataItem
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<&PageResponseTokenLiquiditySnapshotDataItem> for PageResponseTokenLiquiditySnapshotDataItem
impl From<&PageResponseTokenLiquiditySnapshotDataItem> for PageResponseTokenLiquiditySnapshotDataItem
Source§fn from(value: &PageResponseTokenLiquiditySnapshotDataItem) -> Self
fn from(value: &PageResponseTokenLiquiditySnapshotDataItem) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseTokenLiquiditySnapshotDataItem> for PageResponseTokenLiquiditySnapshotDataItem
impl From<PageResponseTokenLiquiditySnapshotDataItem> for PageResponseTokenLiquiditySnapshotDataItem
Source§fn from(value: PageResponseTokenLiquiditySnapshotDataItem) -> Self
fn from(value: PageResponseTokenLiquiditySnapshotDataItem) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PageResponseTokenLiquiditySnapshotDataItem> for PageResponseTokenLiquiditySnapshotDataItem
impl TryFrom<PageResponseTokenLiquiditySnapshotDataItem> for PageResponseTokenLiquiditySnapshotDataItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PageResponseTokenLiquiditySnapshotDataItem,
) -> Result<Self, ConversionError>
fn try_from( value: PageResponseTokenLiquiditySnapshotDataItem, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseTokenLiquiditySnapshotDataItem
impl RefUnwindSafe for PageResponseTokenLiquiditySnapshotDataItem
impl Send for PageResponseTokenLiquiditySnapshotDataItem
impl Sync for PageResponseTokenLiquiditySnapshotDataItem
impl Unpin for PageResponseTokenLiquiditySnapshotDataItem
impl UnsafeUnpin for PageResponseTokenLiquiditySnapshotDataItem
impl UnwindSafe for PageResponseTokenLiquiditySnapshotDataItem
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