Struct binance_client::HttpClient[][src]

pub struct HttpClient { /* fields omitted */ }

The Binance HTTP client.

Implementations

impl Client[src]

pub fn new() -> Self[src]

Creates an unauthorized client instance.

pub fn new_with_auth(api_key: String, secret_key: String) -> Self[src]

Creates an authorized client instance.

pub fn ping(&self) -> Result<(), Error>[src]

Test connectivity to the Rest API.

pub fn time(&self) -> Result<TimeGetResponse, Error>[src]

Test connectivity to the Rest API and get the current server time.

pub fn exchange_info(&self) -> Result<ExchangeInfoGetResponse, Error>[src]

Current exchange trading rules and symbol information.

pub fn klines(
    &self,
    request: KlinesGetQuery
) -> Result<KlinesGetResponse, Error>
[src]

Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time.

pub fn depth(&self, request: DepthGetQuery) -> Result<DepthGetResponse, Error>[src]

The real-time market depth.

pub fn account_get(
    &self,
    request: AccountGetQuery
) -> Result<AccountGetResponse, Error>
[src]

Get the account info and balances.

pub fn open_orders_get(
    &self,
    request: OpenOrdersGetQuery
) -> Result<OpenOrdersGetResponse, Error>
[src]

Get the account open orders.

pub fn open_orders_delete(
    &self,
    request: OpenOrdersDeleteQuery
) -> Result<OpenOrdersDeleteResponse, Error>
[src]

Delete the account open orders.

pub fn order_get(
    &self,
    request: OrderGetQuery
) -> Result<OrderGetResponse, Error>
[src]

Check an order's status.

pub fn order_post(
    &self,
    request: OrderPostQuery
) -> Result<OrderPostResponse, Error>
[src]

Send in a new order.

pub fn order_delete(
    &self,
    request: OrderDeleteQuery
) -> Result<OrderDeleteResponse, Error>
[src]

Cancel an active order.

pub fn order_post_test(
    &self,
    request: OrderPostQuery
) -> Result<OrderPostResponse, Error>
[src]

Test new order creation and signature/recvWindow long. Creates and validates a new order but does not send it into the matching engine.

Trait Implementations

impl Clone for Client[src]

impl Debug for Client[src]

impl Default for Client[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Typeable for T where
    T: Any