Skip to content

Remove Liquidity

POST
/liquidity/remove

Remove liquidity from a pool.

Authorizations

Request Body required

object
poolId
required

UUID of the pool to remove liquidity from

string format: uuid
walletId
required

UUID of the wallet withdrawing the liquidity

string format: uuid
lpTokenAmount
required

Amount of LP tokens to burn

string

Responses

200

Liquidity removed successfully

object
transactionId

UUID of the transaction

string format: uuid
poolId

UUID of the pool

string format: uuid
walletId

UUID of the wallet that performed the action

string format: uuid
type

Whether liquidity was added or removed

string
Allowed values: add remove
token0Amount

Amount of token0 added or removed

string
token1Amount

Amount of token1 added or removed

string
lpTokenAmount

Amount of LP tokens minted or burned

string
status

Current state of the transaction

string
Allowed values: pending completed failed
timestamp

When the transaction was initiated

string format: date-time

400

Bad Request

object
code
integer
400
message
string
Bad Request
details
string
Invalid input parameters