#[non_exhaustive]pub struct OrderAttachAlgoOrder {Show 18 fields
pub attach_algo_id: String,
pub attach_algo_cl_ord_id: String,
pub tp_ord_kind: String,
pub tp_trigger_px: NumberString,
pub tp_trigger_ratio: NumberString,
pub tp_trigger_px_type: String,
pub tp_ord_px: NumberString,
pub sl_trigger_px: NumberString,
pub sl_trigger_ratio: NumberString,
pub sl_trigger_px_type: String,
pub sl_ord_px: NumberString,
pub sz: NumberString,
pub amend_px_on_trigger_type: String,
pub callback_ratio: NumberString,
pub callback_spread: NumberString,
pub active_px: NumberString,
pub fail_code: String,
pub fail_reason: String,
}Expand description
An attached SL/TP algo order nested inside an Order (attachAlgoOrds).
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.attach_algo_id: StringValue returned by OKX in the attachAlgoId field.
attach_algo_cl_ord_id: StringValue returned by OKX in the attachAlgoClOrdId field.
tp_ord_kind: StringValue returned by OKX in the tpOrdKind field.
tp_trigger_px: NumberStringValue returned by OKX in the tpTriggerPx field.
tp_trigger_ratio: NumberStringValue returned by OKX in the tpTriggerRatio field.
tp_trigger_px_type: StringValue returned by OKX in the tpTriggerPxType field.
tp_ord_px: NumberStringValue returned by OKX in the tpOrdPx field.
sl_trigger_px: NumberStringValue returned by OKX in the slTriggerPx field.
sl_trigger_ratio: NumberStringValue returned by OKX in the slTriggerRatio field.
sl_trigger_px_type: StringValue returned by OKX in the slTriggerPxType field.
sl_ord_px: NumberStringValue returned by OKX in the slOrdPx field.
sz: NumberStringValue returned by OKX in the sz field.
amend_px_on_trigger_type: StringValue returned by OKX in the amendPxOnTriggerType field.
callback_ratio: NumberStringValue returned by OKX in the callbackRatio field.
callback_spread: NumberStringValue returned by OKX in the callbackSpread field.
active_px: NumberStringValue returned by OKX in the activePx field.
fail_code: StringValue returned by OKX in the failCode field.
fail_reason: StringValue returned by OKX in the failReason field.
Trait Implementations§
Source§impl Clone for OrderAttachAlgoOrder
impl Clone for OrderAttachAlgoOrder
Source§fn clone(&self) -> OrderAttachAlgoOrder
fn clone(&self) -> OrderAttachAlgoOrder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more