Struct binance_async::Binance
source · pub struct Binance {
pub transport: Transport,
}
Fields
transport: Transport
Implementations
sourceimpl Binance
impl Binance
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>>
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>>
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>>
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>>
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>>
pub fn trade_history(
&self,
symbol: &str
) -> Result<impl Future<Item = Vec<TradeHistory>, Error = Error>>
sourceimpl Binance
impl Binance
pub fn ping(&self) -> Result<impl Future<Item = String, Error = Error>>
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>>
pub fn exchange_info(
&self
) -> Result<impl Future<Item = ExchangeInformation, Error = Error>>
sourceimpl Binance
impl Binance
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>>
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>>
pub fn get_book_ticker(
&self,
symbol: &str
) -> Result<impl Future<Item = Ticker, Error = Error>>
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>>,
pub fn get_24h_price_stats_all(
&self
) -> Result<impl Future<Item = Vec<PriceStats>, Error = Error>>
sourceimpl Binance
impl Binance
pub fn user_stream_start(
&self
) -> Result<impl Future<Item = UserDataStream, Error = Error>>
pub fn user_stream_keep_alive(
&self,
listen_key: &str
) -> Result<impl Future<Item = Success, Error = Error>>
pub fn user_stream_close(
&self,
listen_key: &str
) -> Result<impl Future<Item = Success, Error = Error>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Binance
impl Send for Binance
impl Sync for Binance
impl Unpin for Binance
impl !UnwindSafe for Binance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more