pub struct WorkingOrderData {Show 20 fields
pub deal_id: String,
pub direction: Direction,
pub epic: String,
pub order_size: f64,
pub order_level: f64,
pub time_in_force: TimeInForce,
pub good_till_date: Option<String>,
pub good_till_date_iso: Option<String>,
pub created_date: String,
pub created_date_utc: String,
pub guaranteed_stop: bool,
pub order_type: OrderType,
pub stop_distance: Option<f64>,
pub limit_distance: Option<f64>,
pub currency_code: String,
pub dma: bool,
pub limited_risk_premium: Option<f64>,
pub limit_level: Option<f64>,
pub stop_level: Option<f64>,
pub deal_reference: Option<String>,
}Expand description
Details of a working order
Fields§
§deal_id: StringUnique identifier for the deal
direction: DirectionDirection of the order (buy or sell)
epic: StringInstrument EPIC identifier
order_size: f64Size/quantity of the order
order_level: f64Price level for the order
time_in_force: TimeInForceTime in force for the order
good_till_date: Option<String>Expiry date for GTD orders
good_till_date_iso: Option<String>ISO formatted expiry date for GTD orders
created_date: StringDate and time when the order was created
created_date_utc: StringUTC date and time when the order was created
guaranteed_stop: boolWhether the order has a guaranteed stop
order_type: OrderTypeType of the order
stop_distance: Option<f64>Distance for stop loss
limit_distance: Option<f64>Distance for take profit
currency_code: StringCurrency code for the order
dma: boolWhether direct market access is enabled
Premium for limited risk
limit_level: Option<f64>Price level for take profit
stop_level: Option<f64>Price level for stop loss
deal_reference: Option<String>Client-generated reference for the deal
Trait Implementations§
Source§impl Clone for WorkingOrderData
impl Clone for WorkingOrderData
Source§fn clone(&self) -> WorkingOrderData
fn clone(&self) -> WorkingOrderData
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 moreSource§impl Debug for WorkingOrderData
impl Debug for WorkingOrderData
Source§impl<'de> Deserialize<'de> for WorkingOrderData
impl<'de> Deserialize<'de> for WorkingOrderData
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 WorkingOrderData
impl Display for WorkingOrderData
Auto Trait Implementations§
impl Freeze for WorkingOrderData
impl RefUnwindSafe for WorkingOrderData
impl Send for WorkingOrderData
impl Sync for WorkingOrderData
impl Unpin for WorkingOrderData
impl UnwindSafe for WorkingOrderData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.