pub struct CreateBatchOrders {
pub orders: Vec<Order>,
pub x_gate_exp_time: Option<u128>,
pub credentials: Option<Credentials>,
}Expand description
§Create multiple spot orders in batch
Create multiple spot orders in a single request for improved efficiency. All orders will be processed together and either all succeed or all fail.
§Important Notes:
- Maximum 10 orders per batch request
- All orders must be for the same account type
- Orders are processed atomically (all or nothing)
- Each order follows the same validation rules as individual orders
Fields§
§orders: Vec<Order>List of orders to create (maximum 10)
x_gate_exp_time: Option<u128>Request expiration time in milliseconds
credentials: Option<Credentials>API credentials for authentication
Implementations§
Source§impl CreateBatchOrders
impl CreateBatchOrders
Sourcepub fn x_gate_exp_time(self, x_gate_exp_time: u128) -> Self
pub fn x_gate_exp_time(self, x_gate_exp_time: u128) -> Self
Set the request expiration time in milliseconds
Sourcepub fn credentials(self, creds: Credentials) -> Self
pub fn credentials(self, creds: Credentials) -> Self
Set API credentials for authentication
Trait Implementations§
Source§impl From<CreateBatchOrders> for Request
impl From<CreateBatchOrders> for Request
Source§fn from(request: CreateBatchOrders) -> Request
fn from(request: CreateBatchOrders) -> Request
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateBatchOrders
impl RefUnwindSafe for CreateBatchOrders
impl Send for CreateBatchOrders
impl Sync for CreateBatchOrders
impl Unpin for CreateBatchOrders
impl UnsafeUnpin for CreateBatchOrders
impl UnwindSafe for CreateBatchOrders
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