ProtoOAErrorCode
* Error code ENUM.
Fields
public const ProtoOAErrorCode AccountNotAuthorized
value = ProtoOAErrorCode.AccountNotAuthorized
When account is not authorized.
public const ProtoOAErrorCode AlreadyLoggedIn
value = ProtoOAErrorCode.AlreadyLoggedIn
When client tries to authorize after it was already authorized.
public const ProtoOAErrorCode AlreadySubscribed
value = ProtoOAErrorCode.AlreadySubscribed
When subscription is requested for an active.
public const ProtoOAErrorCode ChAccessTokenInvalid
value = ProtoOAErrorCode.ChAccessTokenInvalid
Access token is invalid.
public const ProtoOAErrorCode ChannelIsBlocked
value = ProtoOAErrorCode.ChannelIsBlocked
Operations are not allowed for this account.
public const ProtoOAErrorCode ChClientAlreadyAuthenticated
value = ProtoOAErrorCode.ChClientAlreadyAuthenticated
Client is trying to authenticate twice.
public const ProtoOAErrorCode ChClientAuthFailure
value = ProtoOAErrorCode.ChClientAuthFailure
Open API client is not activated or wrong client credentials.
public const ProtoOAErrorCode ChClientNotAuthenticated
value = ProtoOAErrorCode.ChClientNotAuthenticated
When a command is sent for not authorized Open API client.
public const ProtoOAErrorCode ChCtidTraderAccountNotFound
value = ProtoOAErrorCode.ChCtidTraderAccountNotFound
Trading account is not found.
public const ProtoOAErrorCode ChOaClientNotFound
value = ProtoOAErrorCode.ChOaClientNotFound
Could not find this client id.
public const ProtoOAErrorCode ChServerNotReachable
value = ProtoOAErrorCode.ChServerNotReachable
Trading service is not available.
public const ProtoOAErrorCode ConnectionsLimitExceeded
value = ProtoOAErrorCode.ConnectionsLimitExceeded
Limit of connections is reached for this Open API client.
public const ProtoOAErrorCode IncorrectBoundaries
value = ProtoOAErrorCode.IncorrectBoundaries
When requested period (from,to) is too large or invalid values are set to from/to.
public const ProtoOAErrorCode MaxExposureReached
value = ProtoOAErrorCode.MaxExposureReached
Max exposure limit is reached for a {trader, symbol, side}.
public const ProtoOAErrorCode NotEnoughMoney
value = ProtoOAErrorCode.NotEnoughMoney
Not enough funds to allocate margin.
public const ProtoOAErrorCode NotSubscribedToSpots
value = ProtoOAErrorCode.NotSubscribedToSpots
Pricing
public const ProtoOAErrorCode OaAuthTokenExpired
value = ProtoOAErrorCode.OaAuthTokenExpired
Authorization
public const ProtoOAErrorCode OrderNotFound
value = ProtoOAErrorCode.OrderNotFound
Order not found.
public const ProtoOAErrorCode PendingExecution
value = ProtoOAErrorCode.PendingExecution
Unable to apply changes as position has an order under execution.
public const ProtoOAErrorCode PositionLocked
value = ProtoOAErrorCode.PositionLocked
Position in the state that does not allow to perform an operation.
public const ProtoOAErrorCode PositionNotFound
value = ProtoOAErrorCode.PositionNotFound
Position not found.
public const ProtoOAErrorCode PositionNotOpen
value = ProtoOAErrorCode.PositionNotOpen
When trying to close a position that it is not open.
public const ProtoOAErrorCode ProtectionIsTooCloseToMarket
value = ProtoOAErrorCode.ProtectionIsTooCloseToMarket
Invalid protection prices.
public const ProtoOAErrorCode RequestFrequencyExceeded
value = ProtoOAErrorCode.RequestFrequencyExceeded
General
public const ProtoOAErrorCode RetAccountDisabled
value = ProtoOAErrorCode.RetAccountDisabled
When account is disabled.
public const ProtoOAErrorCode RetNoSuchLogin
value = ProtoOAErrorCode.RetNoSuchLogin
When such account no longer exists.
public const ProtoOAErrorCode ServerIsUnderMaintenance
value = ProtoOAErrorCode.ServerIsUnderMaintenance
Server is under maintenance.
public const ProtoOAErrorCode ShortSellingNotAllowed
value = ProtoOAErrorCode.ShortSellingNotAllowed
Short selling is not allowed.
public const ProtoOAErrorCode SymbolHasHoliday
value = ProtoOAErrorCode.SymbolHasHoliday
Trading disabled because symbol has holiday.
public const ProtoOAErrorCode SymbolNotFound
value = ProtoOAErrorCode.SymbolNotFound
Symbol not found.
public const ProtoOAErrorCode TooManyPositions
value = ProtoOAErrorCode.TooManyPositions
Trading account reached its limit for max number of open positions and orders.
public const ProtoOAErrorCode TradingBadExpirationDate
value = ProtoOAErrorCode.TradingBadExpirationDate
Invalid expiration.
public const ProtoOAErrorCode TradingBadPrices
value = ProtoOAErrorCode.TradingBadPrices
Invalid price (e.g. negative).
public const ProtoOAErrorCode TradingBadStake
value = ProtoOAErrorCode.TradingBadStake
Invalid stake volume (e.g. negative).
public const ProtoOAErrorCode TradingBadStops
value = ProtoOAErrorCode.TradingBadStops
Invalid stop price.
public const ProtoOAErrorCode TradingBadVolume
value = ProtoOAErrorCode.TradingBadVolume
Invalid volume.
public const ProtoOAErrorCode TradingDisabled
value = ProtoOAErrorCode.TradingDisabled
Trading is blocked for the symbol.
public const ProtoOAErrorCode TradingNotAllowed
value = ProtoOAErrorCode.TradingNotAllowed
Trading account is in read only mode.
public const ProtoOAErrorCode UnableToAmendOrder
value = ProtoOAErrorCode.UnableToAmendOrder
Unable to amend order.
public const ProtoOAErrorCode UnableToCancelOrder
value = ProtoOAErrorCode.UnableToCancelOrder
Unable to cancel order.
public const ProtoOAErrorCode UnknownSymbol
value = ProtoOAErrorCode.UnknownSymbol
Note: to be merged with SYMBOL_NOT_FOUND.
public const ProtoOAErrorCode WorseGslNotAllowed
value = ProtoOAErrorCode.WorseGslNotAllowed
Not allowed to increase risk for Positions with Guaranteed Stop Loss.