POST
/
lp
/
increase
Increase LP position calldata
curl --request POST \
  --url https://trade-api.gateway.uniswap.org/v1/lp/increase \
  --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
  },
  "poolLiquidity": "<string>",
  "currentTick": 123,
  "sqrtRatioX96": "<string>",
  "walletAddress": "<string>",
  "chainId": 1,
  "amount0": "<string>",
  "amount1": "<string>",
  "independentAmount": "<string>",
  "independentToken": "TOKEN_0",
  "defaultDependentAmount": "<string>",
  "slippageTolerance": 123,
  "deadline": 123,
  "signature": "<string>",
  "batchPermitData": {
    "domain": {},
    "values": {},
    "types": {}
  },
  "simulateTransaction": true
}'
{
  "requestId": "<string>",
  "increase": {
    "to": "<string>",
    "from": "<string>",
    "data": "<string>",
    "value": "<string>",
    "gasLimit": "<string>",
    "chainId": 1,
    "maxFeePerGas": "<string>",
    "maxPriorityFeePerGas": "<string>",
    "gasPrice": "<string>"
  },
  "gasFee": "<string>",
  "dependentAmount": "<string>",
  "poolLiquidity": "<string>",
  "currentTick": 123,
  "sqrtRatioX96": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
protocol
enum<string>

The protocol to use for the swap/order.

Available options:
V2,
V3,
V4,
UNISWAPX_V2,
UNISWAPX_V3
tokenId
number
position
object
poolLiquidity
string

The amount of liquidity in the pool at a given tick. For more information see the Uniswap V3 Whitepaper.

currentTick
number

The current tick of the pool. For more information see the Uniswap V3 Whitepaper.

sqrtRatioX96
string

The square root of the ratio of the token0 and token1 in the pool, as a Q64.64 number. For more information see the Uniswap V3 Whitepaper.

walletAddress
string
chainId
enum<number>

The unique ID of the blockchain. For a list of supported chains see the FAQ.

Available options:
1,
10,
56,
130,
137,
324,
480,
1868,
8453,
10143,
42161,
42220,
43114,
81457,
7777777,
1301,
84532,
11155111
amount0
string

The quantity of tokens denominated in the token's base units. (For example, for an ERC20 token one token is 1x10^18 base units. For one USDC token one token is 1x10^6 base units.) This value must be greater than 0.

amount1
string

The quantity of tokens denominated in the token's base units. (For example, for an ERC20 token one token is 1x10^18 base units. For one USDC token one token is 1x10^6 base units.) This value must be greater than 0.

independentAmount
string

The quantity of tokens denominated in the token's base units. (For example, for an ERC20 token one token is 1x10^18 base units. For one USDC token one token is 1x10^6 base units.) This value must be greater than 0.

independentToken
enum<string>
Available options:
TOKEN_0,
TOKEN_1
defaultDependentAmount
string

The quantity of tokens denominated in the token's base units. (For example, for an ERC20 token one token is 1x10^18 base units. For one USDC token one token is 1x10^6 base units.) This value must be greater than 0.

slippageTolerance
number
deadline
number

The unix timestamp at which the order will be reverted if not filled.

signature
string

The signed permit.

batchPermitData
object

the permit2 message object for the customer to sign to permit spending by the permit2 contract.

simulateTransaction
boolean

Response

Create LP Position successful.

requestId
string

A unique ID for the request.

increase
object
gasFee
string

The total estimated gas cost of this transaction (eg. gasLimit multiplied by maxFeePerGas) in the base unit of the chain.

dependentAmount
string

The quantity of tokens denominated in the token's base units. (For example, for an ERC20 token one token is 1x10^18 base units. For one USDC token one token is 1x10^6 base units.) This value must be greater than 0.

poolLiquidity
string

The amount of liquidity in the pool at a given tick. For more information see the Uniswap V3 Whitepaper.

currentTick
number

The current tick of the pool. For more information see the Uniswap V3 Whitepaper.

sqrtRatioX96
string

The square root of the ratio of the token0 and token1 in the pool, as a Q64.64 number. For more information see the Uniswap V3 Whitepaper.