Struct bittrex::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
Bittrex API client.
Methods
impl Client
[src]
Private API methods.
Note: All this methods will panic if the client is not logged in.
pub fn get_balances(&self) -> Result<Vec<BalanceInfo>, Error>
[src]
Gets the balances of the Bittrex account.
Note: it will panic if not logged in.
impl Client
[src]
Public API methods.
pub fn get_markets(&self) -> Result<Vec<MarketInfo>, Error>
[src]
Used to get the open and available trading markets at Bittrex along with other meta data.
pub fn get_currencies(&self) -> Result<Vec<CurrencyInfo>, Error>
[src]
Used to get all supported currencies at Bittrex along with other meta data.
pub fn get_ticker<S: AsRef<str>>(&self, market: S) -> Result<TickerInfo, Error>
[src]
Used to get the current tick values for a market.
pub fn get_market_summaries(&self) -> Result<Vec<MarketSummary>, Error>
[src]
Used to get the last 24 hour summary of all active exchanges.
pub fn get_market_summary<S: AsRef<str>>(
&self,
market: S
) -> Result<MarketSummary, Error>
[src]
&self,
market: S
) -> Result<MarketSummary, Error>
Used to get the last 24 hour summary of the given market.
pub fn get_order_book<S: AsRef<str>>(
&self,
market: S,
order_type: OrderBookType,
depth: u8
) -> Result<OrderBook, Error>
[src]
&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.
pub fn get_market_history<S: AsRef<str>>(
&self,
market: S
) -> Result<MarketSummary, Error>
[src]
&self,
market: S
) -> Result<MarketSummary, Error>
Used to retrieve the latest trades that have occured for a specific market.
impl Client
[src]
pub fn login<K: Into<String>, S: Into<String>>(
&mut self,
api_key: K,
api_secret: S
)
[src]
&mut self,
api_key: K,
api_secret: S
)
Logs the client in for future private method access.
Note: This will not perform any request to Bittrex, it will only store the API key and the secret for future use.
Trait Implementations
impl Debug for Client
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more