pub struct Dex {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl Dex
impl Dex
Sourcepub fn candle(
&self,
chain: impl Into<String>,
exchange: impl Into<String>,
pool: impl Into<String>,
options: DexCandleOptions,
) -> Result<Value>
pub fn candle( &self, chain: impl Into<String>, exchange: impl Into<String>, pool: impl Into<String>, options: DexCandleOptions, ) -> Result<Value>
Fetch historical candle data for a given chain, exchange, pool and interval.
Sourcepub fn chains(&self) -> Result<Value>
pub fn chains(&self) -> Result<Value>
Get supported chains accepted by /api/v1/dex/trade, /api/v1/dex/candle and /api/v1/dex/liquidity endpoints.
Sourcepub fn exchanges(&self) -> Result<Value>
pub fn exchanges(&self) -> Result<Value>
Get supported exchanges accepted by /api/v1/dex/trade, /api/v1/dex/candle and /api/v1/dex/liquidity endpoints.
Sourcepub fn intervals(&self) -> Result<Value>
pub fn intervals(&self) -> Result<Value>
Get supported intervals accepted by /api/v1/dex/candle endpoint.
Sourcepub fn pools(&self, options: DexPoolsOptions) -> Result<Value>
pub fn pools(&self, options: DexPoolsOptions) -> Result<Value>
Get supported pools accepted by /api/v1/dex/trade, /api/v1/dex/candle and /api/v1/dex/liquidity endpoints.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dex
impl !RefUnwindSafe for Dex
impl Send for Dex
impl Sync for Dex
impl Unpin for Dex
impl UnsafeUnpin for Dex
impl !UnwindSafe for Dex
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