pub struct CexCandle {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl CexCandle
impl CexCandle
Sourcepub fn get(
&self,
exchange: impl Into<String>,
market: impl Into<String>,
symbol: impl Into<String>,
options: CexCandleOptions,
) -> Result<Value>
pub fn get( &self, exchange: impl Into<String>, market: impl Into<String>, symbol: impl Into<String>, options: CexCandleOptions, ) -> Result<Value>
Get historical candle data for a given exchange, symbol, interval and market.
Sourcepub fn exchanges(&self, market: impl Into<String>) -> Result<Value>
pub fn exchanges(&self, market: impl Into<String>) -> Result<Value>
Get supported exchanges accepted by /api/v1/cex/candle endpoint.
Sourcepub fn intervals(&self) -> Result<Value>
pub fn intervals(&self) -> Result<Value>
Fetch supported intervals accepted by /api/v1/cex/candle endpoint.
Sourcepub fn symbols(&self, options: CexCandleSymbolsOptions) -> Result<Value>
pub fn symbols(&self, options: CexCandleSymbolsOptions) -> Result<Value>
Fetch supported symbols accepted by /api/v1/cex/candle endpoint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CexCandle
impl !RefUnwindSafe for CexCandle
impl Send for CexCandle
impl Sync for CexCandle
impl Unpin for CexCandle
impl UnsafeUnpin for CexCandle
impl !UnwindSafe for CexCandle
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