Uniswap · JSON Structure

Uniswap Limit Order Quote Request Structure

JSON Structure for LimitOrderQuoteRequest from Uniswap Trading API

Type: Properties: 0
BlockchainCryptocurrencyDeFiDecentralized ExchangeLiquiditySwaps

Uniswap Limit Order Quote Request Structure is a JSON Structure definition published by Uniswap. It conforms to the https://json-schema.org/draft/2020-12/schema meta-schema.

Meta-schema: https://json-schema.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "LimitOrderQuoteRequest Structure",
  "description": "JSON Structure for LimitOrderQuoteRequest from Uniswap Trading API",
  "structure": {
    "type": "object",
    "properties": {
      "swapper": {
        "type": "string",
        "description": "The wallet address which will receive the token."
      },
      "limitPrice": {
        "type": "string"
      },
      "amount": {
        "type": "string",
        "description": "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."
      },
      "orderDeadline": {
        "type": "number"
      },
      "type": {
        "type": "string",
        "description": "The handling of the `amount` field. `EXACT_INPUT` means the requester will send the specified `amount` of input tokens and get a quote with a variable quantity of output tokens. `EXACT_OUTPUT` means the requester will receive the specified `amount` of output tokens and get a quote with a variable quantity of input tokens.",
        "enum": [
          "EXACT_INPUT",
          "EXACT_OUTPUT"
        ]
      },
      "tokenIn": {
        "type": "string",
        "description": "The token which will be sent, specified by its token address. For a list of supported tokens, see the [FAQ](https://api-docs.uniswap.org/guides/faqs)."
      },
      "tokenOut": {
        "type": "string",
        "description": "The token which will be received, specified by its token address. For a list of supported tokens, see the [FAQ](https://api-docs.uniswap.org/guides/faqs)."
      },
      "tokenInChainId": {
        "type": "number",
        "description": "The unique ID of the blockchain. For a list of supported chains see the [FAQ](https://api-docs.uniswap.org/guides/faqs)."
      },
      "tokenOutChainId": {
        "type": "number",
        "description": "The unique ID of the blockchain. For a list of supported chains see the [FAQ](https://api-docs.uniswap.org/guides/faqs)."
      }
    },
    "required": [
      "swapper",
      "type",
      "amount",
      "tokenIn",
      "tokenOut",
      "tokenInChainId",
      "tokenOutChainId"
    ]
  }
}