pub struct MarketsClient { /* private fields */ }Implementations§
Source§impl MarketsClient
impl MarketsClient
pub fn new() -> Self
pub fn get_markets(&self) -> Result<Vec<MarketInfo>>
pub fn get_market<S>(&self, symbol: S) -> Result<MarketInfo>
pub fn get_orderbook<S, D>(&self, symbol: S, depth: D) -> Result<Depth>
pub fn get_trades<S>(&self, symbol: S) -> Result<Vec<TradeInfo>>
pub fn get_historical_prices<S, R, ST, ET>( &self, symbol: S, resolution: R, start_time: ST, end_time: ET, ) -> Result<Vec<CandleInfo>>
Trait Implementations§
Source§impl Clone for MarketsClient
impl Clone for MarketsClient
Source§fn clone(&self) -> MarketsClient
fn clone(&self) -> MarketsClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for MarketsClient
impl !UnwindSafe for MarketsClient
impl Freeze for MarketsClient
impl Send for MarketsClient
impl Sync for MarketsClient
impl Unpin for MarketsClient
impl UnsafeUnpin for MarketsClient
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