pub struct BatchCreateOrderItem {Show 18 fields
pub expiration_date: Option<String>,
pub leverage: Option<String>,
pub margin_account_id: Option<Uuid>,
pub margin_mode: Option<BatchCreateOrderItemMarginMode>,
pub order_type: String,
pub position_side: Option<BatchCreateOrderItemPositionSide>,
pub price: Option<String>,
pub quantity: String,
pub reduce_only: Option<bool>,
pub risk_bucket_collateral: Option<String>,
pub risk_bucket_id: Option<Uuid>,
pub side: String,
pub slippage_tolerance_bps: Option<i32>,
pub strategy_key: Option<String>,
pub time_in_force: Option<String>,
pub trading_mode: Option<String>,
pub trading_pair_id: Uuid,
pub use_master_balance: Option<bool>,
}Expand description
BatchCreateOrderItem
JSON schema
{
"type": "object",
"required": [
"orderType",
"quantity",
"side",
"tradingPairId"
],
"properties": {
"expirationDate": {
"description": "Order expiration date (ISO 8601, must be in the future)",
"examples": [
"2026-06-01T00:00:00Z"
],
"type": [
"string",
"null"
]
},
"leverage": {
"description": "Leverage multiplier as decimal string for margin orders",
"examples": [
"5"
],
"type": [
"string",
"null"
]
},
"marginAccountId": {
"description": "Margin account UUID for margin orders",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"marginMode": {
"description": "Risk bucket mode for margin orders. Defaults to ISOLATED. Values: ISOLATED, CROSS.",
"examples": [
"CROSS"
],
"type": [
"string",
"null"
],
"enum": [
"ISOLATED",
"CROSS"
]
},
"orderType": {
"description": "Order type: LIMIT or MARKET",
"examples": [
"LIMIT"
],
"type": "string"
},
"positionSide": {
"description": "Position side for margin orders: LONG, SHORT, or NONE",
"examples": [
"LONG"
],
"type": [
"string",
"null"
],
"enum": [
"LONG",
"SHORT",
"NONE"
]
},
"price": {
"description": "Limit price as decimal string (required for LIMIT orders)",
"examples": [
"35000.00"
],
"type": [
"string",
"null"
]
},
"quantity": {
"description": "Order quantity as decimal string",
"examples": [
"0.5"
],
"type": "string"
},
"reduceOnly": {
"description": "Whether the margin order is reduce-only",
"examples": [
false
],
"type": [
"boolean",
"null"
]
},
"riskBucketCollateral": {
"description": "Decimal collateral to allocate into a new isolated risk bucket. When provided, the API creates the bucket ID and matching-engine persists the bucket through the durable log.",
"examples": [
"1000"
],
"type": [
"string",
"null"
]
},
"riskBucketId": {
"description": "Existing isolated risk bucket UUID for risk-bucket-scoped margin orders",
"examples": [
"123e4567-e89b-12d3-a456-426614174001"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"side": {
"description": "Order side: BUY or SELL",
"examples": [
"BUY"
],
"type": "string"
},
"slippageToleranceBps": {
"description": "Maximum slippage tolerance in basis points (market orders only)",
"examples": [
50
],
"type": [
"integer",
"null"
],
"format": "int32",
"maximum": 10000.0
},
"strategyKey": {
"description": "Strategy key used to group risk buckets for delegated/margin orders",
"examples": [
"my-strategy"
],
"type": [
"string",
"null"
]
},
"timeInForce": {
"description": "Time in force: GTC, IOC, or FOK",
"examples": [
"GTC"
],
"type": [
"string",
"null"
]
},
"tradingMode": {
"description": "Trading mode: SPOT or MARGIN (default: SPOT)",
"examples": [
"SPOT"
],
"type": [
"string",
"null"
]
},
"tradingPairId": {
"description": "Trading pair UUID",
"examples": [
"456e7890-e12b-12d3-a456-426614174000"
],
"type": "string",
"format": "uuid"
},
"useMasterBalance": {
"description": "Use master account balance for sub-account orders",
"examples": [
false
],
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false
}Fields§
§expiration_date: Option<String>Order expiration date (ISO 8601, must be in the future)
leverage: Option<String>Leverage multiplier as decimal string for margin orders
margin_account_id: Option<Uuid>Margin account UUID for margin orders
margin_mode: Option<BatchCreateOrderItemMarginMode>Risk bucket mode for margin orders. Defaults to ISOLATED. Values: ISOLATED, CROSS.
order_type: StringOrder type: LIMIT or MARKET
position_side: Option<BatchCreateOrderItemPositionSide>Position side for margin orders: LONG, SHORT, or NONE
price: Option<String>Limit price as decimal string (required for LIMIT orders)
quantity: StringOrder quantity as decimal string
reduce_only: Option<bool>Whether the margin order is reduce-only
risk_bucket_collateral: Option<String>Decimal collateral to allocate into a new isolated risk bucket. When provided, the API creates the bucket ID and matching-engine persists the bucket through the durable log.
risk_bucket_id: Option<Uuid>Existing isolated risk bucket UUID for risk-bucket-scoped margin orders
side: StringOrder side: BUY or SELL
slippage_tolerance_bps: Option<i32>Maximum slippage tolerance in basis points (market orders only)
strategy_key: Option<String>Strategy key used to group risk buckets for delegated/margin orders
time_in_force: Option<String>Time in force: GTC, IOC, or FOK
trading_mode: Option<String>Trading mode: SPOT or MARGIN (default: SPOT)
trading_pair_id: UuidTrading pair UUID
use_master_balance: Option<bool>Use master account balance for sub-account orders
Trait Implementations§
Source§impl Clone for BatchCreateOrderItem
impl Clone for BatchCreateOrderItem
Source§fn clone(&self) -> BatchCreateOrderItem
fn clone(&self) -> BatchCreateOrderItem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more