Skip to content

Leg Error State

A leg enters an error state when an order execution attempt at the exchange fails. Common reasons:

  • Order rejected by the exchange — insufficient margin, invalid order size, or the exchange rejected the order for an unspecified reason
  • Exchange connectivity failure — the exchange API was unreachable when the bot tried to place or close the order
  • API key permission issue — the API key does not have Futures Trading permission for the required order type

The leg FSM moves to the error state and stops trying to execute until the condition is resolved or the bot recovers.

Verify the exchange is operational. If the exchange experienced an outage, see Exchange Downtime.

Verify the API key has Futures Trading permission enabled. See API Key Rejected for the full diagnostic.

  1. In Dashboard > Pools View, locate the strategy with the leg in error state
  2. Use the strategy controls to retry or reset the leg (if the retry option is available in the current dashboard version)

If the root cause (exchange downtime, temporary API issue) has resolved, the bot will attempt to recover the leg on the next monitoring cycle without user action.

If the leg remains in error state after the exchange is confirmed operational and the API key permissions are correct, contact Aegis support. Include the error details from the dashboard activity log.