pub struct AlertCondition {
pub comparison_type: String,
pub exchange_segment: ExchangeSegment,
pub security_id: String,
pub indicator_name: Option<String>,
pub time_frame: Option<String>,
pub operator: String,
pub comparing_value: Option<Value>,
pub comparing_indicator_name: Option<String>,
pub exp_date: Option<String>,
pub frequency: Option<String>,
pub user_note: Option<String>,
}Expand description
Condition configuration for a conditional trigger.
Fields§
§comparison_type: StringType of comparison (e.g. TECHNICAL_WITH_VALUE).
exchange_segment: ExchangeSegmentExchange where condition is evaluated.
security_id: StringSecurity ID of the instrument.
indicator_name: Option<String>Technical indicator name (e.g. SMA_5, LTP).
time_frame: Option<String>Timeframe for indicator evaluation (DAY, ONE_MIN, FIVE_MIN, FIFTEEN_MIN).
operator: StringCondition operator (e.g. CROSSING_UP, GREATER_THAN).
comparing_value: Option<Value>Value to compare indicator/price against.
comparing_indicator_name: Option<String>Second indicator name for indicator-vs-indicator comparisons.
exp_date: Option<String>Alert expiry date (YYYY-MM-DD). Defaults to 1 year.
frequency: Option<String>Trigger frequency (e.g. ONCE).
user_note: Option<String>User-provided note.
Trait Implementations§
Source§impl Clone for AlertCondition
impl Clone for AlertCondition
Source§fn clone(&self) -> AlertCondition
fn clone(&self) -> AlertCondition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlertCondition
impl Debug for AlertCondition
Source§impl<'de> Deserialize<'de> for AlertCondition
impl<'de> Deserialize<'de> for AlertCondition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AlertCondition
impl RefUnwindSafe for AlertCondition
impl Send for AlertCondition
impl Sync for AlertCondition
impl Unpin for AlertCondition
impl UnsafeUnpin for AlertCondition
impl UnwindSafe for AlertCondition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more