pub struct FuturesMarket {
    pub client: Client,
    pub recv_window: u64,
}

Fields§

§client: Client§recv_window: u64

Implementations§

source§

impl FuturesMarket

source

pub fn get_depth<S>(&self, symbol: S) -> Result<OrderBook>
where S: Into<String>,

source

pub fn get_custom_depth<S>(&self, symbol: S, depth: u64) -> Result<OrderBook>
where S: Into<String>,

source

pub fn get_trades<S>(&self, symbol: S) -> Result<Trades>
where S: Into<String>,

source

pub fn get_historical_trades<S1, S2, S3>( &self, symbol: S1, from_id: S2, limit: S3 ) -> Result<Trades>
where S1: Into<String>, S2: Into<Option<u64>>, S3: Into<Option<u16>>,

source

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>
where S1: Into<String>, S2: Into<Option<u64>>, S3: Into<Option<u64>>, S4: Into<Option<u64>>, S5: Into<Option<u16>>,

source

pub fn get_klines<S1, S2, S3, S4, S5>( &self, symbol: S1, interval: S2, limit: S3, start_time: S4, end_time: S5 ) -> Result<KlineSummaries>
where S1: Into<String>, S2: Into<String>, S3: Into<Option<u16>>, S4: Into<Option<u64>>, S5: Into<Option<u64>>,

source

pub fn get_24h_price_stats<S>(&self, symbol: S) -> Result<PriceStats>
where S: Into<String>,

source

pub fn get_all_24h_price_stats(&self) -> Result<Vec<PriceStats>>

source

pub fn get_price<S>(&self, symbol: S) -> Result<SymbolPrice>
where S: Into<String>,

source

pub fn get_all_prices(&self) -> Result<Prices>

source

pub fn get_all_book_tickers(&self) -> Result<BookTickers>

source

pub fn get_book_ticker<S>(&self, symbol: S) -> Result<Tickers>
where S: Into<String>,

source

pub fn get_mark_prices(&self) -> Result<MarkPrices>

source

pub fn get_all_liquidation_orders(&self) -> Result<LiquidationOrders>

source

pub fn open_interest<S>(&self, symbol: S) -> Result<OpenInterest>
where S: Into<String>,

source

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>>
where S1: Into<String>, S2: Into<String>, S3: Into<Option<u16>>, S4: Into<Option<u64>>, S5: Into<Option<u64>>,

Trait Implementations§

source§

impl Binance for FuturesMarket

source§

fn new(api_key: Option<String>, secret_key: Option<String>) -> FuturesMarket

source§

fn new_with_config( api_key: Option<String>, secret_key: Option<String>, config: &Config ) -> FuturesMarket

source§

impl Clone for FuturesMarket

source§

fn clone(&self) -> FuturesMarket

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more