Uniswap · Schema

DecreasePositionRequest

DecreasePositionRequest schema from Uniswap Trading API

BlockchainCryptocurrencyDeFiDecentralized ExchangeLiquiditySwaps

Properties

Name Type Description
walletAddress object
chainId object
protocol object
token0Address object
token1Address object
nftTokenId string The NFT token ID for V3/V4 positions. Not required for V2.
liquidityPercentageToDecrease integer The percentage of liquidity to remove (1-100).
slippageTolerance number Slippage tolerance as a decimal (e.g., 0.5 for 0.5%).
deadline integer Unix timestamp after which the transaction will revert.
simulateTransaction boolean If true, the response will include the gas fee.
withdrawAsWeth boolean If true, native tokens will be withdrawn as WETH instead of unwrapping to ETH.
urgency object
View JSON Schema on GitHub

JSON Schema

uniswap-decrease-position-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/uniswap/refs/heads/main/json-schema/uniswap-decrease-position-request-schema.json",
  "title": "DecreasePositionRequest",
  "description": "DecreasePositionRequest schema from Uniswap Trading API",
  "type": "object",
  "properties": {
    "walletAddress": {
      "$ref": "#/components/schemas/Address"
    },
    "chainId": {
      "$ref": "#/components/schemas/ChainId"
    },
    "protocol": {
      "$ref": "#/components/schemas/ProtocolItems"
    },
    "token0Address": {
      "$ref": "#/components/schemas/Address"
    },
    "token1Address": {
      "$ref": "#/components/schemas/Address"
    },
    "nftTokenId": {
      "type": "string",
      "description": "The NFT token ID for V3/V4 positions. Not required for V2."
    },
    "liquidityPercentageToDecrease": {
      "type": "integer",
      "description": "The percentage of liquidity to remove (1-100)."
    },
    "slippageTolerance": {
      "type": "number",
      "description": "Slippage tolerance as a decimal (e.g., 0.5 for 0.5%)."
    },
    "deadline": {
      "type": "integer",
      "description": "Unix timestamp after which the transaction will revert."
    },
    "simulateTransaction": {
      "type": "boolean",
      "description": "If true, the response will include the gas fee."
    },
    "withdrawAsWeth": {
      "type": "boolean",
      "description": "If true, native tokens will be withdrawn as WETH instead of unwrapping to ETH."
    },
    "urgency": {
      "$ref": "#/components/schemas/GasUrgency"
    }
  },
  "required": [
    "walletAddress",
    "chainId",
    "protocol",
    "token0Address",
    "token1Address",
    "liquidityPercentageToDecrease"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/uniswap-decrease-position-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.