#[non_exhaustive]pub enum MarketOrderMarginCloseoutReason {
MarginCheckViolation,
RegulatoryMarginCallViolation,
RegulatoryMarginCheckViolation,
Unknown(String),
}Expand description
The reason that the Market Order was created to perform a margin closeout
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MarginCheckViolation
Trade closures resulted from violating OANDA’s margin policy
RegulatoryMarginCallViolation
Trade closures came from a margin closeout event resulting from regulatory conditions placed on the Account’s margin call
RegulatoryMarginCheckViolation
Trade closures resulted from violating the margin policy imposed by regulatory requirements
Unknown(String)
An unrecognized provider value, preserved for forward compatibility.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MarketOrderMarginCloseoutReason
impl<'de> Deserialize<'de> for MarketOrderMarginCloseoutReason
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MarketOrderMarginCloseoutReason
impl StructuralPartialEq for MarketOrderMarginCloseoutReason
Auto Trait Implementations§
impl Freeze for MarketOrderMarginCloseoutReason
impl RefUnwindSafe for MarketOrderMarginCloseoutReason
impl Send for MarketOrderMarginCloseoutReason
impl Sync for MarketOrderMarginCloseoutReason
impl Unpin for MarketOrderMarginCloseoutReason
impl UnsafeUnpin for MarketOrderMarginCloseoutReason
impl UnwindSafe for MarketOrderMarginCloseoutReason
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