pub struct OpenPositionUpdate {Show 18 fields
pub deal_reference: Option<String>,
pub deal_id: Option<String>,
pub direction: Option<Direction>,
pub epic: Option<String>,
pub status: Option<Status>,
pub deal_status: Option<Status>,
pub level: Option<f64>,
pub size: Option<f64>,
pub currency: Option<String>,
pub timestamp: Option<String>,
pub channel: Option<String>,
pub expiry: Option<String>,
pub deal_id_origin: Option<String>,
pub stop_level: Option<f64>,
pub limit_level: Option<f64>,
pub guaranteed_stop: Option<bool>,
pub trailing_step: Option<f64>,
pub trailing_stop_distance: Option<f64>,
}Expand description
Structure representing details of an open position update.
Fields§
§deal_reference: Option<String>Unique deal reference for the open position.
deal_id: Option<String>Unique deal identifier for the position.
direction: Option<Direction>Direction of the trade position (buy or sell).
epic: Option<String>Epic identifier for the instrument.
status: Option<Status>Status of the position.
deal_status: Option<Status>Deal status of the position.
level: Option<f64>Price level of the position.
size: Option<f64>Position size.
currency: Option<String>Currency of the position.
timestamp: Option<String>Timestamp of the position update.
channel: Option<String>Channel through which the update was received.
expiry: Option<String>Expiry date of the position, if applicable.
deal_id_origin: Option<String>Original deal identifier for the position.
stop_level: Option<f64>Price level of the stop loss, if set (points).
limit_level: Option<f64>Price level of the limit (take profit), if set (points).
guaranteed_stop: Option<bool>Whether the stop is a guaranteed stop.
trailing_step: Option<f64>Trailing stop step increment, if a trailing stop is set (points).
trailing_stop_distance: Option<f64>Trailing stop distance from the current level, if set (points).
Trait Implementations§
Source§impl Clone for OpenPositionUpdate
impl Clone for OpenPositionUpdate
Source§fn clone(&self) -> OpenPositionUpdate
fn clone(&self) -> OpenPositionUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OpenPositionUpdate
impl Debug for OpenPositionUpdate
Source§impl Default for OpenPositionUpdate
impl Default for OpenPositionUpdate
Source§fn default() -> OpenPositionUpdate
fn default() -> OpenPositionUpdate
Source§impl<'de> Deserialize<'de> for OpenPositionUpdate
impl<'de> Deserialize<'de> for OpenPositionUpdate
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>,
Source§impl Display for OpenPositionUpdate
impl Display for OpenPositionUpdate
Auto Trait Implementations§
impl Freeze for OpenPositionUpdate
impl RefUnwindSafe for OpenPositionUpdate
impl Send for OpenPositionUpdate
impl Sync for OpenPositionUpdate
impl Unpin for OpenPositionUpdate
impl UnsafeUnpin for OpenPositionUpdate
impl UnwindSafe for OpenPositionUpdate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more