pub struct MarketApiClient { /* private fields */ }Implementations§
Source§impl MarketApiClient
impl MarketApiClient
pub fn new(websocket_api_base: Arc<WebsocketApi>) -> Self
Trait Implementations§
Source§impl Clone for MarketApiClient
impl Clone for MarketApiClient
Source§fn clone(&self) -> MarketApiClient
fn clone(&self) -> MarketApiClient
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 MarketApi for MarketApiClient
impl MarketApi for MarketApiClient
fn avg_price<'life0, 'async_trait>(
&'life0 self,
params: AvgPriceParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<AvgPriceResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn block_trades_historical<'life0, 'async_trait>(
&'life0 self,
params: BlockTradesHistoricalParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Vec<BlockTradesHistoricalResponseResultInner>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn depth<'life0, 'async_trait>(
&'life0 self,
params: DepthParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<DepthResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn klines<'life0, 'async_trait>(
&'life0 self,
params: KlinesParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Vec<Vec<KlinesItemInner>>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn reference_price<'life0, 'async_trait>(
&'life0 self,
params: ReferencePriceParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<ReferencePriceResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn reference_price_calculation<'life0, 'async_trait>(
&'life0 self,
params: ReferencePriceCalculationParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<ReferencePriceCalculationResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ticker<'life0, 'async_trait>(
&'life0 self,
params: TickerParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<TickerResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ticker24hr<'life0, 'async_trait>(
&'life0 self,
params: Ticker24hrParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Ticker24hrResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ticker_book<'life0, 'async_trait>(
&'life0 self,
params: TickerBookParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<TickerBookResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ticker_price<'life0, 'async_trait>(
&'life0 self,
params: TickerPriceParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<TickerPriceResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ticker_trading_day<'life0, 'async_trait>(
&'life0 self,
params: TickerTradingDayParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Vec<TickerTradingDayResponseResultInner>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn trades_aggregate<'life0, 'async_trait>(
&'life0 self,
params: TradesAggregateParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Vec<TradesAggregateResponseResultInner>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn trades_historical<'life0, 'async_trait>(
&'life0 self,
params: TradesHistoricalParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Vec<TradesHistoricalResponseResultInner>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn trades_recent<'life0, 'async_trait>(
&'life0 self,
params: TradesRecentParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Vec<TradesRecentResponseResultInner>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ui_klines<'life0, 'async_trait>(
&'life0 self,
params: UiKlinesParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Vec<Vec<KlinesItemInner>>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for MarketApiClient
impl !UnwindSafe for MarketApiClient
impl Freeze for MarketApiClient
impl Send for MarketApiClient
impl Sync for MarketApiClient
impl Unpin for MarketApiClient
impl UnsafeUnpin for MarketApiClient
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