pub struct BinanceSpotClient { /* private fields */ }Implementations§
Source§impl BinanceSpotClient
impl BinanceSpotClient
pub fn new(base_url: Url) -> Self
pub fn with_credentials(self, credentials: BinanceCredentials) -> Self
pub fn with_http(self, http: Client) -> Self
pub fn with_recv_window_ms(self, recv_window_ms: u64) -> Self
Trait Implementations§
Source§impl Clone for BinanceSpotClient
impl Clone for BinanceSpotClient
Source§fn clone(&self) -> BinanceSpotClient
fn clone(&self) -> BinanceSpotClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinanceSpotClient
impl Debug for BinanceSpotClient
Source§impl MarketDataSource for BinanceSpotClient
impl MarketDataSource for BinanceSpotClient
fn exchange_id(&self) -> ExchangeId
fn fetch_klines<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 KlineRequest,
) -> Pin<Box<dyn Future<Output = Result<Vec<Candle>, ExchangeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_symbol_rules<'life0, 'life1, 'async_trait>(
&'life0 self,
symbol: &'life1 Symbol,
) -> Pin<Box<dyn Future<Output = Result<SymbolRules, ExchangeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl TradingVenue for BinanceSpotClient
impl TradingVenue for BinanceSpotClient
fn exchange_id(&self) -> ExchangeId
fn account_balances<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<AssetBalance>, ExchangeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn open_orders<'life0, 'life1, 'async_trait>(
&'life0 self,
symbol: Option<&'life1 Symbol>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ExchangeOrder>, ExchangeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recent_trades<'life0, 'life1, 'async_trait>(
&'life0 self,
symbol: &'life1 Symbol,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<AccountTrade>, ExchangeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn submit_market_order<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 MarketOrderRequest,
) -> Pin<Box<dyn Future<Output = Result<ExchangeOrder, ExchangeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cancel_order<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CancelOrderRequest,
) -> Pin<Box<dyn Future<Output = Result<ExchangeOrder, ExchangeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_order<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 OrderQueryRequest,
) -> Pin<Box<dyn Future<Output = Result<ExchangeOrder, ExchangeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for BinanceSpotClient
impl !UnwindSafe for BinanceSpotClient
impl Freeze for BinanceSpotClient
impl Send for BinanceSpotClient
impl Sync for BinanceSpotClient
impl Unpin for BinanceSpotClient
impl UnsafeUnpin for BinanceSpotClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more