Create a V3 or V4 LP position
npx skills add uniswap/uniswap-ai --skill liquidity-plannerPlan LP positions with deep links. Works with Claude Code, Cursor, and other AI coding tools.
Authorization
x-api-keystringrequiredheaderBody
application/jsonwalletAddressstringrequiredchainIdenumrequireddefault:1The unique ID of the blockchain. For a list of supported chains see the FAQ.
protocolenumrequiredThe protocol of the pool.
slippageTolerancenumberSlippage tolerance as a decimal (e.g., 0.5 for 0.5%).
deadlineintegerUnix timestamp after which the transaction will revert.
simulateTransactionbooleanIf true, the response will include the gas fee.
urgencyenumThe urgency level for gas price estimation. Higher urgency results in higher gas price and faster transaction inclusion. Defaults to URGENT if not provided.
signaturestringThe signed permit.
nativeTokenBalancestringThe wallet's native token balance, used for wrapping calculations when one of the tokens is the native token.
Response
Create V3/V4 position successful.
requestIdstringrequiredA unique ID for the request.
token0objectrequiredA token with its address and amount, used in LP operations.
token1objectrequiredA token with its address and amount, used in LP operations.
adjustedMinPricestringrequiredThe actual minimum price after tick adjustment.
adjustedMaxPricestringrequiredThe actual maximum price after tick adjustment.
tickLowerintegerrequiredThe adjusted lower tick.
tickUpperintegerrequiredThe adjusted upper tick.
createobjectrequiredgasFeestringThe total estimated gas cost of this transaction (eg. gasLimit multiplied by maxFeePerGas) in the base unit of the chain.
/lp/createcurl --request POST \
--url 'https://liquidity.api.uniswap.org/lp/create' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"walletAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"chainId": 1,
"protocol": "<enum>",
"independentToken": "<object>",
"slippageTolerance": 0.5
}'{ "requestId": "<string>", "token0": { "tokenAddress": "<string>", "amount": "<string>" }, "token1": { "tokenAddress": "<string>", "amount": "<string>" }, "adjustedMinPrice": "<string>", "adjustedMaxPrice": "<string>", "tickLower": "<number>", "tickUpper": "<number>", "create": { "to": "<string>", "from": "<string>", "data": "<string>", "value": "<string>", "gasLimit": "<string>", "chainId": "<number>", "maxFeePerGas": "<string>", "maxPriorityFeePerGas": "<string>", "gasPrice": "<string>" }, "gasFee": "<string>"}