pub struct CreateOrderRequest {
pub expiration_date: Option<String>,
pub order_type: String,
pub price: Option<String>,
pub quantity: String,
pub side: String,
pub slippage_tolerance_bps: Option<i32>,
pub time_in_force: Option<String>,
pub trading_mode: Option<String>,
pub trading_pair_id: Uuid,
pub use_master_balance: Option<bool>,
}Expand description
CreateOrderRequest
JSON schema
{
"type": "object",
"required": [
"order_type",
"quantity",
"side",
"trading_pair_id"
],
"properties": {
"expiration_date": {
"description": "Order expiration date (ISO 8601, must be in the future)",
"examples": [
"2026-06-01T00:00:00Z"
],
"type": [
"string",
"null"
]
},
"order_type": {
"description": "Order type: LIMIT or MARKET",
"examples": [
"LIMIT"
],
"type": "string"
},
"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"
},
"side": {
"description": "Order side: BUY or SELL",
"examples": [
"BUY"
],
"type": "string"
},
"slippage_tolerance_bps": {
"description": "Maximum slippage tolerance in basis points (market orders only)",
"examples": [
50
],
"type": [
"integer",
"null"
],
"format": "int32",
"maximum": 10000.0
},
"time_in_force": {
"description": "Time in force: GTC, IOC, or FOK",
"examples": [
"GTC"
],
"type": [
"string",
"null"
]
},
"trading_mode": {
"description": "Trading mode: SPOT or MARGIN (default: SPOT)",
"examples": [
"SPOT"
],
"type": [
"string",
"null"
]
},
"trading_pair_id": {
"description": "Trading pair UUID",
"examples": [
"afae0e16-2d05-4ee9-9ee8-afae0e162d05"
],
"type": "string",
"format": "uuid"
},
"use_master_balance": {
"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)
order_type: StringOrder type: LIMIT or MARKET
price: Option<String>Limit price as decimal string (required for LIMIT orders)
quantity: StringOrder quantity as decimal string
side: StringOrder side: BUY or SELL
slippage_tolerance_bps: Option<i32>Maximum slippage tolerance in basis points (market orders only)
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 CreateOrderRequest
impl Clone for CreateOrderRequest
Source§fn clone(&self) -> CreateOrderRequest
fn clone(&self) -> CreateOrderRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateOrderRequest
impl Debug for CreateOrderRequest
Source§impl<'de> Deserialize<'de> for CreateOrderRequest
impl<'de> Deserialize<'de> for CreateOrderRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateOrderRequest
impl RefUnwindSafe for CreateOrderRequest
impl Send for CreateOrderRequest
impl Sync for CreateOrderRequest
impl Unpin for CreateOrderRequest
impl UnsafeUnpin for CreateOrderRequest
impl UnwindSafe for CreateOrderRequest
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