[][src]Enum fxoanda_definitions::OrderCancelReason

pub enum OrderCancelReason {
    InternalServerError,
    AccountLocked,
    AccountNewPositionsLocked,
    AccountOrderCreationLocked,
    AccountOrderFillLocked,
    ClientRequest,
    Migration,
    MarketHalted,
    LinkedTradeClosed,
    TimeInForceExpired,
    InsufficientMargin,
    FifoViolation,
    BoundsViolation,
    ClientRequestReplaced,
    InsufficientLiquidity,
    TakeProfitOnFillGtdTimestampInPast,
    TakeProfitOnFillLoss,
    LosingTakeProfit,
    StopLossOnFillGtdTimestampInPast,
    StopLossOnFillLoss,
    StopLossOnFillPriceDistanceMaximumExceeded,
    StopLossOnFillRequired,
    StopLossOnFillGuaranteedRequired,
    StopLossOnFillGuaranteedNotAllowed,
    StopLossOnFillGuaranteedMinimumDistanceNotMet,
    StopLossOnFillGuaranteedLevelRestrictionExceeded,
    StopLossOnFillGuaranteedHedgingNotAllowed,
    StopLossOnFillTimeInForceInvalid,
    StopLossOnFillTriggerConditionInvalid,
    TakeProfitOnFillPriceDistanceMaximumExceeded,
    TrailingStopLossOnFillGtdTimestampInPast,
    ClientTradeIdAlreadyExists,
    PositionCloseoutFailed,
    OpenTradesAllowedExceeded,
    PendingOrdersAllowedExceeded,
    TakeProfitOnFillClientOrderIdAlreadyExists,
    StopLossOnFillClientOrderIdAlreadyExists,
    TrailingStopLossOnFillClientOrderIdAlreadyExists,
    PositionSizeExceeded,
    HedgingGsloViolation,
    AccountPositionValueLimitExceeded,
    InstrumentBidReduceOnly,
    InstrumentAskReduceOnly,
    InstrumentBidHalted,
    InstrumentAskHalted,
    StopLossOnFillGuaranteedBidHalted,
    StopLossOnFillGuaranteedAskHalted,
}

The reason that an Order was cancelled.

Variants

InternalServerErrorAccountLockedAccountNewPositionsLockedAccountOrderCreationLockedAccountOrderFillLockedClientRequestMigrationMarketHaltedLinkedTradeClosedTimeInForceExpiredInsufficientMarginFifoViolationBoundsViolationClientRequestReplacedInsufficientLiquidityTakeProfitOnFillGtdTimestampInPastTakeProfitOnFillLossLosingTakeProfitStopLossOnFillGtdTimestampInPastStopLossOnFillLossStopLossOnFillPriceDistanceMaximumExceededStopLossOnFillRequiredStopLossOnFillGuaranteedRequiredStopLossOnFillGuaranteedNotAllowedStopLossOnFillGuaranteedMinimumDistanceNotMetStopLossOnFillGuaranteedLevelRestrictionExceededStopLossOnFillGuaranteedHedgingNotAllowedStopLossOnFillTimeInForceInvalidStopLossOnFillTriggerConditionInvalidTakeProfitOnFillPriceDistanceMaximumExceededTrailingStopLossOnFillGtdTimestampInPastClientTradeIdAlreadyExistsPositionCloseoutFailedOpenTradesAllowedExceededPendingOrdersAllowedExceededTakeProfitOnFillClientOrderIdAlreadyExistsStopLossOnFillClientOrderIdAlreadyExistsTrailingStopLossOnFillClientOrderIdAlreadyExistsPositionSizeExceededHedgingGsloViolationAccountPositionValueLimitExceededInstrumentBidReduceOnlyInstrumentAskReduceOnlyInstrumentBidHaltedInstrumentAskHaltedStopLossOnFillGuaranteedBidHaltedStopLossOnFillGuaranteedAskHalted

Trait Implementations

impl Display for OrderCancelReason[src]

impl Debug for OrderCancelReason[src]

impl FromStr for OrderCancelReason[src]

type Err = ()

The associated error which can be returned from parsing.

impl Serialize for OrderCancelReason[src]

impl<'de> Deserialize<'de> for OrderCancelReason[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]