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