pub struct Ticker { /* private fields */ }Implementations§
Source§impl Ticker
impl Ticker
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>,
market: TickerMarket,
options: TickerOptions,
) -> Result<TickerResponse>
pub async fn get( &self, exchange: impl Into<String>, symbol: impl Into<String>, market: TickerMarket, options: TickerOptions, ) -> Result<TickerResponse>
Fetch the latest ticker for symbol from given exchange.
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