pub struct OrderConfirmationResponse {Show 17 fields
pub date: String,
pub status: Status,
pub reason: Option<String>,
pub deal_id: Option<String>,
pub deal_reference: String,
pub deal_status: Option<String>,
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>,
}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<String>Status of the deal
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)
Trait Implementations§
Source§impl Clone for OrderConfirmationResponse
impl Clone for OrderConfirmationResponse
Source§fn clone(&self) -> OrderConfirmationResponse
fn clone(&self) -> OrderConfirmationResponse
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
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 UnwindSafe for OrderConfirmationResponse
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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>
Converts
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>
Converts
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.