Error Codes
When an order is rejected or an action fails, AEX returns an error code with a description. This reference lists common errors and their resolutions.
Order Errors
| Error | Description | Resolution |
|---|---|---|
| INSUFFICIENT_CREDIT | Your entity does not have enough credit to cover this order | Reduce order size or request a credit limit increase from your counterparty |
| INVALID_PRICE | Price is outside acceptable bounds | Check the price and ensure it is a valid positive number in tick-size increments |
| INVALID_QUANTITY | Quantity is zero, negative, or exceeds limits | Enter a valid positive quantity within allowed limits |
| SESSION_CLOSED | The market is not accepting orders | Wait for the next trading session to open |
| SESSION_HALTED | Trading has been temporarily halted | Wait for the administrator to resume the market |
| CONTRACT_EXPIRED | The selected contract has expired | Choose an active contract with a future delivery period |
| DUPLICATE_ORDER | An identical order was recently submitted | Check your Order List; the previous order may still be active |
Connection Errors
| Error | Description | Resolution |
|---|---|---|
| WS_DISCONNECTED | WebSocket connection lost | Check your network; the client reconnects automatically |
| AUTH_EXPIRED | Authentication token has expired | Sign in again to refresh your session |
| AUTH_FAILED | Authentication credentials invalid | Verify your credentials or contact your administrator |
Credit Errors
| Error | Description | Resolution |
|---|---|---|
| LIMIT_EXISTS | A credit limit already exists for this counterparty | Edit the existing limit instead of creating a new one |
| APPROVAL_REQUIRED | This action requires approval from a counterparty | Wait for the counterparty to approve the request |
| NOT_AUTHORISED | You do not have permission for this action | Contact your administrator to verify your role assignment |
tip
If you encounter an error not listed here, check the Event Log for additional context or contact your administrator.