pub struct OrderCancelTransaction {
pub id: Option<TransactionID>,
pub time: Option<Timestamp>,
pub user_id: Option<i64>,
pub account_id: Option<AccountID>,
pub batch_id: Option<TransactionID>,
pub request_id: Option<RequestID>,
pub type: Option<TransactionType>,
pub order_id: Option<OrderID>,
pub client_order_id: Option<OrderID>,
pub reason: Option<OrderCancelReason>,
pub replaced_by_order_id: Option<OrderID>,
}Expand description
An OrderCancelTransaction represents the cancellation of an Order in the client’s Account.
Fields§
§id: Option<TransactionID>The Transaction’s Identifier.
time: Option<Timestamp>The date/time when the Transaction was created.
user_id: Option<i64>The ID of the user that initiated the creation of the Transaction.
account_id: Option<AccountID>The ID of the Account the Transaction was created for.
batch_id: Option<TransactionID>The ID of the “batch” that the Transaction belongs to. Transactions in the same batch are applied to the Account simultaneously.
request_id: Option<RequestID>The Request ID of the request which generated the transaction.
type: Option<TransactionType>The Type of the Transaction. Always set to “ORDER_CANCEL” for an OrderCancelTransaction.
order_id: Option<OrderID>The ID of the Order cancelled
client_order_id: Option<OrderID>The client ID of the Order cancelled (only provided if the Order has a client Order ID).
reason: Option<OrderCancelReason>The reason that the Order was cancelled.
replaced_by_order_id: Option<OrderID>The ID of the Order that replaced this Order (only provided if this Order was cancelled for replacement).