pub struct Client { /* private fields */ }
Expand description
Bittrex API client.
Implementations§
Source§impl Client
Private API methods.
impl Client
Private API methods.
Note: All this methods will panic if the client is not logged in.
Sourcepub fn get_balances(&self) -> Result<Vec<BalanceInfo>>
pub fn get_balances(&self) -> Result<Vec<BalanceInfo>>
Gets the balances of the Bittrex account.
Note: it will panic if not logged in.
Source§impl Client
Public API methods.
impl Client
Public API methods.
Sourcepub fn get_markets() -> Result<Vec<MarketInfo>>
pub fn get_markets() -> Result<Vec<MarketInfo>>
Used to get the open and available trading markets at Bittrex along with other meta data.
Sourcepub fn get_currencies() -> Result<Vec<CurrencyInfo>>
pub fn get_currencies() -> Result<Vec<CurrencyInfo>>
Used to get all supported currencies at Bittrex along with other meta data.
Sourcepub fn get_ticker<S: AsRef<str>>(market: S) -> Result<TickerInfo>
pub fn get_ticker<S: AsRef<str>>(market: S) -> Result<TickerInfo>
Used to get the current tick values for a market.
Sourcepub fn get_market_summaries() -> Result<Vec<MarketSummary>>
pub fn get_market_summaries() -> Result<Vec<MarketSummary>>
Used to get the last 24 hour summary of all active exchanges.
Sourcepub fn get_market_summary<S: AsRef<str>>(market: S) -> Result<MarketSummary>
pub fn get_market_summary<S: AsRef<str>>(market: S) -> Result<MarketSummary>
Used to get the last 24 hour summary of the given market.
Sourcepub fn get_order_book<S: AsRef<str>>(
market: S,
order_type: OrderBookType,
depth: u8,
) -> Result<OrderBook>
pub fn get_order_book<S: AsRef<str>>( market: S, order_type: OrderBookType, depth: u8, ) -> Result<OrderBook>
Used to get retrieve the order book for a given market.
Panics if the depth is bigger than 50.
Sourcepub fn get_market_history<S: AsRef<str>>(market: S) -> Result<MarketSummary>
pub fn get_market_history<S: AsRef<str>>(market: S) -> Result<MarketSummary>
Used to retrieve the latest trades that have occurred for a specific market.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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