pub struct BatchPlaceRequest<'a> {
pub category: Category,
pub requests: Vec<OrderRequest<'a>>,
}Expand description
Parameters for batch placing multiple orders.
Used to construct a request to the /v5/order/create-batch endpoint to place multiple orders simultaneously. This is useful for bots executing complex strategies, such as placing multiple limit orders at different price levels in perpetual futures.
Fields§
§category: CategoryThe product category (e.g., Linear, Inverse).
Specifies the instrument type. Bots must set this to target the correct contract type for the batch orders.
requests: Vec<OrderRequest<'a>>A list of order requests to place.
Contains the individual order details, such as symbol, price, and quantity. Bots should populate this with valid OrderRequest structs to execute multiple orders efficiently.
Implementations§
Source§impl<'a> BatchPlaceRequest<'a>
impl<'a> BatchPlaceRequest<'a>
Sourcepub fn new(
category: Category,
requests: Vec<OrderRequest<'a>>,
) -> BatchPlaceRequest<'a>
pub fn new( category: Category, requests: Vec<OrderRequest<'a>>, ) -> BatchPlaceRequest<'a>
Constructs a new BatchPlace request with specified parameters.
Allows customization of the batch order request. Bots should use this to define the category and list of orders to place.
Trait Implementations§
Source§impl<'a> Clone for BatchPlaceRequest<'a>
impl<'a> Clone for BatchPlaceRequest<'a>
Source§fn clone(&self) -> BatchPlaceRequest<'a>
fn clone(&self) -> BatchPlaceRequest<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more