#[non_exhaustive]pub struct GridSubOrderUpdate {Show 28 fields
pub algo_id: String,
pub algo_cl_ord_id: String,
pub inst_id: String,
pub inst_type: String,
pub algo_ord_type: String,
pub group_id: String,
pub ord_id: String,
pub td_mode: String,
pub tag: String,
pub ord_type: String,
pub sz: NumberString,
pub state: String,
pub side: String,
pub px: NumberString,
pub fee: NumberString,
pub fee_ccy: String,
pub rebate: NumberString,
pub rebate_ccy: String,
pub avg_px: NumberString,
pub acc_fill_sz: NumberString,
pub pos_side: String,
pub pnl: NumberString,
pub ct_val: NumberString,
pub lever: NumberString,
pub c_time: NumberString,
pub u_time: NumberString,
pub p_time: NumberString,
pub extra: ExtraFields,
}Expand description
grid-sub-orders channel row.
OKX docs: https://www.okx.com/docs-v5/en/#trading-bot-websocket-grid-sub-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.algo_id: StringParent algo order ID of the grid strategy.
algo_cl_ord_id: StringClient-supplied algo order ID.
inst_id: StringInstrument ID, e.g., BTC-USDT.
inst_type: StringInstrument type, e.g., SWAP, SPOT.
algo_ord_type: StringAlgo order type: grid or contract_grid.
group_id: StringGroup ID.
ord_id: StringOKX-assigned order ID of this sub-order.
td_mode: StringSub-order trade mode: cross, isolated, or cash.
tag: StringOrder tag.
ord_type: StringOrder type: market, limit, or ioc.
sz: NumberStringOrder quantity to buy or sell.
state: StringSub-order state: live, partially_filled, filled, canceled, cancelling.
side: StringOrder side: buy or sell.
px: NumberStringOrder price.
fee: NumberStringFee amount.
fee_ccy: StringFee currency.
rebate: NumberStringRebate amount.
rebate_ccy: StringRebate currency.
avg_px: NumberStringAverage fill price.
acc_fill_sz: NumberStringAccumulated filled quantity.
pos_side: StringPosition side: net.
pnl: NumberStringProfit and loss for this sub-order.
ct_val: NumberStringContract value (futures/swap/option only).
lever: NumberStringLeverage.
c_time: NumberStringSub-order created time (Unix milliseconds).
u_time: NumberStringLast update time (Unix milliseconds).
p_time: NumberStringPush time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for GridSubOrderUpdate
impl Clone for GridSubOrderUpdate
Source§fn clone(&self) -> GridSubOrderUpdate
fn clone(&self) -> GridSubOrderUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more