Uniswap Create a V3 or V4 LP position
Create a V3 or V4 LP position with the Uniswap API. The request takes a chain ID, an independent token and a protocol slug. Use it for on-chain or crypto market research. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Uniswap Create a V3 or V4 LP position
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
adjustedMaxPricestringadjustedMinPricestringcreateobjectchainIdintegerdatastringfromstringtostringvaluestring
requestIdstringtickLowerintegertickUpperintegertoken0objectamountstringtokenAddressstring
token1objectamountstringtokenAddressstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
adjustedMaxPrice?: string;
adjustedMinPrice?: string;
create?: {
chainId?: number;
data?: string;
from?: string;
to?: string;
value?: string;
};
requestId?: string;
tickLower?: number;
tickUpper?: number;
token0?: {
amount?: string;
tokenAddress?: string;
};
token1?: {
amount?: string;
tokenAddress?: string;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
uniswapCurrent Uniswap Create a V3 or V4 LP position · POST · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 5. Price update time: not supplied.
Total $0
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/uniswap/lp/create- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/uniswap/lp/create' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"chainId": 1,
"existingPool": {
"poolReference": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
"token0Address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"token1Address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
},
"independentToken": {
"amount": "1000000000000",
"tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
},
"protocol": "V3",
"simulateTransaction": false,
"tickBounds": {
"tickLower": 198680,
"tickUpper": 199880
},
"walletAddress": "0x0000000000000000000000000000000000000001"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
x-agent-info | Request headersheaders | string | No | Optional attribution hint for AI-agent traffic; send it if an AI agent built or operates your integration. The value is a JSON object with up to three fields: `decision_origin` (required, exactly `autonomous` or `human_mediated`, case-sensitive), `integration_name` (optional string naming your integration, e.g. `my-trading-bot`), and `version` (optional string identifying your integration's version). Any other key is dropped, never rejected. The raw value must be at most 1024 bytes of printable US-ASCII (`0x20`-`0x7E`), so send non-ASCII text as JSON `\u` escapes; `integration_name` and `version` are each limited to 256 UTF-16 code units and may not contain control characters, U+2028, U+2029, or U+FFFD. Send the header once: repeated header lines are joined with `, ` and the joined string is what gets parsed, so two complete objects fail as invalid JSON while a single object split across two lines still parses. The header is analytics-only and never affects the request: omitting it, sending it, or sending a value that fails these rules never changes the response status, body, or swap behavior. A value that fails to parse is dropped and reported by the `x-agent-info-status` response header. Never put a user ID, wallet address, email, session token, or API key in these fields. maxLength: 1024 |
batchPermitData | JSON request bodybody | any | No | |
chainId | JSON request bodybody | number | Yes | enum: 1, 10, 56, 130, 137, 143, 196, 324, 480, 1868, 4217, 4326, 4663, 5042, 8453, 10143, 42161, 42220, 43114, 57073, 59144, 81457, 99901, 7777777, 1301, 84532, 11155111 |
deadline | JSON request bodybody | integer | No | |
dependentToken | JSON request bodybody | any | No | |
existingPool | JSON request bodybody | any | No | |
independentToken | JSON request bodybody | any | Yes | |
nativeTokenBalance | JSON request bodybody | string | No | |
newPool | JSON request bodybody | any | No | |
priceBounds | JSON request bodybody | any | No | |
protocol | JSON request bodybody | string | Yes | enum: "V3", "V4" |
signature | JSON request bodybody | string | No | |
simulateTransaction | JSON request bodybody | boolean | No | |
slippageTolerance | JSON request bodybody | number | No | |
tickBounds | JSON request bodybody | any | No | |
urgency | JSON request bodybody | string | No | enum: "NORMAL", "FAST", "URGENT" |
walletAddress | JSON request bodybody | string | Yes | pattern: ^0x[0-9a-fA-F]{40}$ |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"adjustedMaxPrice": "478899186.497490725040209042147410307798882827",
"adjustedMinPrice": "424748023.94245869427363911544176984350218397",
"create": {
"chainId": 1,
"data": "0x88316456000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000308180000000000000000000000000000000000000000000000000000000000030cc8000000000000000000000000000000000000000000000000000000000000087d000000000000000000000000000000000000000000000000000000e8d324ce1d00000000000000000000000000000000000000000000000000000000000004ee00000000000000000000000000000000000000000000000000000086aea6ac2f0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000006ae4153e",
"from": "0x0000000000000000000000000000000000000001",
"to": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
"value": "0x00"
},
"requestId": "95edb23f-d78b-4a7d-8c92-3d01b4d40865",
"tickLower": 198680,
"tickUpper": 199880,
"token0": {
"amount": "2173",
"tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"token1": {
"amount": "1000000000000",
"tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Uniswap Create a V3 or V4 LP position
Create a V3 or V4 LP position with the Uniswap API. The request takes a chain ID, an independent token and a protocol slug. Use it for on-chain or crypto market research. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
Documentation: https://openany.si/apis/8600d0c4-06c4-4421-b0f0-8d1f0ae99726
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/uniswap/lp/create
Price: $0 / call
Provider: uniswap
Contract revision: 5
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/uniswap/lp/create' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"chainId": 1,
"existingPool": {
"poolReference": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
"token0Address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"token1Address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
},
"independentToken": {
"amount": "1000000000000",
"tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
},
"protocol": "V3",
"simulateTransaction": false,
"tickBounds": {
"tickLower": 198680,
"tickUpper": 199880
},
"walletAddress": "0x0000000000000000000000000000000000000001"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Uniswap Create a V3 or V4 LP position",
"endpoint": "https://api.openany.si/v1/agent-apis/uniswap/lp/create",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Optional attribution hint for AI-agent traffic; send it if an AI agent built or operates your integration. The value is a JSON object with up to three fields: `decision_origin` (required, exactly `autonomous` or `human_mediated`, case-sensitive), `integration_name` (optional string naming your integration, e.g. `my-trading-bot`), and `version` (optional string identifying your integration's version). Any other key is dropped, never rejected. The raw value must be at most 1024 bytes of printable US-ASCII (`0x20`-`0x7E`), so send non-ASCII text as JSON `\\u` escapes; `integration_name` and `version` are each limited to 256 UTF-16 code units and may not contain control characters, U+2028, U+2029, or U+FFFD. Send the header once: repeated header lines are joined with `, ` and the joined string is what gets parsed, so two complete objects fail as invalid JSON while a single object split across two lines still parses. The header is analytics-only and never affects the request: omitting it, sending it, or sending a value that fails these rules never changes the response status, body, or swap behavior. A value that fails to parse is dropped and reported by the `x-agent-info-status` response header. Never put a user ID, wallet address, email, session token, or API key in these fields.",
"location": "header",
"max_length": 1024,
"name": "x-agent-info",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Complete public Uniswap request body. Internal fields are prohibited. Source-only annotations are kept in the raw OpenAPI snapshot.",
"json_schema": {
"allOf": [
{
"oneOf": [
{
"required": [
"existingPool"
]
},
{
"required": [
"newPool"
]
}
]
},
{
"oneOf": [
{
"required": [
"priceBounds"
]
},
{
"required": [
"tickBounds"
]
}
]
}
],
"description": "Complete public Uniswap request body. Internal fields are prohibited. Source-only annotations are kept in the raw OpenAPI snapshot.",
"properties": {
"batchPermitData": {
"allOf": [
{
"properties": {
"domain": {
"type": "object"
},
"types": {
"type": "object"
},
"values": {
"type": "object"
}
},
"type": [
"object",
"null"
]
}
]
},
"chainId": {
"enum": [
1,
10,
56,
130,
137,
143,
196,
324,
480,
1868,
4217,
4326,
4663,
5042,
8453,
10143,
42161,
42220,
43114,
57073,
59144,
81457,
99901,
7777777,
1301,
84532,
11155111
],
"type": "number"
},
"deadline": {
"type": "integer"
},
"dependentToken": {
"allOf": [
{
"properties": {
"amount": {
"type": "string"
},
"tokenAddress": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"tokenAddress",
"amount"
],
"type": "object"
}
]
},
"existingPool": {
"allOf": [
{
"properties": {
"poolReference": {
"type": "string"
},
"token0Address": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"token1Address": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"token0Address",
"token1Address",
"poolReference"
],
"type": "object"
}
]
},
"independentToken": {
"allOf": [
{
"properties": {
"amount": {
"type": "string"
},
"tokenAddress": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"tokenAddress",
"amount"
],
"type": "object"
}
]
},
"nativeTokenBalance": {
"type": "string"
},
"newPool": {
"allOf": [
{
"properties": {
"fee": {
"type": "integer"
},
"hooks": {
"allOf": [
{
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
]
},
"initialPrice": {
"type": "string"
},
"tickSpacing": {
"type": "integer"
},
"token0Address": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"token1Address": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"token0Address",
"token1Address",
"fee",
"tickSpacing",
"initialPrice"
],
"type": "object"
}
]
},
"priceBounds": {
"allOf": [
{
"properties": {
"maxPrice": {
"type": "string"
},
"minPrice": {
"type": "string"
}
},
"required": [
"minPrice",
"maxPrice"
],
"type": "object"
}
]
},
"protocol": {
"enum": [
"V3",
"V4"
],
"type": "string"
},
"signature": {
"type": "string"
},
"simulateTransaction": {
"type": "boolean"
},
"slippageTolerance": {
"type": "number"
},
"tickBounds": {
"allOf": [
{
"properties": {
"tickLower": {
"type": "integer"
},
"tickUpper": {
"type": "integer"
}
},
"required": [
"tickLower",
"tickUpper"
],
"type": "object"
}
]
},
"urgency": {
"enum": [
"NORMAL",
"FAST",
"URGENT"
],
"type": "string"
},
"walletAddress": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"walletAddress",
"chainId",
"protocol",
"independentToken"
],
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Recorded success 2026-10-30 (historical)",
"request": {
"body": {
"chainId": 1,
"existingPool": {
"poolReference": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
"token0Address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"token1Address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
},
"independentToken": {
"amount": "1000000000000",
"tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
},
"protocol": "V3",
"simulateTransaction": false,
"tickBounds": {
"tickLower": 198680,
"tickUpper": 199880
},
"walletAddress": "0x0000000000000000000000000000000000000001"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"adjustedMaxPrice": "478899186.497490725040209042147410307798882827",
"adjustedMinPrice": "424748023.94245869427363911544176984350218397",
"create": {
"chainId": 1,
"data": "0x88316456000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000308180000000000000000000000000000000000000000000000000000000000030cc8000000000000000000000000000000000000000000000000000000000000087d000000000000000000000000000000000000000000000000000000e8d324ce1d00000000000000000000000000000000000000000000000000000000000004ee00000000000000000000000000000000000000000000000000000086aea6ac2f0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000006ae4153e",
"from": "0x0000000000000000000000000000000000000001",
"to": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
"value": "0x00"
},
"requestId": "95edb23f-d78b-4a7d-8c92-3d01b4d40865",
"tickLower": 198680,
"tickUpper": 199880,
"token0": {
"amount": "2173",
"tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"token1": {
"amount": "1000000000000",
"tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Recorded success 2026-10-30 (historical)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 2
Review these request fields before running. Keep the published provider and request method unchanged.
x-agent-info- Optional attribution hint for AI-agent traffic; send it if an AI agent built or operates your integration. The value is a JSON object with up to three fields: `decision_origin` (required, exactly `autonomous` or `human_mediated`, case-sensitive), `integration_name` (optional string naming your integration, e.g. `my-trading-bot`), and `version` (optional string identifying your integration's version). Any other key is dropped, never rejected. The raw value must be at most 1024 bytes of printable US-ASCII (`0x20`-`0x7E`), so send non-ASCII text as JSON `\u` escapes; `integration_name` and `version` are each limited to 256 UTF-16 code units and may not contain control characters, U+2028, U+2029, or U+FFFD. Send the header once: repeated header lines are joined with `, ` and the joined string is what gets parsed, so two complete objects fail as invalid JSON while a single object split across two lines still parses. The header is analytics-only and never affects the request: omitting it, sending it, or sending a value that fails these rules never changes the response status, body, or swap behavior. A value that fails to parse is dropped and reported by the `x-agent-info-status` response header. Never put a user ID, wallet address, email, session token, or API key in these fields.
body- Complete public Uniswap request body. Internal fields are prohibited. Source-only annotations are kept in the raw OpenAPI snapshot.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/uniswap/lp/create' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "chainId": 1, "existingPool": { "poolReference": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640", "token0Address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "token1Address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" }, "independentToken": { "amount": "1000000000000", "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" }, "protocol": "V3", "simulateTransaction": false, "tickBounds": { "tickLower": 198680, "tickUpper": 199880 }, "walletAddress": "0x0000000000000000000000000000000000000001" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "adjustedMaxPrice": "478899186.497490725040209042147410307798882827", "adjustedMinPrice": "424748023.94245869427363911544176984350218397", "create": { "chainId": 1, "data": "0x88316456000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000308180000000000000000000000000000000000000000000000000000000000030cc8000000000000000000000000000000000000000000000000000000000000087d000000000000000000000000000000000000000000000000000000e8d324ce1d00000000000000000000000000000000000000000000000000000000000004ee00000000000000000000000000000000000000000000000000000086aea6ac2f0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000006ae4153e", "from": "0x0000000000000000000000000000000000000001", "to": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", "value": "0x00" }, "requestId": "95edb23f-d78b-4a7d-8c92-3d01b4d40865", "tickLower": 198680, "tickUpper": 199880, "token0": { "amount": "2173", "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" }, "token1": { "amount": "1000000000000", "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" } }