pub struct Ticker {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl Ticker
impl Ticker
Sourcepub fn get(
&self,
exchange: impl Into<String>,
symbol: impl Into<String>,
options: TickerOptions,
) -> Result<Value>
pub fn get( &self, exchange: impl Into<String>, symbol: impl Into<String>, options: TickerOptions, ) -> Result<Value>
Fetch the latest ticker for symbol from given exchange.
Sourcepub fn exchanges(&self, options: TickerExchangesOptions) -> Result<Value>
pub fn exchanges(&self, options: TickerExchangesOptions) -> Result<Value>
Get supported exchanges accepted by /api/v1/ticker endpoint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ticker
impl !RefUnwindSafe for Ticker
impl Send for Ticker
impl Sync for Ticker
impl Unpin for Ticker
impl UnsafeUnpin for Ticker
impl !UnwindSafe for Ticker
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