pub struct Trader {
pub client: Client,
pub recv_window: u64,
}Fields§
§client: Client§recv_window: u64Implementations§
source§impl Trader
impl Trader
pub async fn place_custom_order<'a>( &self, req: OrderRequest<'a>, ) -> Result<OrderResponse, BybitError>
pub async fn place_futures_limit_order( &self, category: Category, symbol: &str, side: Side, qty: f64, price: f64, mode: u8, ) -> Result<OrderResponse, BybitError>
pub async fn amend_order<'a>( &self, req: AmendOrderRequest<'a>, ) -> Result<AmendOrderResponse, BybitError>
pub async fn cancel_order<'a>( &self, req: CancelOrderRequest<'a>, ) -> Result<CancelOrderResponse, BybitError>
pub async fn get_open_orders<'a>( &self, req: OpenOrdersRequest<'a>, ) -> Result<OpenOrdersResponse, BybitError>
pub async fn cancel_all_orders<'a>( &self, req: CancelallRequest<'a>, ) -> Result<CancelallResponse, BybitError>
sourcepub async fn get_order_history<'a>(
&self,
req: OrderHistoryRequest<'a>,
) -> Result<OrderHistoryResponse, BybitError>
pub async fn get_order_history<'a>( &self, req: OrderHistoryRequest<'a>, ) -> Result<OrderHistoryResponse, BybitError>
pub async fn get_trade_history<'a>( &self, req: TradeHistoryRequest<'a>, ) -> Result<TradeHistoryResponse, BybitError>
pub async fn batch_place_order<'a>( &self, req: BatchPlaceRequest<'a>, ) -> Result<BatchPlaceResponse, BybitError>
pub async fn batch_amend_order<'a>( &self, req: BatchAmendRequest<'a>, ) -> Result<BatchAmendResponse, BybitError>
pub async fn batch_cancel_order<'a>( &self, req: BatchCancelRequest<'a>, ) -> Result<BatchCancelResponse, BybitError>
pub async fn get_borrow_quota_spot(&self)
pub async fn set_dcp_options(&self)
pub fn build_orders<'a>(action: Action<'a>) -> BTreeMap<String, Value>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Trader
impl !RefUnwindSafe for Trader
impl Send for Trader
impl Sync for Trader
impl Unpin for Trader
impl !UnwindSafe for Trader
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)