Struct binance_client::HttpClient [−][src]
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]
&self,
request: KlinesGetQuery
) -> Result<KlinesGetResponse, Error>
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]
&self,
request: AccountGetQuery
) -> Result<AccountGetResponse, Error>
Get the account info and balances.
pub fn open_orders_get(
&self,
request: OpenOrdersGetQuery
) -> Result<OpenOrdersGetResponse, Error>[src]
&self,
request: OpenOrdersGetQuery
) -> Result<OpenOrdersGetResponse, Error>
Get the account open orders.
pub fn open_orders_delete(
&self,
request: OpenOrdersDeleteQuery
) -> Result<OpenOrdersDeleteResponse, Error>[src]
&self,
request: OpenOrdersDeleteQuery
) -> Result<OpenOrdersDeleteResponse, Error>
Delete the account open orders.
pub fn order_get(
&self,
request: OrderGetQuery
) -> Result<OrderGetResponse, Error>[src]
&self,
request: OrderGetQuery
) -> Result<OrderGetResponse, Error>
Check an order's status.
pub fn order_post(
&self,
request: OrderPostQuery
) -> Result<OrderPostResponse, Error>[src]
&self,
request: OrderPostQuery
) -> Result<OrderPostResponse, Error>
Send in a new order.
pub fn order_delete(
&self,
request: OrderDeleteQuery
) -> Result<OrderDeleteResponse, Error>[src]
&self,
request: OrderDeleteQuery
) -> Result<OrderDeleteResponse, Error>
Cancel an active order.
pub fn order_post_test(
&self,
request: OrderPostQuery
) -> Result<OrderPostResponse, Error>[src]
&self,
request: OrderPostQuery
) -> Result<OrderPostResponse, Error>
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
Auto Trait Implementations
impl !RefUnwindSafe for Client[src]
impl Send for Client[src]
impl Sync for Client[src]
impl Unpin for Client[src]
impl !UnwindSafe for Client[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
T: Any,