pub struct OrderConfirmationResponse {Show 20 fields
pub date: String,
pub status: Status,
pub reason: Option<String>,
pub deal_id: Option<String>,
pub deal_reference: String,
pub deal_status: Option<DealStatus>,
pub epic: Option<String>,
pub expiry: Option<String>,
pub guaranteed_stop: Option<bool>,
pub level: Option<f64>,
pub limit_distance: Option<f64>,
pub limit_level: Option<f64>,
pub size: Option<f64>,
pub stop_distance: Option<f64>,
pub stop_level: Option<f64>,
pub trailing_stop: Option<bool>,
pub direction: Option<Direction>,
pub affected_deals: Vec<AffectedDeal>,
pub profit: Option<f64>,
pub profit_currency: Option<String>,
}Expand description
Details of a confirmed order
Fields§
§date: StringDate and time of the confirmation
status: StatusStatus of the order (accepted, rejected, etc.) This can be null in some responses (e.g., when market is closed)
reason: Option<String>Reason for rejection if applicable
deal_id: Option<String>Unique identifier for the deal
deal_reference: StringClient-generated reference for the deal
deal_status: Option<DealStatus>Status of the deal (accepted or rejected)
epic: Option<String>Instrument EPIC identifier
expiry: Option<String>Expiry date for the order
guaranteed_stop: Option<bool>Whether a guaranteed stop was used
level: Option<f64>Price level of the order
limit_distance: Option<f64>Distance for take profit
limit_level: Option<f64>Price level for take profit
size: Option<f64>Size/quantity of the order
stop_distance: Option<f64>Distance for stop loss
stop_level: Option<f64>Price level for stop loss
trailing_stop: Option<bool>Whether a trailing stop was used
direction: Option<Direction>Direction of the order (buy or sell)
affected_deals: Vec<AffectedDeal>Deals affected by this confirmation (empty when IG omits the field)
profit: Option<f64>Realised profit or loss for the confirmed deal, in profit_currency
profit_currency: Option<String>Currency in which profit is denominated (ISO code, for example GBP)
Trait Implementations§
Source§impl Clone for OrderConfirmationResponse
impl Clone for OrderConfirmationResponse
Source§fn clone(&self) -> OrderConfirmationResponse
fn clone(&self) -> OrderConfirmationResponse
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 OrderConfirmationResponse
impl Debug for OrderConfirmationResponse
Source§impl<'de> Deserialize<'de> for OrderConfirmationResponse
impl<'de> Deserialize<'de> for OrderConfirmationResponse
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 OrderConfirmationResponse
impl Display for OrderConfirmationResponse
Auto Trait Implementations§
impl Freeze for OrderConfirmationResponse
impl RefUnwindSafe for OrderConfirmationResponse
impl Send for OrderConfirmationResponse
impl Sync for OrderConfirmationResponse
impl Unpin for OrderConfirmationResponse
impl UnsafeUnpin for OrderConfirmationResponse
impl UnwindSafe for OrderConfirmationResponse
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