This endpoint allows users to preview the results of a swap before execution. It calculates the expected output amount, price impact, and fees without actually performing the swap or requiring any deposits.
The simulation:
Price impact measures how much the swap moves the pool price:
5%: High impact, consider splitting the trade
Simulations are read-only operations and don’t require authentication. Anyone can simulate swaps to explore pool rates.
pool_id
- LP public key of the poolasset_in_address
- Asset being providedasset_out_address
- Asset being receivedamount_in
- Amount to simulate swapping200 OK
with simulation results400 Bad Request
if pool or assets are invalid500 Internal Server Error
if simulation failsSwap simulation parameters including pool, assets, and amount
Request body for simulating a swap without executing it.
Simulation allows users to preview swap outcomes including expected output, price impact, and fees before committing to the transaction.
Simulation completed successfully
Response from swap simulation with expected outcomes.