Struct binance::futures::market::FuturesMarket
source · pub struct FuturesMarket {
pub client: Client,
pub recv_window: u64,
}
Fields§
§client: Client
§recv_window: u64
Implementations§
source§impl FuturesMarket
impl FuturesMarket
pub fn get_depth<S>(&self, symbol: S) -> Result<OrderBook>
pub fn get_custom_depth<S>(&self, symbol: S, depth: u64) -> Result<OrderBook>
pub fn get_trades<S>(&self, symbol: S) -> Result<Trades>
pub fn get_historical_trades<S1, S2, S3>( &self, symbol: S1, from_id: S2, limit: S3 ) -> Result<Trades>
pub fn get_agg_trades<S1, S2, S3, S4, S5>( &self, symbol: S1, from_id: S2, start_time: S3, end_time: S4, limit: S5 ) -> Result<AggTrades>
pub fn get_klines<S1, S2, S3, S4, S5>( &self, symbol: S1, interval: S2, limit: S3, start_time: S4, end_time: S5 ) -> Result<KlineSummaries>
pub fn get_24h_price_stats<S>(&self, symbol: S) -> Result<PriceStats>
pub fn get_all_24h_price_stats(&self) -> Result<Vec<PriceStats>>
pub fn get_price<S>(&self, symbol: S) -> Result<SymbolPrice>
pub fn get_all_prices(&self) -> Result<Prices>
pub fn get_all_book_tickers(&self) -> Result<BookTickers>
pub fn get_book_ticker<S>(&self, symbol: S) -> Result<Tickers>
pub fn get_mark_prices(&self) -> Result<MarkPrices>
pub fn get_all_liquidation_orders(&self) -> Result<LiquidationOrders>
pub fn open_interest<S>(&self, symbol: S) -> Result<OpenInterest>
pub fn open_interest_statistics<S1, S2, S3, S4, S5>( &self, symbol: S1, period: S2, limit: S3, start_time: S4, end_time: S5 ) -> Result<Vec<OpenInterestHist>>
Trait Implementations§
source§impl Binance for FuturesMarket
impl Binance for FuturesMarket
source§impl Clone for FuturesMarket
impl Clone for FuturesMarket
source§fn clone(&self) -> FuturesMarket
fn clone(&self) -> FuturesMarket
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for FuturesMarket
impl Send for FuturesMarket
impl Sync for FuturesMarket
impl Unpin for FuturesMarket
impl !UnwindSafe for FuturesMarket
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