Error codes
Saxo API error codes
143 decoded error codes for Saxo OpenAPI. Each page gives the exact error text and what it means. 59 of them carry a fix or a next step, and each of those rows is marked Fix recorded. Where the source gives no remedy, the page says so.
Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.
Streaming messages
4 codes
On the streaming connection, not in an HTTP reply.
_Fix recorded A control message on a streaming connection.disconnect _Fix recorded A control message on a streaming connection.resetsubscriptions SubscriptionPermanentlyDisabledFix recorded A heartbeat reason on a streaming subscription.SubscriptionTemporarilyDisabledFix recorded A heartbeat reason on a streaming subscription.
HTTP 400
129 codes
ActiveFollowerCannotDoManualTradeOpening or closing a position is not allowed on an active strategy account.AlgoOrderTimeBeforeExchangeOpenFix recorded An algo order parameter carries a time before the exchange opens.AmountBelowMinimumLotSizeFix recorded The order size is below the exchange's minimum lot size.AmountCannotBeLessThanFilledAmountFix recorded The amount cannot be less than the amount already filled.AmountNotInLotSizeFix recorded The order size is not a valid lot size for the exchange.BlocksExistForOwnedContractsA block exists for the owned contract.BreakoutUpPriceCannotBeLessThanDownPriceFix recorded The breakout up price cannot be less than the down price.BrokerOptionSaxo's page describes this code only with the words Broker Option.CashAmountLessThanMinInitialInvestmentAmountThe cash amount must be at least the minimum investment amount.ClientCountrySanctionedThe user is disabled from trading because their country is sanctioned.ClientExposureLimitationThe trade would take the client past an exposure limitation.ClientNotEnabledForExtendedTradingHoursThe client is not enabled for trading in extended trading hours.ClientOnReduceForcedExposureReductionViolationThe client is in the Reduce group type, so exposure cannot be increased.ClosingPositionNotAllowedForMultiDayExecutionOrderFix recorded A position that came from a multi-day order execution does not support an explicit closing order.ClosingPositionNotAllowedOnJointExecutionModelClosing a position is not allowed for Trade Leaders.ConditionDurationNotSupportedThe condition's duration is not supported for this asset type.ConditionOnWrongSideOfMarketThe condition price is on the wrong side of the market.ConditionPriceExceedsAggressiveToleranceThe condition price is beyond the aggressive tolerance.ConditionTooFarFromMarketThe condition's limit price is too far from the market.ContactExposureLimitationThe trade would take exposure past the cap set at contact level.CouldNotCompleteRequestThe operation could not be completed and Saxo will not disclose why.CrossCurrencyOrderOnMarginLendingAccountNotAllowedA cross currency order is not supported on a MarginLending account.DealCaptureAllocationKeyNotCorrectThe deal capture allocation key is not correct.DealCaptureInformationNotCorrectThe deal capture information is not correct.DomainValidationErrorFix recorded Domain validation of the request failed.DurationNotSupportedFix recorded The duration supplied is not supported for this order.ExpirationDateInPastFix recorded The expiration date is in the past.ExpirationDateRequiredFix recorded An expiration date is mandatory for this type of order request.ExplicitCloseNotAllowedForIntradayNettingClosing a position explicitly is not allowed when real-time netting is enabled.ExtendedHoursTradingCannotBeChangedThe value for extended trading hours cannot be changed.FeatureNotEnabledAn OpenAPI feature has been disabled through Saxo's Front Office.ForcedExposureReductionViolationA forced exposure reduction rule would be broken.ForceOpenNotAllowedForce open is not allowed.ForwardDateInPastFix recorded The forward date is in the past.ForwardDateRequiredFix recorded A forward date is mandatory.GtdOrderCannotBeLaterThanExpiryFix recorded A good till date order cannot run later than the instrument's expiry.HTTP 400Fix recorded Saxo rejected the request as sent: it was malformed or it broke a business rule.IllegalAccountFix recorded The account is illegal for this request.IllegalAmountFix recorded The amount is illegal for this request.IllegalAssetTypeFix recorded The asset type is illegal for this request.IllegalDateFix recorded A date in the request is illegal.IllegalInstrumentIdFix recorded The instrument is unknown.IllegalRequestThe request type is not supported.IllegalStrikeFix recorded The strike price is illegal.IncorrectValuationTypeAndNettingMethodAn order that combines a yield based valuation type with the average netting method cannot be placed.InstrumentDisabledForTradingTrading is disabled for the instrument.InstrumentForcedExposureReductionViolationExposure cannot be increased because of the instrument's configuration.InstrumentHasExpiredThe instrument has expired.InstrumentNotAllowedThe account is not allowed to trade this instrument.InstrumentNotSupportedForExtendedHoursExtended trading hours are not configured for the instrument.InsufficientCashFix recorded Saxo lists InsufficientCash among the 400 codes on its page for placing an order: the account does not hold enough cash for the order as sent.InsufficientCash_There is not enough cash to make the trade.CausedByOvernightAddOn InternalTimeoutA timeout happened inside Saxo's application.InvalidAcceptLanguageHeaderFix recorded The Accept-Language header contains a language that is not valid, or is malformed.InvalidAllocationKeyUsedFix recorded The order or trade was placed with an allocation key that is marked inactive or deleted.InvalidMediaTypeHeaderFix recorded The Accept or Content-Type header contains a media type that is not valid, or is malformed.InvalidModelStateFix recorded One or more properties of the request are not valid.InvalidOrderRelationThe order relation is not valid.InvalidQueryParametersFix recorded Query parameters sent to a query endpoint are not valid.InvalidRequestFix recorded The default error code when Saxo cannot tell which part of the request is malformed.InvalidRequestHeaderFix recorded One or more request headers are not valid, and Saxo cannot say which one.InvalidUicFix recorded The Uic is not valid, or was not specified at all.InvalidValueDateFix recorded The value date is not valid.LimitTooFarFromStopThe limit price is too far away from the stop price.MarketClosedFix recorded Saxo lists MarketClosed among the 400 codes on its page for placing an order: the instrument is not trading at the moment the order arrived.NotOwnedThe request tries to sell contracts that are not owned.NotPrimarySessionThe operation is not allowed because the session is not in Primary session mode.NotSuitableThe order was rejected because the instrument is not currently suitable for the client, or because a suitability test has not been taken.NotTradableAtPresentThe instrument is not tradable at present.OnlyLimitOrderAllowedForExtendedHoursFix recorded An extended hours order must have the order type limit.OnlySidedReductionAllowedOnly a sided reduction of exposure is allowed.OnWrongSideOfMarketThe order price is on the wrong side of the market.OptionExerciseAfterCutoffExercise is not allowed after the exercise cut-off time, or on the last trading day or later.OptionExerciseNotAllowedDueExDateOfUpcomingCorporateActionOnInstrumentOption exercise is not allowed on the day before the expiry date of an upcoming corporate action on the instrument.OrderCommandPendingFix recorded The order request is waiting for broker confirmation, which is still possible.OrderCommandTimeoutFix recorded The order request timed out.OrderExceedsMarketLimitUpDownToleranceThe order price is beyond the current price limits on the market.OrderIsRestrictedForAccountManagementTypeThe order is restricted for this account management type.OrderNotFoundFix recorded The order id requested was not found.OrderNotPlacedFix recorded The order was not placed because another order in the same request was rejected.OrderNotSupportedForAccountTypeThe order is not supported for a MarginLending account.OrderPriceOutsideLimitThe price is too far from the market.OrderRejectedByBrokerThe order was rejected by the broker.OrderRelatedPositionIsClosedThe related position is already closed.OrderRelatedPositionMissMatchThe order does not match its related position.OrderRequestAfterLastTradingDateThe instrument's last trading date has passed.OrderSizeGreaterThanMaximumAllowedFix recorded The order size is greater than the maximum order size allowed.OrderTypeNotSupportedFix recorded The order type is not supported.OrderValueTooLargeThe order value is too large.OrderValueToSmallFix recorded The order value must be above the minimum order value for the exchange.OtherErrorFix recorded A catch-all for a long collection of order errors that each occur very seldom.PriceExceedsAggressiveToleranceThe price is beyond the aggressive tolerance.PriceHasMovedThe price has moved.PriceNotInTickSizeIncrementsFix recorded The order price is not in tick size increments.RelatedOrClosingOrderNotAllowedForIntradayNettingClientsOrders related to a position are not allowed when real-time netting is enabled.RelatedOrderNotAllowedForInstrumentRelated orders are not supported for this instrument.RelatedOrderNotAllowedForIpoRelated orders are not supported for an eIPO.RelatedOrderNotAllowedForShortLivedRelated orders are not supported for short lived orders.RelatedOrderNotAllowedOnChildOrderRelated orders are not allowed on allocated child orders.RelatedOrderNotAllowedOnMultiLegPartialFilledA related order is not allowed on a partially filled multi-leg position.RelatedOrderNotAllowedOnTrailingStopOrderRelated orders are not allowed on a trailing stop order.RelatedPositionAlreadyHasImplicitClosingOrdersThe related position already has implicit closing orders.RelatedPositionAlreadyHasRelatedOrdersThe related position already has related orders.RelatedPositionAlreadyHasRelatedOrderTypeThe related position already has a related order of this type.RelatedPositionNotFoundFix recorded The related position was not found.RepeatTradeOnAutoQuoteA repeated trade on an auto quote.RequestNotAllowedThe request is not allowed.ReservedByShortContractOptionsThe instrument cannot be sold because it is reserved by short contract options.SellExceedsSettledExposureSelling on day T is capped at the end of day position of day T minus 1.SellOrdersAlreadyExistForOwnedContractsThe contracts are owned, but sell orders already exist for them.ShortTradeDisabledShort trading is disabled for the instrument selected.SubscriptionLimitExceededFix recorded The session already holds the maximum number of subscriptions allowed for the type requested.TooCloseToMarketThe guaranteed stop is too close to the market.TooCloseToOcoRelatedOrderPriceThe order price is too close to the price of its OCO related order.TooFarFromEntryOrderThe order price is too far from the entry order.TooFarFromMarketThe limit price is too far from the market.ToOpenNotAllowedOnInstrumentIncreasing exposure is not allowed on this adjusted option class.TradingDisabledTrading is disabled for the client.TradingOnNonFundedAccountThe investment account in the request is not available on this platform.TypeConversionErrorFix recorded A value in the request could not be converted to the type the endpoint expects.UnsupportedSubscriptionFormatFix recorded The subscription asked for a format that the publisher does not support.WouldComeTooCloseToAccountValueProtectionLimitA precheck found that the trade would come too close to the account value protection limit.WouldExceedAccountValueProtectionLimitThe trade would go past the account value protection limit.WouldExceedMarginFix recorded Saxo lists WouldExceedMargin among the 400 codes on its page for placing an order: the order would take the account past its margin allowance.WouldExceedMarginCeilingThe trade would go past the margin ceiling.WouldExceedMaxCreditLineThe trade would use more than the available maximum credit (collateral) line.WouldExceedMaxCreditLineLimitThe trade would go past the cap on the available maximum credit (collateral) line.WouldExceedTradingLineThe trade would go past the trading line limits.WrongSideOfRelatedOrderThe order price is on the wrong side of its related order.
HTTP 403
1 code
HTTP 404
1 code
HTTP 409
1 code
HTTP 426
1 code
HTTP 500
1 code
No HTTP status recorded
1 code
How to cite this
Saxo API error codes. Broker API Hub, https://openbrokerapi.com/errors/saxo, newest check .
Where you rely on a single figure, cite the source and the checked date printed beside it as well.