#[non_exhaustive]pub struct SpreadOrderUpdate {Show 25 fields
pub sprd_id: String,
pub ord_id: String,
pub cl_ord_id: String,
pub tag: String,
pub px: NumberString,
pub sz: NumberString,
pub ord_type: String,
pub side: String,
pub fill_sz: NumberString,
pub fill_px: NumberString,
pub trade_id: String,
pub acc_fill_sz: NumberString,
pub pending_fill_sz: NumberString,
pub pending_settle_sz: NumberString,
pub canceled_sz: NumberString,
pub avg_px: NumberString,
pub state: String,
pub cancel_source: String,
pub req_id: String,
pub amend_result: String,
pub code: String,
pub msg: String,
pub c_time: NumberString,
pub u_time: NumberString,
pub extra: ExtraFields,
}Expand description
Private sprd-orders channel row.
OKX docs: https://www.okx.com/docs-v5/en/#spread-trading-websocket-sprd-orders-channel
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sprd_id: StringSpread ID, e.g., BTC-USDT_BTC-USDT-SWAP.
ord_id: StringOKX-assigned order ID.
cl_ord_id: StringClient-supplied order ID, if any.
tag: StringOrder tag.
px: NumberStringOrder price.
sz: NumberStringOrder size (number of contracts).
ord_type: StringOrder type, e.g., limit, post_only, ioc, fok.
side: StringOrder side: buy or sell.
fill_sz: NumberStringFill size for the most recent fill of this push.
fill_px: NumberStringFill price for the most recent fill.
trade_id: StringTrade ID of the most recent fill.
acc_fill_sz: NumberStringAccumulated filled size.
pending_fill_sz: NumberStringSize pending to be filled.
pending_settle_sz: NumberStringSize pending to be settled.
canceled_sz: NumberStringCanceled size.
avg_px: NumberStringAverage fill price.
state: StringOrder state.
Documented values: live, partially_filled, filled, canceled.
cancel_source: StringSource that triggered the cancellation.
req_id: StringClient-supplied request ID, echoed from the original operation request.
amend_result: StringResult of the last amendment: -1 failure, 0 success, "" no amendment.
code: StringError code; "0" on success.
msg: StringError message; empty on success.
c_time: NumberStringOrder creation time (Unix milliseconds).
u_time: NumberStringLast update time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for SpreadOrderUpdate
impl Clone for SpreadOrderUpdate
Source§fn clone(&self) -> SpreadOrderUpdate
fn clone(&self) -> SpreadOrderUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more