Struct bittrex_api::BittrexClient [] [src]

pub struct BittrexClient { /* fields omitted */ }

Methods

impl BittrexClient
[src]

Returns all available market data

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let markets = bittrex_client.get_markets().unwrap();

Returns all available currencies

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let currencies = bittrex_client.get_currencies().unwrap();

Returns ticker by market name

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let ticker = bittrex_client.get_ticker("BTC-LTC").unwrap();

Returns all market summaries

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let summaries = bittrex_client.get_market_summaries().unwrap();

Returns market summary by market name

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let summary = bittrex_client.get_market_summary("BTC-LTC").unwrap();

Returns the order book of the given market.

Examples

use bittrex_api::BittrexClient;
use bittrex_api::values::BittrexOrderType;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let order_book = bittrex_client.get_order_book("BTC-LTC", BittrexOrderType::Both).unwrap();

Returns the market history of the given market.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let market_history = bittrex_client.get_market_history("BTC-LTC").unwrap();

Returns the open orders of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let open_orders = bittrex_client.get_open_orders().unwrap();

Returns the open orders of the given market and of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let open_orders = bittrex_client.get_open_orders_by_market("BTC-LTC").unwrap();

Returns the order given by the order_id.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let order = bittrex_client.get_order("ORDERID").unwrap();

Returns the order history of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let order_history = bittrex_client.get_order_history().unwrap();

Returns the order history of the given market and of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let order_history = bittrex_client.get_order_history_by_market("BTC-LTC").unwrap();

Returns the withdrawal history of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let withdrawal_history = bittrex_client.get_withdrawal_history().unwrap();

Returns the withdrawal history of the given market and of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let withdrawal_history = bittrex_client.get_withdrawal_history_by_currency("BTC-LTC").unwrap();

Returns the deposit history of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let deposit_history = bittrex_client.get_deposit_history().unwrap();

Returns the deposit history of the given currency and of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let deposit_history = bittrex_client.get_deposit_history_by_currency("BTC").unwrap();

Returns the balances of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let balances = bittrex_client.get_balances().unwrap();

Returns the balance of the given currency and of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let balance = bittrex_client.get_balance("BTC").unwrap();

Returns the deposit address of the given currency and of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let deposit_history = bittrex_client.get_deposit_address("BTC").unwrap();

Withdraws tokens of the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let withdraw_uuid = bittrex_client.withdraw("BTC", 1.5, "BITCOINADDRESS", "").unwrap();

Places a buy order on the given market for the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let buy_uuid = bittrex_client.buy_limit("BTC-LTC", 1.5, 0.00023).unwrap();

Places a sell order on the given market for the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
let sell_uuid = bittrex_client.sell_limit("BTC-LTC", 1.5, 0.00023).unwrap();

Cancels an order for the user given by the api_key and api_secret.

Examples

use bittrex_api::BittrexClient;

let bittrex_client = BittrexClient::new("APIKEY".to_string(), "APISECRET".to_string());
bittrex_client.cancel_order("ORDERID").unwrap();