Development Guides

Trade Error Messages

In some cases, Eclipse APIs return trade errors just as a set of Id/Argument pairs in JSON. Those will look like this:

{
    "error": [
        {
            "tradeId": 0,
            "errorMessageId": 14,
            "errorMessageArguments": "1834502;3/15/2024 4:48:49 PM"
        },
        {
            "tradeId": 0,
            "errorMessageId": 93,
            "errorMessageArguments": ""
        }
    ]
}

The the meaningful part of the errors are a set of templates the UI uses to make them human readable. Using response data above, you can use the reference tables below to determine the actual error.

Each error has a severity level, an error code, and a message. The errorMessageId above corresponds to a message template below.

Trade Error Severity Definition

Each message has a severity level of Info, Warning or Error, defined as follows:

severityIdseverityLevel
1Info
2Warning
3Error
Trade Error Severity Levels

Trade Error Messages Definition

Error data in the response can be decoded by cross referencing the errorMessageId in the JSON to the table below. The placeholders in the template are resolved by applying the contents of errorMessageArguments in the order given to the errorMessage template. Using the sample at the top of this page, that gives you 2 errors:

Warning: Possible duplicate order – id 1834502 created 3/15/2024 4:48:49 PM

Warning: Security Already Traded

errorMessageIdseverityIdcodeerrorMessage
13AccountNegativeValueAccount value is negative.
23ProductZeroPriceHolding ID {0} for stock_{1} is tradable, but has a price of $0.00.
32CashCash has an overage for the remaining sell amount, no trade needed.
43CashTargetGreaterThan100Cash target is greater than {100}%. Check minimum cash settings. Target is {369.23531315399}%.
52BuyAsset_PurchaseOnlyFrom asset is in ‘Hard Close’ status
62SellAsset_HardCloseFrom asset is in ‘Hard Close’ status
72SellAssetPurchaseOnlyFrom asset is in ‘Purchase Only’ status
82SellAsset_SellOnlyFrom asset is in ‘Sell Only’ status
92SellAsset_SoftCloseWhen an equivalent ticker is traded put the reason the primary ticker was skipped.
103AccountNoModelModel record does not exist.
113InvalidModelAllocationModel {0} does not add up to {100}%. Check model and exclusions.
123NoAssetsNo assets found for portfolio ID {0}.
132Trade file errorNo Trade file assigned; some exchange formats are not compatible with TOM.
142Possible DuplicatePossible duplicate order – id {0} created {1}
152ShortTermFeesShort Term Fee
162SWDSWD
172BuyAssetHardCloseTo asset is in ‘Hard Close’ status
182BuyAssetSellOnlyTo asset is in ‘Sell Only’ status
192BuyAsset_SoftCloseTo asset is in ‘Soft Close’ status
202BuyAssetSoftCloseNotOwnedTo asset is in ‘Soft Close’ status
213TradeBlockedAssetBuyTrade blocked: buy
223TradeBlockedAssetSellTrade blocked: sell
233TradeBlockedAccountTrading blocked.
242TradeAmountMoreThe requested trade amount is more than what is available. The value is {0}.
252OverspendCashThe selected buy amount will overspend cash.  The current cash value is {0} and reserve cash is {1}
262ODisabledOrder is disabled due to the security being excluded at account level.
272NoCashNot enough cash for account id
282RPercentResulting percentage will be
292ReserveCReserve cash preference leaves available cash at $0
302AvailableCAvailable Cash is $0
312COverspentCash was overspent due to the Full Trade selection
323PZeroPriceSecurity has $0 price or no price.
333BlockedBuyWhen a trade tool creates an excluded holding.
343BlockedSellWhen a trade tool creates an excluded holding.
352SmaAccountSMA account is not tradable
363TRADE_DISCARDTrade discarded – {0}
383MinimumTradePercentMinimum Trade Percent is more than the target Percent
393MinimumTradeDollarMinimum Trade Dollar is more than the target Amount
403BuyMinimumTradePercentBuy percent is less than the min percent trade limit set
413BuyMaximumTradeDollarBuy trade dollar is more than the max amount limit set
423SellMinimumTradePercentSell trade percent is less than the min percent trade limit set
433SellMaximumTradePercentSell trade percent is more than the max percent trade limit set
443BuyMaximumTradePercentBuy trade percent is more than the max percent trade limit set
453SellMaximumTradeDollarSell trade dollar is more than the max amount limit set
463TransactionCostLimitTransaction cost is more than the limit set
472DoNotTradePortfolioThis portfolio is not tradable
482NotEnoughCashNot enough cash for account id {0}. Resulting percentage will be {1}%
493ExcludedForSellThis security is excluded for sell
503ExcludedForBuyThis security is excluded for buy
513ShortTermLossDo not trade due to short term loss
523WashSaleDo not trade due to wash sale
533MinTransactionAmountTrade value is less then the minimum transaction amount
543MaxTransactionAmountTrade value is more then the maximum transaction amount
553MinTransactionPercentTrade value is less then the minimum transaction percent
563MaxTransactionPercentTrade value is more then the maximum transaction percent
573BuyPriorityThe buy security is not tradable
583SellPriorityThe sell security is not tradable
603SecurityExcludedHoldingThis security is with excluded holding
613MinimumInitialBuyMinimum Initial Buy amout is more then the input price
623AllowShortTermGainAllow short term gain
632FullCashNotSpentUnable to spend full amount requested. ${0} has been spent of the requested ${1}.
642FullCashNotRaisedUnable to raise full amount requested. ${0} has been raised of the requested ${1}.
653RestrictedPlanSecurity is not in the restricted Plan
662CusipSecurity Cusip is blank
673TacticalRebalanceUnselectedSecurityOrder is disabled due to security un-selected during Tactical Rebalance.
681MAX_GAIN_AMOUNTMax Capital Gain Amount has been reached.
692MaxGainAmountPortfolio max gain and carry forward loss amount of {0} has been reached on your portfolio, current gain loss of trades is potentially ${1}. Please adjust trades as needed.
703PossibleStalePricePossible stale price (last price : {0})
712WashSaleWarningThis trade will cause wash sale
722TradesOnHoldThis account has trades on hold which are updating the account’s pending value. Please review the trades on hold dashboard for more information.
732RedemptionFeePenaltyThis trade has a potential redemption fee penalty, please review prior to execution
742AccountTradeBlockedAccount is trade blocked
752RealTimePriceErrorReal Time prices not applied due to retrieval error
763RoundingSharesTrade could not be generated Rounding for {0} = {1}; trade rounded to 0 shares, no trade generated.
773PortfolioNotFoundPortfolio {0} not found.
783AccountNotFoundAccount {0} not found.
793AccountNotActiveAccount {0} is not active.
803SecurityNotFoundSecurity {0} not found.
813PositionNotFoundPosition {0} not found.
823TradeWithZeroAmountAccount {0}, Security {1}.
832AmountGreaterThanValueAmount requested is greater than account value
842Aggregated_TradeDeleted due to the trade aggregation in tactical
852ExpiredOptionContract expired on {0} and cannot be traded on {1}.
863OverCloseOptionOver closing contract {0}.
872SystematicWithdrawalThis account has a systematic withdrawal setup. The next one is for {0} on {1}.
882SystematicPurchaseThis account has a systematic purchase setup. The next one is for {0} on {1}.
892PortfolioCashNegativeCreating further trades will make portfolio cash negative.
902ReduceTradeAmountToTotalCashReducing the trade amount to total cash available in sleeved portfolio i.e. {0}.
912UnsettledLotSoldTrade has sold unsettled lots.
922PortfolioCashBelowMinimumThresholdFurther buy trades will bring portfolio cash below its minimum cash threshold.
932SecurityAlreadyTradedSecurity Already Traded
942SweepCashNegativeTotal cash post trade is positive but sweep cash is negative ${0}.
953ViolatesMinInitialInvestmentAmountTrade amount is less than initial investment amount for money market funds.
963MoneyMarketTradingDisabledMoney market trading preference is off.
972MaxShortTermGainPortfolio max short term gain and carry forward loss amount of {0} has been reached on your portfolio, current short term gain loss of trades is potentially ${1}. Please adjust trades as needed.
Trade Error Messages