pub struct DexPoolDetail {Show 19 fields
pub chain: String,
pub created_block_timestamp: Option<String>,
pub fee_rate: Option<String>,
pub image: Option<String>,
pub liquidity_model: Option<i32>,
pub pool_address: String,
pub program_address: Option<String>,
pub protocol_family: Option<String>,
pub protocol_name: Option<String>,
pub tick_spacing: Option<i64>,
pub token_a_address: String,
pub token_a_liquidity: Option<DexPoolTokenLiquidity>,
pub token_b_address: String,
pub token_b_liquidity: Option<DexPoolTokenLiquidity>,
pub token_count: Option<i32>,
pub tvl_in_sol: Option<String>,
pub tvl_in_usd: Option<String>,
pub type_: Option<i32>,
pub version: Option<i32>,
}Expand description
DEX pool detail
JSON schema
{
"description": "DEX pool detail",
"examples": [
{
"chain": "sol",
"createdBlockTimestamp": "2024-01-15T10:30:00Z",
"feeRate": "0.003",
"image": "https://example.com/pool.png",
"liquidityModel": 1,
"poolAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
"programAddress": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
"protocolFamily": "OrcaWhirpool",
"protocolName": "Orca",
"tickSpacing": 64,
"tokenAAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"tokenALiquidity": {
"amountInNative": "5000.123",
"amountInUsd": "1000000.45",
"decimals": 6,
"priceNative": "0.005",
"priceUsd": "1.0001",
"tokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"vaultAmount": "1000000000000"
},
"tokenBAddress": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"tokenBLiquidity": {
"amountInNative": "5000.123",
"amountInUsd": "1000000.45",
"decimals": 6,
"priceNative": "0.005",
"priceUsd": "1.0001",
"tokenAddress": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"vaultAmount": "1000000000000"
},
"tokenCount": 2,
"tvlInSol": "5000",
"tvlInUsd": "1000000.45",
"type": 1,
"version": 2
}
],
"type": "object",
"required": [
"chain",
"poolAddress",
"tokenAAddress",
"tokenBAddress"
],
"properties": {
"chain": {
"description": "Chain identifier",
"type": "string"
},
"createdBlockTimestamp": {
"description": "Creation block timestamp",
"type": "string"
},
"feeRate": {
"description": "Fee rate",
"type": "string"
},
"image": {
"description": "Image URL",
"type": "string"
},
"liquidityModel": {
"description": "Liquidity model",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"poolAddress": {
"description": "Pool address",
"type": "string"
},
"programAddress": {
"description": "DEX program address",
"type": "string"
},
"protocolFamily": {
"description": "Protocol family",
"type": "string"
},
"protocolName": {
"description": "Protocol name",
"type": "string"
},
"tickSpacing": {
"description": "Tick spacing",
"type": "integer",
"format": "int64"
},
"tokenAAddress": {
"description": "Token A address",
"type": "string"
},
"tokenALiquidity": {
"$ref": "#/components/schemas/DexPoolTokenLiquidity"
},
"tokenBAddress": {
"description": "Token B address",
"type": "string"
},
"tokenBLiquidity": {
"$ref": "#/components/schemas/DexPoolTokenLiquidity"
},
"tokenCount": {
"description": "Token count",
"type": "integer",
"format": "int32"
},
"tvlInSol": {
"description": "TVL in native token",
"type": "string"
},
"tvlInUsd": {
"description": "TVL in USD",
"type": "string"
},
"type": {
"description": "Pool type",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"version": {
"description": "Pool version",
"type": "integer",
"format": "int32",
"minimum": 0.0
}
}
}Fields§
§chain: StringChain identifier
created_block_timestamp: Option<String>Creation block timestamp
fee_rate: Option<String>Fee rate
image: Option<String>Image URL
liquidity_model: Option<i32>Liquidity model
pool_address: StringPool address
program_address: Option<String>DEX program address
protocol_family: Option<String>Protocol family
protocol_name: Option<String>Protocol name
tick_spacing: Option<i64>Tick spacing
token_a_address: StringToken A address
token_a_liquidity: Option<DexPoolTokenLiquidity>§token_b_address: StringToken B address
token_b_liquidity: Option<DexPoolTokenLiquidity>§token_count: Option<i32>Token count
tvl_in_sol: Option<String>TVL in native token
tvl_in_usd: Option<String>TVL in USD
type_: Option<i32>Pool type
version: Option<i32>Pool version
Implementations§
Source§impl DexPoolDetail
impl DexPoolDetail
pub fn builder() -> DexPoolDetail
Trait Implementations§
Source§impl Clone for DexPoolDetail
impl Clone for DexPoolDetail
Source§fn clone(&self) -> DexPoolDetail
fn clone(&self) -> DexPoolDetail
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 DexPoolDetail
impl Debug for DexPoolDetail
Source§impl<'de> Deserialize<'de> for DexPoolDetail
impl<'de> Deserialize<'de> for DexPoolDetail
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<&DexPoolDetail> for DexPoolDetail
impl From<&DexPoolDetail> for DexPoolDetail
Source§fn from(value: &DexPoolDetail) -> Self
fn from(value: &DexPoolDetail) -> Self
Converts to this type from the input type.
Source§impl From<DexPoolDetail> for DexPoolDetail
impl From<DexPoolDetail> for DexPoolDetail
Source§fn from(value: DexPoolDetail) -> Self
fn from(value: DexPoolDetail) -> Self
Converts to this type from the input type.
Source§impl Serialize for DexPoolDetail
impl Serialize for DexPoolDetail
Source§impl TryFrom<DexPoolDetail> for DexPoolDetail
impl TryFrom<DexPoolDetail> for DexPoolDetail
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DexPoolDetail) -> Result<Self, ConversionError>
fn try_from(value: DexPoolDetail) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DexPoolDetail
impl RefUnwindSafe for DexPoolDetail
impl Send for DexPoolDetail
impl Sync for DexPoolDetail
impl Unpin for DexPoolDetail
impl UnsafeUnpin for DexPoolDetail
impl UnwindSafe for DexPoolDetail
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