pub struct TradeApiClient { /* private fields */ }Implementations§
Source§impl TradeApiClient
impl TradeApiClient
pub fn new(websocket_api_base: Arc<WebsocketApi>) -> Self
Trait Implementations§
Source§impl Clone for TradeApiClient
impl Clone for TradeApiClient
Source§impl TradeApi for TradeApiClient
impl TradeApi for TradeApiClient
fn open_orders_cancel_all<'life0, 'async_trait>(
&'life0 self,
params: OpenOrdersCancelAllParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Vec<OpenOrdersCancelAllResponseResultInner>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_amend_keep_priority<'life0, 'async_trait>(
&'life0 self,
params: OrderAmendKeepPriorityParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderAmendKeepPriorityResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_cancel<'life0, 'async_trait>(
&'life0 self,
params: OrderCancelParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderCancelResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_cancel_replace<'life0, 'async_trait>(
&'life0 self,
params: OrderCancelReplaceParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderCancelReplaceResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_list_cancel<'life0, 'async_trait>(
&'life0 self,
params: OrderListCancelParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderListCancelResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_list_place<'life0, 'async_trait>(
&'life0 self,
params: OrderListPlaceParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderListPlaceResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_list_place_oco<'life0, 'async_trait>(
&'life0 self,
params: OrderListPlaceOcoParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderListPlaceOcoResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_list_place_opo<'life0, 'async_trait>(
&'life0 self,
params: OrderListPlaceOpoParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderListPlaceOpoResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_list_place_opoco<'life0, 'async_trait>(
&'life0 self,
params: OrderListPlaceOpocoParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderListPlaceOpocoResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_list_place_oto<'life0, 'async_trait>(
&'life0 self,
params: OrderListPlaceOtoParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderListPlaceOtoResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_list_place_otoco<'life0, 'async_trait>(
&'life0 self,
params: OrderListPlaceOtocoParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderListPlaceOtocoResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_place<'life0, 'async_trait>(
&'life0 self,
params: OrderPlaceParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderPlaceResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn order_test<'life0, 'async_trait>(
&'life0 self,
params: OrderTestParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<OrderTestResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sor_order_place<'life0, 'async_trait>(
&'life0 self,
params: SorOrderPlaceParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Vec<SorOrderPlaceResponseResultInner>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sor_order_test<'life0, 'async_trait>(
&'life0 self,
params: SorOrderTestParams,
) -> Pin<Box<dyn Future<Output = Result<WebsocketApiResponse<Box<SorOrderTestResponseResult>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for TradeApiClient
impl !UnwindSafe for TradeApiClient
impl Freeze for TradeApiClient
impl Send for TradeApiClient
impl Sync for TradeApiClient
impl Unpin for TradeApiClient
impl UnsafeUnpin for TradeApiClient
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