Struct binance_async::Binance [−][src]
pub struct Binance { pub transport: Transport, }
Fields
transport: Transport
Methods
impl Binance
[src]
impl Binance
pub fn get_account(
&self
) -> Result<impl Future<Item = AccountInformation, Error = Error>>
[src]
pub fn get_account(
&self
) -> Result<impl Future<Item = AccountInformation, Error = Error>>
pub fn get_balance(
&self,
asset: &str
) -> Result<impl Future<Item = Balance, Error = Error>>
[src]
pub fn get_balance(
&self,
asset: &str
) -> Result<impl Future<Item = Balance, Error = Error>>
pub fn get_open_orders(
&self,
symbol: &str
) -> Result<impl Future<Item = Vec<Order>, Error = Error>>
[src]
pub fn get_open_orders(
&self,
symbol: &str
) -> Result<impl Future<Item = Vec<Order>, Error = Error>>
pub fn get_all_open_orders(
&self
) -> Result<impl Future<Item = Vec<Order>, Error = Error>>
[src]
pub fn get_all_open_orders(
&self
) -> Result<impl Future<Item = Vec<Order>, Error = Error>>
pub fn order_status(
&self,
symbol: &str,
order_id: u64
) -> Result<impl Future<Item = Order, Error = Error>>
[src]
pub fn order_status(
&self,
symbol: &str,
order_id: u64
) -> Result<impl Future<Item = Order, Error = Error>>
pub fn limit_buy(
&self,
symbol: &str,
qty: f64,
price: f64
) -> Result<impl Future<Item = Transaction, Error = Error>>
[src]
pub fn limit_buy(
&self,
symbol: &str,
qty: f64,
price: f64
) -> Result<impl Future<Item = Transaction, Error = Error>>
pub fn limit_sell(
&self,
symbol: &str,
qty: f64,
price: f64
) -> Result<impl Future<Item = Transaction, Error = Error>>
[src]
pub fn limit_sell(
&self,
symbol: &str,
qty: f64,
price: f64
) -> Result<impl Future<Item = Transaction, Error = Error>>
pub fn market_buy(
&self,
symbol: &str,
qty: f64
) -> Result<impl Future<Item = Transaction, Error = Error>>
[src]
pub fn market_buy(
&self,
symbol: &str,
qty: f64
) -> Result<impl Future<Item = Transaction, Error = Error>>
pub fn market_sell(
&self,
symbol: &str,
qty: f64
) -> Result<impl Future<Item = Transaction, Error = Error>>
[src]
pub fn market_sell(
&self,
symbol: &str,
qty: f64
) -> Result<impl Future<Item = Transaction, Error = Error>>
pub fn cancel_order(
&self,
symbol: &str,
order_id: u64
) -> Result<impl Future<Item = OrderCanceled, Error = Error>>
[src]
pub fn cancel_order(
&self,
symbol: &str,
order_id: u64
) -> Result<impl Future<Item = OrderCanceled, Error = Error>>
pub fn trade_history(
&self,
symbol: &str
) -> Result<impl Future<Item = TradeHistory, Error = Error>>
[src]
pub fn trade_history(
&self,
symbol: &str
) -> Result<impl Future<Item = TradeHistory, Error = Error>>
impl Binance
[src]
impl Binance
pub fn ping(
&self
) -> Result<impl Future<Item = String, Error = Error>>
[src]
pub fn ping(
&self
) -> Result<impl Future<Item = String, Error = Error>>
pub fn get_server_time(
&self
) -> Result<impl Future<Item = ServerTime, Error = Error>>
[src]
pub fn get_server_time(
&self
) -> Result<impl Future<Item = ServerTime, Error = Error>>
pub fn get_exchange_info(
&self
) -> Result<impl Future<Item = ExchangeInfo, Error = Error>>
[src]
pub fn get_exchange_info(
&self
) -> Result<impl Future<Item = ExchangeInfo, Error = Error>>
pub fn exchange_info(
&self
) -> Result<impl Future<Item = ExchangeInformation, Error = Error>>
[src]
pub fn exchange_info(
&self
) -> Result<impl Future<Item = ExchangeInformation, Error = Error>>
impl Binance
[src]
impl Binance
pub fn get_depth<I>(
&self,
symbol: &str,
limit: I
) -> Result<impl Future<Item = OrderBook, Error = Error>> where
I: Into<Option<u64>>,
[src]
pub fn get_depth<I>(
&self,
symbol: &str,
limit: I
) -> Result<impl Future<Item = OrderBook, Error = Error>> where
I: Into<Option<u64>>,
pub fn get_all_prices(
&self
) -> Result<impl Future<Item = Prices, Error = Error>>
[src]
pub fn get_all_prices(
&self
) -> Result<impl Future<Item = Prices, Error = Error>>
pub fn get_price(
&self,
symbol: &str
) -> Result<impl Future<Item = f64, Error = Error>>
[src]
pub fn get_price(
&self,
symbol: &str
) -> Result<impl Future<Item = f64, Error = Error>>
pub fn get_all_book_tickers(
&self
) -> Result<impl Future<Item = BookTickers, Error = Error>>
[src]
pub fn get_all_book_tickers(
&self
) -> Result<impl Future<Item = BookTickers, Error = Error>>
pub fn get_book_ticker(
&self,
symbol: &str
) -> Result<impl Future<Item = Tickers, Error = Error>>
[src]
pub fn get_book_ticker(
&self,
symbol: &str
) -> Result<impl Future<Item = Tickers, Error = Error>>
pub fn get_24h_price_stats(
&self,
symbol: &str
) -> Result<impl Future<Item = PriceStats, Error = Error>>
[src]
pub fn get_24h_price_stats(
&self,
symbol: &str
) -> Result<impl Future<Item = PriceStats, Error = Error>>
pub fn get_klines<S3, S4, S5>(
&self,
symbol: &str,
interval: &str,
limit: S3,
start_time: S4,
end_time: S5
) -> Result<impl Future<Item = KlineSummaries, Error = Error>> where
S3: Into<Option<u16>>,
S4: Into<Option<u64>>,
S5: Into<Option<u64>>,
[src]
pub fn get_klines<S3, S4, S5>(
&self,
symbol: &str,
interval: &str,
limit: S3,
start_time: S4,
end_time: S5
) -> Result<impl Future<Item = KlineSummaries, Error = Error>> where
S3: Into<Option<u16>>,
S4: Into<Option<u64>>,
S5: Into<Option<u64>>,
pub fn get_24h_price_stats_all(
&self
) -> Result<impl Future<Item = Vec<PriceStats>, Error = Error>>
[src]
pub fn get_24h_price_stats_all(
&self
) -> Result<impl Future<Item = Vec<PriceStats>, Error = Error>>
impl Binance
[src]
impl Binance
pub fn start(
&self
) -> Result<impl Future<Item = UserDataStream, Error = Error>>
[src]
pub fn start(
&self
) -> Result<impl Future<Item = UserDataStream, Error = Error>>
pub fn keep_alive(
&self,
listen_key: &str
) -> Result<impl Future<Item = Success, Error = Error>>
[src]
pub fn keep_alive(
&self,
listen_key: &str
) -> Result<impl Future<Item = Success, Error = Error>>
pub fn close(
&self,
listen_key: &str
) -> Result<impl Future<Item = Success, Error = Error>>
[src]
pub fn close(
&self,
listen_key: &str
) -> Result<impl Future<Item = Success, Error = Error>>
impl Binance
[src]
impl Binance