pub struct RithmicIfTouchedTrigger {
pub symbol: String,
pub exchange: String,
pub condition: Condition,
pub price_field: PriceField,
pub price: f64,
}Expand description
Conditional trigger for advanced bracket order entry.
This maps directly to the if_touched_* fields on RequestBracketOrder.
§Example
ⓘ
use rithmic_rs::{BracketCondition, BracketPriceField, RithmicIfTouchedTrigger};
let trigger = RithmicIfTouchedTrigger {
symbol: "NQM6".to_string(),
exchange: "CME".to_string(),
condition: BracketCondition::GreaterThanEqualTo,
price_field: BracketPriceField::TradePrice,
price: 18250.5,
};Fields§
§symbol: StringTrading symbol to monitor for the condition.
exchange: StringExchange for the monitored symbol.
condition: ConditionComparison operator for the trigger.
price_field: PriceFieldPrice field to evaluate.
price: f64Threshold price for the condition.
Trait Implementations§
Source§impl Clone for RithmicIfTouchedTrigger
impl Clone for RithmicIfTouchedTrigger
Source§fn clone(&self) -> RithmicIfTouchedTrigger
fn clone(&self) -> RithmicIfTouchedTrigger
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 moreAuto Trait Implementations§
impl Freeze for RithmicIfTouchedTrigger
impl RefUnwindSafe for RithmicIfTouchedTrigger
impl Send for RithmicIfTouchedTrigger
impl Sync for RithmicIfTouchedTrigger
impl Unpin for RithmicIfTouchedTrigger
impl UnsafeUnpin for RithmicIfTouchedTrigger
impl UnwindSafe for RithmicIfTouchedTrigger
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