trade

Estimate gas and impact for removing liquidity

Estimate gas and price impact for removing liquidity. Query params: token0, token1 (format: GALA$Unit$none$none), fee, tickLower, tickUpper, amount (the liquidity to remove), owner, optional positionId. Example: ?token0=GALA$Unit$none$none&token1=GUSDC$Unit$none$none&fee=3000&tickLower=-886800&tickUpper=886800&amount=1000&owner=eth|6742903677106B3156434F61f2731c3516B1aD68

get/v1/trade/remove-liq-estimate

Request

Query parameters

collectionstring required
categorystring required
typestring required
additionalKeystring required

First token in the pool (format: collection$category$type$additionalKey)

collectionstring required
categorystring required
typestring required
additionalKeystring required

Second token in the pool (format: collection$category$type$additionalKey)

fee500 | 3000 | 10000 required
Example:3000

Fee tier: 500 (0.05%), 3000 (0.3%), or 10000 (1%)

tickUppernumber required
tickLowernumber required
tickRangeCheckboolean
amountstring required
ownerstring required
Example:eth|6742903677106B3156434F61f2731c3516B1aD68

Owner wallet address (format: eth|<address> or client|<id>)

positionIdstring

Position ID (for existing positions)

Response

Successful response

statusnumber required
messagestring required
errorobject required
dataobject required

Changes

No recorded changes to this operation across all 1 revision of this API.