The following error codes represent failed internal validation of trading actions - e.g. no trading volume specified - before trying to pass them to the broker's back-end system.
| | Description |
| TR_INVALIDJOBDEFINITION | Invalid request definition for a trading job (generally invalid, rather than a problem such as |
| TR_BADINSTRUMENT | Unrecognised or missing |
| TR_BELOWMINIMUMVOLUME | Specified volume is below the minimum for the market |
| TR_CANTUSEBREAKEVENONPENDING | Attempt to set break-even exit on a pending order rather than an open trade |
| TR_TRADESLWRONGSIDEOFBID | Stop-loss on an open buy trade is the wrong side of the current (bid) price |
| TR_TRADESLWRONGSIDEOFASK | Stop-loss on an open sell trade is the wrong side of the current (ask) price |
| TR_TRADETPWRONGSIDEOFBID | Take-profit on an open buy trade is the wrong side of the current (bid) price |
| TR_TRADETPWRONGSIDEOFASK | Take-profit on an open sell trade is the wrong side of the current (ask) price |
| TR_ORDERSLWRONGSIDEOFBUYENTRY | Stop-loss on a pending buy order is the wrong side of the entry price for the order |
| TR_ORDERSLWRONGSIDEOFSELLENTRY | Stop-loss on a pending sell order is the wrong side of the entry price for the order |
| TR_ORDERTPWRONGSIDEOFBUYENTRY | Take-profit on a pending buy order is the wrong side of the entry price for the order |
| TR_ORDERTPWRONGSIDEOFSELLENTRY | Take-profit on a pending sell order is the wrong side of the entry price for the order |
| TR_ACCOUNTREADONLY | Access to the trading account is read-only and trading is not permitted (Account.accountReadOnly = true) |
| TR_UNEXPECTEDTRADINGACTION | Unexpected trading action, such as trying to close an order ID which identifies a credit record on the account rather than an order or trade |
| TR_INTERNALERROR | Unexpected internal trading error |
| TR_NOVOLUME | No volume specified on trading request |
| TR_NOENTRYPRICE | No entry price specified for a new pending order |
| TR_NEEDSLWITHRISKVOLUME | Risk-based trading volume, such as {cashRisk: x}, requires a stop-loss |
| TR_CANTHAVERISKVOLUMEANDSL | Can't set both the volume and stop-loss to cash/risk based values; one of them must be an absolute value rather than a cash-based value such as |
| TR_PARTIALCLOSENOEFFECT | Requested partial close will have effect. For example, a percentage-based partial close where the resulting volume is less than the minimum trading increment for the market. |
| TR_PARTIALCLOSEISFULLCLOSE | Requested partial close will execute a full close. (For example: volume is 10K, minimum trading increment is 1K; a request for a 95% close gets rounded up to 10K) |
| TR_PARTIALCLOSENOTMULTIPLE | Requested volume for a partial close is not a multiple of the minimum trading increment on the market (e.g. closing 5K on a market where the minimum volume is 10K) |
| TR_AMBIGUOUSENTRYOFFSET | Can't use price offsets for the entry where the tradingAction is BUY_ |
| TR_NOCANDLEDATAFORCOMMAND | Unable to get the candle data required for a trading action |
| TR_RRRWITHNOSTOPLOSS | Can't use an rrr value for the take-profit unless a stop-loss is specified. |