pub struct CexCandle { /* private fields */ }Implementations§
Source§impl CexCandle
impl CexCandle
Sourcepub fn from_client(client: Client) -> Self
pub fn from_client(client: Client) -> Self
Wraps an already-built client (e.g. from ClientBuilder).
Sourcepub async fn get(
&self,
exchange: impl Into<String>,
symbol: impl Into<String>,
options: CexCandleOptions,
) -> Result<CexCandleResponse>
pub async fn get( &self, exchange: impl Into<String>, symbol: impl Into<String>, options: CexCandleOptions, ) -> Result<CexCandleResponse>
Get historical candle data for a given exchange, symbol, interval and market.
Sourcepub async fn exchanges(
&self,
market: CexCandleExchangesMarket,
) -> Result<Vec<String>>
pub async fn exchanges( &self, market: CexCandleExchangesMarket, ) -> Result<Vec<String>>
Get supported exchanges 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