Struct bittrex_api::api::BittrexAPI [] [src]

pub struct BittrexAPI<'a> { /* fields omitted */ }

Methods

impl<'a> BittrexAPI<'a>
[src]

Returns all available market data

Examples

use bittrex_api::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let markets = bittrex_api.get_markets().unwrap();

Returns all available currencies

Examples

use bittrex_api::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let currencies = bittrex_api.get_currencies().unwrap();

Returns ticker by market name

Examples

use bittrex_api::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let ticker = bittrex_api.get_ticker("BTC-LTC").unwrap();

Returns all market summaries

Examples

use bittrex_api::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let summaries = bittrex_api.get_market_summaries().unwrap();

Returns market summary by market name

Examples

use bittrex_api::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let summary = bittrex_api.get_market_summary("BTC-LTC").unwrap();

Returns the order book of the given market.

Examples

use bittrex_api::api::BittrexAPI;
use bittrex_api::values::BittrexOrderType;

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

Returns the market history of the given market.

Examples

use bittrex_api::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let market_history = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let open_orders = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let open_orders = bittrex_api.get_open_orders_by_market("BTC-LTC").unwrap();

Returns the order given by the order_id.

Examples

use bittrex_api::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let order = bittrex_api.get_order("ORDERID").unwrap();

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

Examples

use bittrex_api::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let order_history = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let order_history = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let withdrawal_history = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let withdrawal_history = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let deposit_history = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let deposit_history = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let balances = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let balance = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let deposit_history = bittrex_api.get_deposit_address("BTC").unwrap();

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

Examples

use bittrex_api::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let withdraw_uuid = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let buy_uuid = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
let sell_uuid = bittrex_api.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::api::BittrexAPI;

let bittrex_api = BittrexAPI::new("APIKEY", "APISECRET");
bittrex_api.cancel_order("ORDERID").unwrap();

Trait Implementations

impl<'a> Default for BittrexAPI<'a>
[src]

Returns the "default value" for a type. Read more