#[non_exhaustive]pub struct TriggerParam {
pub trigger_action: String,
pub trigger_strategy: String,
pub delay_seconds: String,
pub trigger_time: String,
pub trigger_type: String,
pub timeframe: String,
pub thold: String,
pub trigger_cond: String,
pub time_period: String,
pub trigger_px: String,
pub stop_type: String,
pub extra: ExtraFields,
}Expand description
Trigger parameter entry nested in GridOrderUpdate.
Fields marked “rsi only” are populated when trigger_strategy is rsi.
Fields marked “price only” are populated when trigger_strategy is price.
stop_type is populated only when trigger_action is stop.
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.trigger_action: StringTrigger action: start or stop.
trigger_strategy: StringTrigger strategy: instant, price, or rsi.
delay_seconds: StringDelay in seconds after the trigger condition is met.
trigger_time: StringActual time the action was triggered (Unix milliseconds).
trigger_type: StringHow the action was triggered: manual or auto.
timeframe: StringK-line type (rsi only): e.g. 3m, 1H, 1D.
thold: StringRSI threshold integer 1–100 (rsi only).
trigger_cond: StringRSI trigger condition (rsi only): cross_up, cross_down, above, below, cross.
time_period: StringRSI time period (rsi only): 14.
trigger_px: StringTrigger price (price only).
stop_type: StringStop type when trigger_action is stop.
Spot grid: 1 = sell base currency, 2 = keep base currency.
Contract grid: 1 = market close all positions, 2 = keep positions.
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for TriggerParam
impl Clone for TriggerParam
Source§fn clone(&self) -> TriggerParam
fn clone(&self) -> TriggerParam
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more