pub enum MarketVenue {
Binance,
Biconomy,
Ethereum,
Solana,
}Expand description
Supported market venues for order book data.
CEX venues (Binance, Biconomy) use REST depth APIs. DEX venues (Ethereum, Solana) synthesize depth from DEX liquidity.
Variants§
Binance
Binance Spot (symbol format: USDCUSDT).
Biconomy
Biconomy exchange (symbol format: USDC_USDT).
Ethereum
Ethereum DEX liquidity (Uniswap, etc.) via DexScreener.
Solana
Solana DEX liquidity (Raydium, Orca, etc.) via DexScreener.
Implementations§
Source§impl MarketVenue
impl MarketVenue
Sourcepub fn format_pair(&self, base_symbol: &str) -> String
pub fn format_pair(&self, base_symbol: &str) -> String
Format the trading pair for CEX venues (base + USDT quote).
Sourcepub fn create_client(&self) -> Option<Box<dyn OrderBookClient>>
pub fn create_client(&self) -> Option<Box<dyn OrderBookClient>>
Create an OrderBookClient for CEX venues.
Returns None for DEX venues (use order_book_from_analytics instead).
Trait Implementations§
Source§impl Clone for MarketVenue
impl Clone for MarketVenue
Source§fn clone(&self) -> MarketVenue
fn clone(&self) -> MarketVenue
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 MarketVenue
impl Debug for MarketVenue
Source§impl Default for MarketVenue
impl Default for MarketVenue
Source§fn default() -> MarketVenue
fn default() -> MarketVenue
Returns the “default value” for a type. Read more
Source§impl PartialEq for MarketVenue
impl PartialEq for MarketVenue
Source§impl ValueEnum for MarketVenue
impl ValueEnum for MarketVenue
impl Copy for MarketVenue
impl Eq for MarketVenue
impl StructuralPartialEq for MarketVenue
Auto Trait Implementations§
impl Freeze for MarketVenue
impl RefUnwindSafe for MarketVenue
impl Send for MarketVenue
impl Sync for MarketVenue
impl Unpin for MarketVenue
impl UnwindSafe for MarketVenue
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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