For the complete documentation index, see llms.txt. This page is also available as Markdown.

Slippage

AFX provides configurable slippage protection for Market Orders to safeguard traders against unfavorable price movements due to low liquidity or volatile market conditions.

How It Works

Slippage tolerance defines the maximum deviation from the current last traded price at which a Market Order can execute. Any portion of the order that would fill beyond the slippage boundary is automatically cancelled.

Execution price boundaries:

  • Long / Buy: Execution Price ≤ Last Price × (1 + Slippage %)

  • Short / Sell: Execution Price ≥ Last Price × (1 - Slippage %)

Configuration

  • Slippage is configured per trading pair, not globally.

  • Configurable range: 0.5% to 5% (in 0.1% increments).

  • Default value: 3%.

Important Notes

  • Slippage protection applies to opening positions only. Closing positions (including liquidation orders) are not subject to slippage limits, ensuring positions can always be fully closed.

  • If the order book depth is insufficient to fill the order within the slippage boundary, only the portion within the boundary will be executed. The remaining portion is cancelled (partial fill behavior).

Last updated