pub enum RequestType<'a> {
Create(OrderRequest<'a>),
CreateBatch(BatchPlaceRequest<'a>),
Amend(AmendOrderRequest<'a>),
AmendBatch(BatchAmendRequest<'a>),
Cancel(CancelOrderRequest<'a>),
CancelBatch(BatchCancelRequest<'a>),
}Expand description
Enum representing different types of batch order requests.
This enum allows bots to specify whether a batch request is for creating, amending, or canceling orders. It provides flexibility for handling multiple order operations in a unified way.
Variants§
Create(OrderRequest<'a>)
A batch order creation request.
Used to place multiple new orders. Bots use this for strategies requiring simultaneous order placements, such as grid trading or scalping.
CreateBatch(BatchPlaceRequest<'a>)
A batch order creation request for multiple orders.
Used to place multiple new orders in a single request. Bots use this for strategies requiring simultaneous order placements, such as grid trading or scalping.
Amend(AmendOrderRequest<'a>)
A batch order amendment request.
Used to modify multiple existing orders. Bots use this to adjust order parameters in response to market changes, such as adjusting stop-losses or take-profits.
AmendBatch(BatchAmendRequest<'a>)
A batch order amendment request for multiple orders.
Used to modify multiple existing orders in a single request. Bots use this to adjust order parameters in response to market changes, such as adjusting stop-losses or take-profits.
Cancel(CancelOrderRequest<'a>)
A batch order cancellation request.
Used to cancel multiple existing orders. Bots use this for risk management or strategy adjustments, such as canceling orders when a position is closed or when a strategy is changed.
CancelBatch(BatchCancelRequest<'a>)
A batch order cancellation request for multiple orders.
Used to cancel multiple existing orders in a single request. Bots use this for risk management or strategy adjustments, such as canceling orders when a position is closed or when a strategy is changed.
Trait Implementations§
Source§impl<'a> Clone for RequestType<'a>
impl<'a> Clone for RequestType<'a>
Source§fn clone(&self) -> RequestType<'a>
fn clone(&self) -> RequestType<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more