Limit Order Engine
Onyx will support on-chain limit orders. A limit order lets you set a target price and execute a swap automatically when the market reaches it.
How it works
You choose the token pair, side (buy or sell), amount, and a target price.
Your order is created on-chain and remains open until it is filled or you cancel it.
When the AMM pool price reaches your target, the limit order becomes executable and is filled automatically by the engine.
Execution and pricing
A limit order triggers based on the pool price at execution time.
The final fill depends on available liquidity and may be impacted by price movement during execution (slippage).
Last updated