ProtoOAErrorCode

StockSharp.cTrader.Native.Model

* Error code ENUM.

Fields

AccountNotAuthorized
public const ProtoOAErrorCode AccountNotAuthorized
value = ProtoOAErrorCode.AccountNotAuthorized

When account is not authorized.

AlreadyLoggedIn
public const ProtoOAErrorCode AlreadyLoggedIn
value = ProtoOAErrorCode.AlreadyLoggedIn

When client tries to authorize after it was already authorized.

AlreadySubscribed
public const ProtoOAErrorCode AlreadySubscribed
value = ProtoOAErrorCode.AlreadySubscribed

When subscription is requested for an active.

ChAccessTokenInvalid
public const ProtoOAErrorCode ChAccessTokenInvalid
value = ProtoOAErrorCode.ChAccessTokenInvalid

Access token is invalid.

ChannelIsBlocked
public const ProtoOAErrorCode ChannelIsBlocked
value = ProtoOAErrorCode.ChannelIsBlocked

Operations are not allowed for this account.

ChClientAlreadyAuthenticated
public const ProtoOAErrorCode ChClientAlreadyAuthenticated
value = ProtoOAErrorCode.ChClientAlreadyAuthenticated

Client is trying to authenticate twice.

ChClientAuthFailure
public const ProtoOAErrorCode ChClientAuthFailure
value = ProtoOAErrorCode.ChClientAuthFailure

Open API client is not activated or wrong client credentials.

ChClientNotAuthenticated
public const ProtoOAErrorCode ChClientNotAuthenticated
value = ProtoOAErrorCode.ChClientNotAuthenticated

When a command is sent for not authorized Open API client.

ChCtidTraderAccountNotFound
public const ProtoOAErrorCode ChCtidTraderAccountNotFound
value = ProtoOAErrorCode.ChCtidTraderAccountNotFound

Trading account is not found.

ChOaClientNotFound
public const ProtoOAErrorCode ChOaClientNotFound
value = ProtoOAErrorCode.ChOaClientNotFound

Could not find this client id.

ChServerNotReachable
public const ProtoOAErrorCode ChServerNotReachable
value = ProtoOAErrorCode.ChServerNotReachable

Trading service is not available.

ConnectionsLimitExceeded
public const ProtoOAErrorCode ConnectionsLimitExceeded
value = ProtoOAErrorCode.ConnectionsLimitExceeded

Limit of connections is reached for this Open API client.

IncorrectBoundaries
public const ProtoOAErrorCode IncorrectBoundaries
value = ProtoOAErrorCode.IncorrectBoundaries

When requested period (from,to) is too large or invalid values are set to from/to.

MaxExposureReached
public const ProtoOAErrorCode MaxExposureReached
value = ProtoOAErrorCode.MaxExposureReached

Max exposure limit is reached for a {trader, symbol, side}.

NoQuotes
public const ProtoOAErrorCode NoQuotes
value = ProtoOAErrorCode.NoQuotes

Trading

NotEnoughMoney
public const ProtoOAErrorCode NotEnoughMoney
value = ProtoOAErrorCode.NotEnoughMoney

Not enough funds to allocate margin.

NotSubscribedToSpots
public const ProtoOAErrorCode NotSubscribedToSpots
value = ProtoOAErrorCode.NotSubscribedToSpots

Pricing

OaAuthTokenExpired
public const ProtoOAErrorCode OaAuthTokenExpired
value = ProtoOAErrorCode.OaAuthTokenExpired

Authorization

OrderNotFound
public const ProtoOAErrorCode OrderNotFound
value = ProtoOAErrorCode.OrderNotFound

Order not found.

PendingExecution
public const ProtoOAErrorCode PendingExecution
value = ProtoOAErrorCode.PendingExecution

Unable to apply changes as position has an order under execution.

PositionLocked
public const ProtoOAErrorCode PositionLocked
value = ProtoOAErrorCode.PositionLocked

Position in the state that does not allow to perform an operation.

PositionNotFound
public const ProtoOAErrorCode PositionNotFound
value = ProtoOAErrorCode.PositionNotFound

Position not found.

PositionNotOpen
public const ProtoOAErrorCode PositionNotOpen
value = ProtoOAErrorCode.PositionNotOpen

When trying to close a position that it is not open.

ProtectionIsTooCloseToMarket
public const ProtoOAErrorCode ProtectionIsTooCloseToMarket
value = ProtoOAErrorCode.ProtectionIsTooCloseToMarket

Invalid protection prices.

RequestFrequencyExceeded
public const ProtoOAErrorCode RequestFrequencyExceeded
value = ProtoOAErrorCode.RequestFrequencyExceeded

General

RetAccountDisabled
public const ProtoOAErrorCode RetAccountDisabled
value = ProtoOAErrorCode.RetAccountDisabled

When account is disabled.

RetNoSuchLogin
public const ProtoOAErrorCode RetNoSuchLogin
value = ProtoOAErrorCode.RetNoSuchLogin

When such account no longer exists.

ServerIsUnderMaintenance
public const ProtoOAErrorCode ServerIsUnderMaintenance
value = ProtoOAErrorCode.ServerIsUnderMaintenance

Server is under maintenance.

ShortSellingNotAllowed
public const ProtoOAErrorCode ShortSellingNotAllowed
value = ProtoOAErrorCode.ShortSellingNotAllowed

Short selling is not allowed.

SymbolHasHoliday
public const ProtoOAErrorCode SymbolHasHoliday
value = ProtoOAErrorCode.SymbolHasHoliday

Trading disabled because symbol has holiday.

SymbolNotFound
public const ProtoOAErrorCode SymbolNotFound
value = ProtoOAErrorCode.SymbolNotFound

Symbol not found.

TooManyPositions
public const ProtoOAErrorCode TooManyPositions
value = ProtoOAErrorCode.TooManyPositions

Trading account reached its limit for max number of open positions and orders.

TradingBadExpirationDate
public const ProtoOAErrorCode TradingBadExpirationDate
value = ProtoOAErrorCode.TradingBadExpirationDate

Invalid expiration.

TradingBadPrices
public const ProtoOAErrorCode TradingBadPrices
value = ProtoOAErrorCode.TradingBadPrices

Invalid price (e.g. negative).

TradingBadStake
public const ProtoOAErrorCode TradingBadStake
value = ProtoOAErrorCode.TradingBadStake

Invalid stake volume (e.g. negative).

TradingBadStops
public const ProtoOAErrorCode TradingBadStops
value = ProtoOAErrorCode.TradingBadStops

Invalid stop price.

TradingBadVolume
public const ProtoOAErrorCode TradingBadVolume
value = ProtoOAErrorCode.TradingBadVolume

Invalid volume.

TradingDisabled
public const ProtoOAErrorCode TradingDisabled
value = ProtoOAErrorCode.TradingDisabled

Trading is blocked for the symbol.

TradingNotAllowed
public const ProtoOAErrorCode TradingNotAllowed
value = ProtoOAErrorCode.TradingNotAllowed

Trading account is in read only mode.

UnableToAmendOrder
public const ProtoOAErrorCode UnableToAmendOrder
value = ProtoOAErrorCode.UnableToAmendOrder

Unable to amend order.

UnableToCancelOrder
public const ProtoOAErrorCode UnableToCancelOrder
value = ProtoOAErrorCode.UnableToCancelOrder

Unable to cancel order.

UnknownSymbol
public const ProtoOAErrorCode UnknownSymbol
value = ProtoOAErrorCode.UnknownSymbol

Note: to be merged with SYMBOL_NOT_FOUND.

WorseGslNotAllowed
public const ProtoOAErrorCode WorseGslNotAllowed
value = ProtoOAErrorCode.WorseGslNotAllowed

Not allowed to increase risk for Positions with Guaranteed Stop Loss.