Swap tokens in a pool
POST /v2/liquidity/swap
Execute a token swap operation in a specific liquidity pool.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”API Key
API Secret
Request Body required
Section titled “Request Body required ”object
UUID of the pool to swap tokens in
UUID of the wallet performing the swap
Amount of input tokens to swap
Direction of the swap (true = token0 to token1, false = token1 to token0)
Minimum amount of output tokens to receive (slippage protection)
Maximum allowed slippage in basis points (e.g., 50 = 0.5%)
Responses
Section titled “ Responses ”Swap executed successfully
object
UUID of the swap transaction
UUID of the pool where the swap occurred
UUID of the wallet that performed the swap
Input token (token0 or token1)
Output token (token0 or token1)
Symbol of the input token
Symbol of the output token
Amount of input token swapped
Amount of output token received
Minimum amount of output token expected
Price impact of the swap as a percentage
Status of the swap transaction
Timestamp of the swap transaction
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error