Skip to main content
POST
/
lp
/
decrease
Decrease LP position calldata
curl --request POST \
  --url https://trade-api.gateway.uniswap.org/v1/lp/decrease \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "protocol": "V2",
  "tokenId": 123,
  "position": {
    "pool": {
      "token0": "<string>",
      "token1": "<string>",
      "fee": 123,
      "tickSpacing": 123,
      "hooks": "<string>"
    },
    "tickLower": 123,
    "tickUpper": 123
  },
  "walletAddress": "<string>",
  "chainId": 1,
  "liquidityPercentageToDecrease": 123,
  "liquidity0": "<string>",
  "liquidity1": "<string>",
  "slippageTolerance": 123,
  "poolLiquidity": "<string>",
  "currentTick": 123,
  "sqrtRatioX96": "<string>",
  "positionLiquidity": "<string>",
  "expectedTokenOwed0RawAmount": "<string>",
  "expectedTokenOwed1RawAmount": "<string>",
  "collectAsWETH": true,
  "deadline": 123,
  "simulateTransaction": true
}'
{
  "requestId": "<string>",
  "decrease": {
    "to": "<string>",
    "from": "<string>",
    "data": "<string>",
    "value": "<string>",
    "gasLimit": "<string>",
    "chainId": 1,
    "maxFeePerGas": "<string>",
    "maxPriorityFeePerGas": "<string>",
    "gasPrice": "<string>"
  },
  "gasFee": "<string>",
  "poolLiquidity": "<string>",
  "currentTick": 123,
  "sqrtRatioX96": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
protocol
enum<string>
Available options:
V2,
V3,
V4,
UNISWAPX,
UNISWAPX_V2,
UNISWAPX_V3
tokenId
number
position
object
walletAddress
string
chainId
enum<number>
Available options:
1,
10,
56,
130,
137,
324,
480,
1868,
8453,
10143,
42161,
42220,
43114,
81457,
7777777,
1301,
84532,
11155111,
143
liquidityPercentageToDecrease
number
liquidity0
string
liquidity1
string
slippageTolerance
number
poolLiquidity
string
currentTick
number
sqrtRatioX96
string
positionLiquidity
string
expectedTokenOwed0RawAmount
string
expectedTokenOwed1RawAmount
string
collectAsWETH
boolean
deadline
number
simulateTransaction
boolean

Response

requestId
string
decrease
object
gasFee
string
poolLiquidity
string
currentTick
number
sqrtRatioX96
string