pub struct ResolvedEntry {
pub risk_multiplier: f64,
pub symbol: String,
pub side: Side,
pub order_type: OrderType,
pub price: Option<f64>,
pub stoploss: Option<f64>,
pub targets: Vec<TargetSpec>,
pub rules: Vec<RuleConfig>,
pub group: Option<GroupId>,
pub trade_id: Option<TradeId>,
pub target_resolution: TargetResolution,
pub level_resolution: EntryLevelResolution,
}Expand description
A resolved entry that retains risk intent without assigning concrete lots.
Fields§
§risk_multiplier: f64§symbol: String§side: Side§order_type: OrderType§price: Option<f64>§stoploss: Option<f64>§targets: Vec<TargetSpec>§rules: Vec<RuleConfig>§group: Option<GroupId>§trade_id: Option<TradeId>§target_resolution: TargetResolution§level_resolution: EntryLevelResolutionImplementations§
Source§impl ResolvedEntry
impl ResolvedEntry
Sourcepub fn into_action(self, lot_size: f64) -> Action
pub fn into_action(self, lot_size: f64) -> Action
Finalize the resolved entry with a concrete lot size.
Trait Implementations§
Source§impl Clone for ResolvedEntry
impl Clone for ResolvedEntry
Source§impl Debug for ResolvedEntry
impl Debug for ResolvedEntry
Source§impl<'de> Deserialize<'de> for ResolvedEntry
impl<'de> Deserialize<'de> for ResolvedEntry
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 ResolvedEntry
impl RefUnwindSafe for ResolvedEntry
impl Send for ResolvedEntry
impl Sync for ResolvedEntry
impl Unpin for ResolvedEntry
impl UnsafeUnpin for ResolvedEntry
impl UnwindSafe for ResolvedEntry
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