pub struct DexPair {Show 16 fields
pub dex_name: String,
pub pair_address: String,
pub base_token: String,
pub quote_token: String,
pub price_usd: f64,
pub volume_24h: f64,
pub liquidity_usd: f64,
pub price_change_24h: f64,
pub buys_24h: u64,
pub sells_24h: u64,
pub buys_6h: u64,
pub sells_6h: u64,
pub buys_1h: u64,
pub sells_1h: u64,
pub pair_created_at: Option<i64>,
pub url: Option<String>,
}Expand description
DEX trading pair information.
Fields§
§dex_name: StringDEX name (e.g., “Uniswap V3”, “SushiSwap”).
pair_address: StringPair address on the DEX.
base_token: StringBase token symbol.
quote_token: StringQuote token symbol.
price_usd: f64Current price in USD.
volume_24h: f6424h trading volume in USD.
liquidity_usd: f64Liquidity in USD.
price_change_24h: f64Price change percentage in 24h.
buys_24h: u64Buy transactions in 24h.
sells_24h: u64Sell transactions in 24h.
buys_6h: u64Buy transactions in 6h.
sells_6h: u64Sell transactions in 6h.
buys_1h: u64Buy transactions in 1h.
sells_1h: u64Sell transactions in 1h.
pair_created_at: Option<i64>Pair creation timestamp.
url: Option<String>Direct URL to this pair on DexScreener.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DexPair
impl<'de> Deserialize<'de> for DexPair
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
Auto Trait Implementations§
impl Freeze for DexPair
impl RefUnwindSafe for DexPair
impl Send for DexPair
impl Sync for DexPair
impl Unpin for DexPair
impl UnwindSafe for DexPair
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more