pub struct CreateOrderResponse {
pub delegation_id: Option<Uuid>,
pub margin_account_id: Option<Uuid>,
pub match_result: Option<MatchResult>,
pub message: Option<String>,
pub order_id: Option<Uuid>,
pub risk_bucket_id: Option<Uuid>,
pub status: Option<String>,
pub stop_loss_order_id: Option<Uuid>,
pub strategy_key: Option<String>,
pub take_profit_order_id: Option<Uuid>,
}Expand description
CreateOrderResponse
JSON schema
{
"type": "object",
"properties": {
"delegationId": {
"description": "Delegated agent UUID when submitted through a delegated session",
"type": [
"string",
"null"
],
"format": "uuid"
},
"marginAccountId": {
"description": "Resolved margin account UUID for margin orders",
"type": [
"string",
"null"
],
"format": "uuid"
},
"matchResult": {
"$ref": "#/components/schemas/MatchResult"
},
"message": {
"description": "Human-readable status message",
"examples": [
"Order created successfully"
],
"type": [
"string",
"null"
]
},
"orderId": {
"description": "Created order UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"riskBucketId": {
"description": "Resolved isolated risk bucket UUID for risk-bucket-scoped margin orders",
"type": [
"string",
"null"
],
"format": "uuid"
},
"status": {
"description": "Result status: SUCCESS or FAILED",
"examples": [
"SUCCESS"
],
"type": [
"string",
"null"
]
},
"stopLossOrderId": {
"description": "Created parent stop-loss conditional order UUID, when requested",
"type": [
"string",
"null"
],
"format": "uuid"
},
"strategyKey": {
"description": "Client strategy key carried for compatibility",
"type": [
"string",
"null"
]
},
"takeProfitOrderId": {
"description": "Created parent take-profit conditional order UUID, when requested",
"type": [
"string",
"null"
],
"format": "uuid"
}
}
}Fields§
§delegation_id: Option<Uuid>Delegated agent UUID when submitted through a delegated session
margin_account_id: Option<Uuid>Resolved margin account UUID for margin orders
match_result: Option<MatchResult>§message: Option<String>Human-readable status message
order_id: Option<Uuid>Created order UUID
risk_bucket_id: Option<Uuid>Resolved isolated risk bucket UUID for risk-bucket-scoped margin orders
status: Option<String>Result status: SUCCESS or FAILED
stop_loss_order_id: Option<Uuid>Created parent stop-loss conditional order UUID, when requested
strategy_key: Option<String>Client strategy key carried for compatibility
take_profit_order_id: Option<Uuid>Created parent take-profit conditional order UUID, when requested
Trait Implementations§
Source§impl Clone for CreateOrderResponse
impl Clone for CreateOrderResponse
Source§fn clone(&self) -> CreateOrderResponse
fn clone(&self) -> CreateOrderResponse
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 CreateOrderResponse
impl Debug for CreateOrderResponse
Source§impl Default for CreateOrderResponse
impl Default for CreateOrderResponse
Source§impl<'de> Deserialize<'de> for CreateOrderResponse
impl<'de> Deserialize<'de> for CreateOrderResponse
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 CreateOrderResponse
impl RefUnwindSafe for CreateOrderResponse
impl Send for CreateOrderResponse
impl Sync for CreateOrderResponse
impl Unpin for CreateOrderResponse
impl UnsafeUnpin for CreateOrderResponse
impl UnwindSafe for CreateOrderResponse
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