Enum ig_brokers::models::DealReason[][src]

pub enum DealReason {
Show variants AccountNotEnabledToTrading, AttachedOrderLevelError, AttachedOrderTrailingStopError, CannotChangeStopType, CannotRemoveStop, ClosingOnlyTradesAcceptedOnThisMarket, ClosingsOnlyAccount, ConflictingOrder, ContactSupportInstrumentError, CrSpacing, DuplicateOrderError, ExchangeManualOverride, ExpiryLessThanSprintMarketMinExpiry, FinanceRepeatDealing, ForceOpenOnSameMarketDifferentCurrency, GeneralError, GoodTillDateInThePast, InstrumentNotFound, InstrumentNotTradeableInThisCurrency, InsufficientFunds, LevelToleranceError, LimitOrderWrongSideOfMarket, ManualOrderTimeout, MarginError, MarketClosed, MarketClosedWithEdits, MarketClosing, MarketNotBorrowable, MarketOffline, MarketOrdersNotAllowedOnInstrument, MarketPhoneOnly, MarketRolled, MarketUnavailableToClient, MaxAutoSizeExceeded, MinimumOrderSizeError, MoveAwayOnlyLimit, MoveAwayOnlyStop, MoveAwayOnlyTriggerLevel, NcrPositionsOnCrAccount, OpposingDirectionOrdersNotAllowed, OpposingPositionsNotAllowed, OrderDeclined, OrderLocked, OrderNotFound, OrderSizeCannotBeFilled, OverNormalMarketSize, PartialyClosedPositionNotDeleted, PositionAlreadyExistsInOppositeDirection, PositionNotAvailableToCancel, PositionNotAvailableToClose, PositionNotFound, RejectCfdOrderOnSpreadbetAccount, RejectSpreadbetOrderOnCfdAccount, SizeIncrement, SprintMarketExpiryAfterMarketClose, StopOrLimitNotAllowed, StopRequiredError, StrikeLevelTolerance, Success, TrailingStopNotAllowed, Unknown, WrongSideOfMarket,
}

Variants

AccountNotEnabledToTrading
AttachedOrderLevelError
AttachedOrderTrailingStopError
CannotChangeStopType
CannotRemoveStop
ClosingOnlyTradesAcceptedOnThisMarket
ClosingsOnlyAccount
ConflictingOrder
ContactSupportInstrumentError
CrSpacing
DuplicateOrderError
ExchangeManualOverride
ExpiryLessThanSprintMarketMinExpiry
FinanceRepeatDealing
ForceOpenOnSameMarketDifferentCurrency
GeneralError
GoodTillDateInThePast
InstrumentNotFound
InstrumentNotTradeableInThisCurrency
InsufficientFunds
LevelToleranceError
LimitOrderWrongSideOfMarket
ManualOrderTimeout
MarginError
MarketClosed
MarketClosedWithEdits
MarketClosing
MarketNotBorrowable
MarketOffline
MarketOrdersNotAllowedOnInstrument
MarketPhoneOnly
MarketRolled
MarketUnavailableToClient
MaxAutoSizeExceeded
MinimumOrderSizeError
MoveAwayOnlyLimit
MoveAwayOnlyStop
MoveAwayOnlyTriggerLevel
NcrPositionsOnCrAccount
OpposingDirectionOrdersNotAllowed
OpposingPositionsNotAllowed
OrderDeclined
OrderLocked
OrderNotFound
OrderSizeCannotBeFilled
OverNormalMarketSize
PartialyClosedPositionNotDeleted
PositionAlreadyExistsInOppositeDirection
PositionNotAvailableToCancel
PositionNotAvailableToClose
PositionNotFound
RejectCfdOrderOnSpreadbetAccount
RejectSpreadbetOrderOnCfdAccount
SizeIncrement
SprintMarketExpiryAfterMarketClose
StopOrLimitNotAllowed
StopRequiredError
StrikeLevelTolerance
Success
TrailingStopNotAllowed
Unknown
WrongSideOfMarket

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.