{
  "openapi": "3.1.0",
  "info": {
    "title": "Ekubo API",
    "version": "0.0.1",
    "description": "API for querying data about Ekubo Protocol",
    "contact": {
      "url": "https://ekubo.org",
      "email": "eng@ekubo.org"
    }
  },
  "externalDocs": {
    "url": "https://docs.ekubo.org",
    "description": "Official documentation"
  },
  "servers": [
    {
      "url": "https://prod-api.ekubo.org",
      "description": "Production"
    }
  ],
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "HTTP status code for the error"
          },
          "error": {
            "type": "string",
            "description": "Human-readable description of the error"
          }
        },
        "required": [
          "status",
          "error"
        ],
        "description": "Standard error response payload",
        "example": {
          "status": 404,
          "error": "Token not found"
        }
      }
    },
    "parameters": {}
  },
  "paths": {
    "/tokens": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "List tokens",
        "description": "Get a list of tokens for the given chain ID",
        "operationId": "get_ListTokens",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32,
              "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]*$",
              "description": "Token symbol search"
            },
            "required": false,
            "description": "Token symbol search",
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 1000
            },
            "required": false,
            "name": "pageSize",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^(?:\\d+|0x[a-fA-F0-9]+):0x[a-fA-F0-9]+$",
              "description": "The :-concatenated chain ID and token address for pagination",
              "example": "1:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
            },
            "required": false,
            "description": "The :-concatenated chain ID and token address for pagination",
            "name": "afterToken",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": -100,
              "maximum": 100,
              "default": 0,
              "title": "Visibility Priority",
              "description": "Token visibility priority threshold"
            },
            "required": false,
            "description": "Token visibility priority threshold",
            "name": "minVisibilityPriority",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ],
              "default": "true",
              "description": "Set to false to omit usd_price from every row. The price-free list only changes when token metadata does, so it is cached for longer; pair it with /tokens/prices to keep prices fresh."
            },
            "required": false,
            "description": "Set to false to omit usd_price from every row. The price-free list only changes when token metadata does, so it is cached for longer; pair it with /tokens/prices to keep prices fresh.",
            "name": "includePrices",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "List of tokens",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "description": "Name of the token"
                          },
                          "symbol": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32,
                            "description": "Symbol for the token"
                          },
                          "decimals": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 78,
                            "description": "The number of decimals used for display of token balances"
                          },
                          "multiplier": {
                            "type": "string",
                            "pattern": "^\\d+(\\.\\d+)?$",
                            "description": "Display scale applied next to decimals, as an exact decimal string: one token (10^decimals raw units) is shown as this many units. Read from the token contract's uiMultiplier(), with a scheduled change applied from its effectiveAt(), such as a stock token's split ratio and compounded dividends. Amounts, prices and supplies elsewhere in the API stay per raw token: multiply an amount by it and divide a price by it to show them. \"1\" for tokens without one.",
                            "example": "1"
                          },
                          "address": {
                            "type": "string",
                            "description": "The address of the token for the specified chain"
                          },
                          "visibility_priority": {
                            "type": "integer",
                            "description": "How much this token should be surfaced relative to other tokens (higher is better)"
                          },
                          "sort_order": {
                            "type": "integer",
                            "description": "How much the token should prefer to be the numerator when displayed in prices (higher is more numerator-like)"
                          },
                          "total_supply": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0,
                            "description": "The total supply of the token in units of 10^decimals raw units, before the multiplier"
                          },
                          "logo_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "usd_price": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "minimum": 0,
                            "description": "The USD price for one unit of the token (10^decimals raw units), before the multiplier"
                          },
                          "bridgeInfos": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "bridge_address": {
                                  "type": "string",
                                  "description": "Token address for the destination chain"
                                },
                                "relationship": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "canonical_bridge",
                                    "native_issuer",
                                    "interoperability",
                                    "unknown",
                                    null
                                  ],
                                  "description": "How the destination token relates to this one: a copy minted by the canonical bridge, a deployment by the issuer itself, a version issued through an interoperability protocol such as LayerZero, or unknown. Null when not yet recorded"
                                },
                                "bridge_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Bridge, issuer or interoperability protocol, when known"
                                },
                                "source_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Source the link was taken from. Null when not yet recorded"
                                },
                                "source_url": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Location of that source. Null when not yet recorded"
                                },
                                "inferred_reverse": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ],
                                  "description": "True when this direction was mirrored from a one-way link in the source rather than read from it. Null when not yet recorded"
                                }
                              },
                              "required": [
                                "bridge_address",
                                "relationship",
                                "bridge_name",
                                "source_name",
                                "source_url",
                                "inferred_reverse"
                              ]
                            }
                          }
                        },
                        "required": [
                          "chain_id",
                          "name",
                          "symbol",
                          "decimals",
                          "multiplier",
                          "address",
                          "visibility_priority",
                          "sort_order",
                          "total_supply",
                          "usd_price",
                          "bridgeInfos"
                        ]
                      },
                      "description": "Array of tokens"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "description": "Name of the token"
                          },
                          "symbol": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32,
                            "description": "Symbol for the token"
                          },
                          "decimals": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 78,
                            "description": "The number of decimals used for display of token balances"
                          },
                          "multiplier": {
                            "type": "string",
                            "pattern": "^\\d+(\\.\\d+)?$",
                            "description": "Display scale applied next to decimals, as an exact decimal string: one token (10^decimals raw units) is shown as this many units. Read from the token contract's uiMultiplier(), with a scheduled change applied from its effectiveAt(), such as a stock token's split ratio and compounded dividends. Amounts, prices and supplies elsewhere in the API stay per raw token: multiply an amount by it and divide a price by it to show them. \"1\" for tokens without one.",
                            "example": "1"
                          },
                          "address": {
                            "type": "string",
                            "description": "The address of the token for the specified chain"
                          },
                          "visibility_priority": {
                            "type": "integer",
                            "description": "How much this token should be surfaced relative to other tokens (higher is better)"
                          },
                          "sort_order": {
                            "type": "integer",
                            "description": "How much the token should prefer to be the numerator when displayed in prices (higher is more numerator-like)"
                          },
                          "total_supply": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0,
                            "description": "The total supply of the token in units of 10^decimals raw units, before the multiplier"
                          },
                          "logo_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "bridgeInfos": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "bridge_address": {
                                  "type": "string",
                                  "description": "Token address for the destination chain"
                                },
                                "relationship": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "canonical_bridge",
                                    "native_issuer",
                                    "interoperability",
                                    "unknown",
                                    null
                                  ],
                                  "description": "How the destination token relates to this one: a copy minted by the canonical bridge, a deployment by the issuer itself, a version issued through an interoperability protocol such as LayerZero, or unknown. Null when not yet recorded"
                                },
                                "bridge_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Bridge, issuer or interoperability protocol, when known"
                                },
                                "source_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Source the link was taken from. Null when not yet recorded"
                                },
                                "source_url": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Location of that source. Null when not yet recorded"
                                },
                                "inferred_reverse": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ],
                                  "description": "True when this direction was mirrored from a one-way link in the source rather than read from it. Null when not yet recorded"
                                }
                              },
                              "required": [
                                "bridge_address",
                                "relationship",
                                "bridge_name",
                                "source_name",
                                "source_url",
                                "inferred_reverse"
                              ]
                            }
                          }
                        },
                        "required": [
                          "chain_id",
                          "name",
                          "symbol",
                          "decimals",
                          "multiplier",
                          "address",
                          "visibility_priority",
                          "sort_order",
                          "total_supply",
                          "bridgeInfos"
                        ]
                      }
                    }
                  ],
                  "description": "Array of tokens"
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/batch": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "Batch tokens",
        "description": "Fetch metadata for a specific set of tokens",
        "operationId": "get_BatchGetTokens",
        "parameters": [
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(?:\\d+|0x[a-fA-F0-9]+):0x[a-fA-F0-9]+$",
                "description": "Token identifier formatted as chain_id:token_address where chain_id may be decimal or 0x-prefixed hexadecimal"
              },
              "description": "Repeat the id parameter to fetch multiple tokens (e.g. ?id=1:0x...&id=0x1:0x...)",
              "example": "1:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
            },
            "required": true,
            "description": "Repeat the id parameter to fetch multiple tokens (e.g. ?id=1:0x...&id=0x1:0x...)",
            "name": "id",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Tokens",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "chain_id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "description": "Name of the token"
                      },
                      "symbol": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32,
                        "description": "Symbol for the token"
                      },
                      "decimals": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 78,
                        "description": "The number of decimals used for display of token balances"
                      },
                      "multiplier": {
                        "type": "string",
                        "pattern": "^\\d+(\\.\\d+)?$",
                        "description": "Display scale applied next to decimals, as an exact decimal string: one token (10^decimals raw units) is shown as this many units. Read from the token contract's uiMultiplier(), with a scheduled change applied from its effectiveAt(), such as a stock token's split ratio and compounded dividends. Amounts, prices and supplies elsewhere in the API stay per raw token: multiply an amount by it and divide a price by it to show them. \"1\" for tokens without one.",
                        "example": "1"
                      },
                      "address": {
                        "type": "string",
                        "description": "The address of the token for the specified chain"
                      },
                      "visibility_priority": {
                        "type": "integer",
                        "description": "How much this token should be surfaced relative to other tokens (higher is better)"
                      },
                      "sort_order": {
                        "type": "integer",
                        "description": "How much the token should prefer to be the numerator when displayed in prices (higher is more numerator-like)"
                      },
                      "total_supply": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 0,
                        "description": "The total supply of the token in units of 10^decimals raw units, before the multiplier"
                      },
                      "logo_url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "usd_price": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "minimum": 0,
                        "description": "The USD price for one unit of the token (10^decimals raw units), before the multiplier"
                      },
                      "bridgeInfos": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "bridge_address": {
                              "type": "string",
                              "description": "Token address for the destination chain"
                            },
                            "relationship": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "canonical_bridge",
                                "native_issuer",
                                "interoperability",
                                "unknown",
                                null
                              ],
                              "description": "How the destination token relates to this one: a copy minted by the canonical bridge, a deployment by the issuer itself, a version issued through an interoperability protocol such as LayerZero, or unknown. Null when not yet recorded"
                            },
                            "bridge_name": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Bridge, issuer or interoperability protocol, when known"
                            },
                            "source_name": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Source the link was taken from. Null when not yet recorded"
                            },
                            "source_url": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Location of that source. Null when not yet recorded"
                            },
                            "inferred_reverse": {
                              "type": [
                                "boolean",
                                "null"
                              ],
                              "description": "True when this direction was mirrored from a one-way link in the source rather than read from it. Null when not yet recorded"
                            }
                          },
                          "required": [
                            "bridge_address",
                            "relationship",
                            "bridge_name",
                            "source_name",
                            "source_url",
                            "inferred_reverse"
                          ]
                        }
                      }
                    },
                    "required": [
                      "chain_id",
                      "name",
                      "symbol",
                      "decimals",
                      "multiplier",
                      "address",
                      "visibility_priority",
                      "sort_order",
                      "total_supply",
                      "usd_price",
                      "bridgeInfos"
                    ]
                  },
                  "description": "Array of tokens"
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/price-changes": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "Batch token 24 hour USD price changes",
        "description": "The latest USD price of each requested token and its price 24 hours ago, for showing a 24 hour change in token lists. Accepts up to 100 tokens.",
        "operationId": "get_BatchGetTokenUsdPriceChanges",
        "parameters": [
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^(?:\\d+|0x[a-fA-F0-9]+):0x[a-fA-F0-9]+$",
                "description": "Token identifier formatted as chain_id:token_address where chain_id may be decimal or 0x-prefixed hexadecimal"
              },
              "description": "Repeat the id parameter to fetch multiple tokens (e.g. ?id=1:0x...&id=0x1:0x...)",
              "example": "1:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
            },
            "required": true,
            "description": "Repeat the id parameter to fetch multiple tokens (e.g. ?id=1:0x...&id=0x1:0x...)",
            "name": "id",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Latest and 24 hour old USD prices",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "chain_id": {
                        "type": "string"
                      },
                      "address": {
                        "type": "string"
                      },
                      "usd_price": {
                        "type": "number",
                        "minimum": 0,
                        "description": "The latest USD price"
                      },
                      "usd_price_24h_ago": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "minimum": 0,
                        "description": "The latest USD price observed at or before 24 hours ago, at most a few hours earlier. Null when there is none"
                      }
                    },
                    "required": [
                      "chain_id",
                      "address",
                      "usd_price",
                      "usd_price_24h_ago"
                    ]
                  },
                  "description": "One entry per requested token that has a USD price, in request order"
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/prices": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "List token USD prices",
        "description": "The usd_price of every priced token on a chain, keyed by address. Poll this instead of the token list when only prices need to stay fresh; tokens without a price are omitted.",
        "operationId": "get_ListTokenUsdPrices",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": -100,
              "maximum": 100,
              "default": 0,
              "title": "Visibility Priority",
              "description": "Token visibility priority threshold"
            },
            "required": false,
            "description": "Token visibility priority threshold",
            "name": "minVisibilityPriority",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "USD prices by token address",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "number",
                    "minimum": 0,
                    "description": "The USD price for one unit of the token"
                  },
                  "description": "USD price by token address, for priced tokens only",
                  "example": {
                    "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": 0.9999
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/{chainId}/{tokenAddress}": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "Get token",
        "description": "Returns metadata for a specific token on the given chain",
        "operationId": "get_GetToken",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenAddress",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Token information",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "chain_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "description": "Name of the token"
                    },
                    "symbol": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32,
                      "description": "Symbol for the token"
                    },
                    "decimals": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 78,
                      "description": "The number of decimals used for display of token balances"
                    },
                    "multiplier": {
                      "type": "string",
                      "pattern": "^\\d+(\\.\\d+)?$",
                      "description": "Display scale applied next to decimals, as an exact decimal string: one token (10^decimals raw units) is shown as this many units. Read from the token contract's uiMultiplier(), with a scheduled change applied from its effectiveAt(), such as a stock token's split ratio and compounded dividends. Amounts, prices and supplies elsewhere in the API stay per raw token: multiply an amount by it and divide a price by it to show them. \"1\" for tokens without one.",
                      "example": "1"
                    },
                    "address": {
                      "type": "string",
                      "description": "The address of the token for the specified chain"
                    },
                    "visibility_priority": {
                      "type": "integer",
                      "description": "How much this token should be surfaced relative to other tokens (higher is better)"
                    },
                    "sort_order": {
                      "type": "integer",
                      "description": "How much the token should prefer to be the numerator when displayed in prices (higher is more numerator-like)"
                    },
                    "total_supply": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0,
                      "description": "The total supply of the token in units of 10^decimals raw units, before the multiplier"
                    },
                    "logo_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "usd_price": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0,
                      "description": "The USD price for one unit of the token (10^decimals raw units), before the multiplier"
                    },
                    "bridgeInfos": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "bridge_address": {
                            "type": "string",
                            "description": "Token address for the destination chain"
                          },
                          "relationship": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "canonical_bridge",
                              "native_issuer",
                              "interoperability",
                              "unknown",
                              null
                            ],
                            "description": "How the destination token relates to this one: a copy minted by the canonical bridge, a deployment by the issuer itself, a version issued through an interoperability protocol such as LayerZero, or unknown. Null when not yet recorded"
                          },
                          "bridge_name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Bridge, issuer or interoperability protocol, when known"
                          },
                          "source_name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Source the link was taken from. Null when not yet recorded"
                          },
                          "source_url": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Location of that source. Null when not yet recorded"
                          },
                          "inferred_reverse": {
                            "type": [
                              "boolean",
                              "null"
                            ],
                            "description": "True when this direction was mirrored from a one-way link in the source rather than read from it. Null when not yet recorded"
                          }
                        },
                        "required": [
                          "bridge_address",
                          "relationship",
                          "bridge_name",
                          "source_name",
                          "source_url",
                          "inferred_reverse"
                        ]
                      }
                    }
                  },
                  "required": [
                    "chain_id",
                    "name",
                    "symbol",
                    "decimals",
                    "multiplier",
                    "address",
                    "visibility_priority",
                    "sort_order",
                    "total_supply",
                    "usd_price",
                    "bridgeInfos"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/blocks/{chainId}/closest": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "Get the block closest to a given timestamp",
        "description": "Returns the block whose timestamp is nearest to the provided timestamp",
        "operationId": "get_GetClosestBlock",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "Timestamp to find the closest block for in the ISO string format",
              "example": "2025-11-10T00:00:00Z"
            },
            "required": true,
            "description": "Timestamp to find the closest block for in the ISO string format",
            "name": "timestamp",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The block closest to the given timestamp",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "number": {
                      "type": "integer"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "number",
                    "timestamp"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/blocks/{chainId}/{blockTag}": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "Get block",
        "description": "Get information about a particular block ingested by the API",
        "operationId": "get_GetBlock",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 160000
                },
                {
                  "type": "string",
                  "enum": [
                    "latest"
                  ]
                }
              ],
              "description": "The tag of the block to get or the number of a block containing events"
            },
            "required": true,
            "description": "The tag of the block to get or the number of a block containing events",
            "name": "blockTag",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The timestamp of the given block number",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "number": {
                      "type": "integer"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "number",
                    "timestamp"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/country": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "Get request country",
        "description": "Returns the Cloudflare country code inferred from the request IP",
        "operationId": "get_GetCountry",
        "responses": {
          "200": {
            "description": "The request country as a two-letter Cloudflare country code",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "country": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "minLength": 2,
                      "maxLength": 2
                    }
                  },
                  "required": [
                    "country"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/overview/pairs": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get pairs",
        "description": "Returns stats for the top pairs",
        "operationId": "get_GetOverviewPairs",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 0,
              "default": 1000,
              "description": "Minimum USD TVL required for a pair to be included"
            },
            "required": false,
            "description": "Minimum USD TVL required for a pair to be included",
            "name": "minTvlUsd",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The stats for the protocols top pairs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "topPairs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "token0": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          },
                          "token1": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          },
                          "volume0_24h": {
                            "type": "string"
                          },
                          "volume1_24h": {
                            "type": "string"
                          },
                          "fees0_24h": {
                            "type": "string"
                          },
                          "fees1_24h": {
                            "type": "string"
                          },
                          "ve33_fees0_24h": {
                            "type": "string"
                          },
                          "ve33_fees1_24h": {
                            "type": "string"
                          },
                          "tvl0_total": {
                            "type": "string"
                          },
                          "tvl1_total": {
                            "type": "string"
                          },
                          "tvl0_delta_24h": {
                            "type": "string"
                          },
                          "tvl1_delta_24h": {
                            "type": "string"
                          },
                          "depth0": {
                            "type": "string"
                          },
                          "depth1": {
                            "type": "string"
                          },
                          "min_depth_percent": {
                            "type": [
                              "number",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "chain_id",
                          "token0",
                          "token1",
                          "volume0_24h",
                          "volume1_24h",
                          "fees0_24h",
                          "fees1_24h",
                          "ve33_fees0_24h",
                          "ve33_fees1_24h",
                          "tvl0_total",
                          "tvl1_total",
                          "tvl0_delta_24h",
                          "tvl1_delta_24h",
                          "depth0",
                          "depth1",
                          "min_depth_percent"
                        ]
                      }
                    }
                  },
                  "required": [
                    "topPairs"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/overview/boosted-fees-pools": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get boosted fees pools",
        "description": "Returns pools with boosted fees state, including current and scheduled donation deltas",
        "operationId": "get_GetOverviewBoostedFeesPools",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Pools with boosted fees data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pools": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "token0": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "token1": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "pool_id": {
                            "type": "string"
                          },
                          "fee": {
                            "type": "string"
                          },
                          "tick_spacing": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "core_address": {
                            "type": "string"
                          },
                          "extension": {
                            "type": "string"
                          },
                          "volume0_24h": {
                            "type": "string"
                          },
                          "volume1_24h": {
                            "type": "string"
                          },
                          "fees0_24h": {
                            "type": "string"
                          },
                          "fees1_24h": {
                            "type": "string"
                          },
                          "ve33_fees0_24h": {
                            "type": "string"
                          },
                          "ve33_fees1_24h": {
                            "type": "string"
                          },
                          "tvl0_total": {
                            "type": "string"
                          },
                          "tvl1_total": {
                            "type": "string"
                          },
                          "tvl0_delta_24h": {
                            "type": "string"
                          },
                          "tvl1_delta_24h": {
                            "type": "string"
                          },
                          "depth0": {
                            "type": "string"
                          },
                          "depth1": {
                            "type": "string"
                          },
                          "depth_percent": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "stableswap_params": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "center_tick": {
                                "type": "integer"
                              },
                              "amplification": {
                                "type": "integer"
                              }
                            },
                            "required": [
                              "center_tick",
                              "amplification"
                            ]
                          },
                          "boosts": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "donate_rate0": {
                                "type": "string"
                              },
                              "donate_rate1": {
                                "type": "string"
                              },
                              "last_donated_time": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "future_donation_deltas": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "time": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "donate_rate_delta0": {
                                      "type": "string"
                                    },
                                    "donate_rate_delta1": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "time",
                                    "donate_rate_delta0",
                                    "donate_rate_delta1"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "donate_rate0",
                              "donate_rate1",
                              "last_donated_time",
                              "future_donation_deltas"
                            ]
                          }
                        },
                        "required": [
                          "chain_id",
                          "token0",
                          "token1",
                          "pool_id",
                          "fee",
                          "tick_spacing",
                          "core_address",
                          "extension",
                          "volume0_24h",
                          "volume1_24h",
                          "fees0_24h",
                          "fees1_24h",
                          "ve33_fees0_24h",
                          "ve33_fees1_24h",
                          "tvl0_total",
                          "tvl1_total",
                          "tvl0_delta_24h",
                          "tvl1_delta_24h",
                          "depth0",
                          "depth1",
                          "depth_percent",
                          "stableswap_params",
                          "boosts"
                        ]
                      }
                    }
                  },
                  "required": [
                    "pools"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/overview/revenue": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get revenue",
        "description": "Returns the revenue stats for the protocol",
        "operationId": "get_GetOverviewRevenue",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The revenue stats for the protocol",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "revenueByTokenByDate": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string"
                          },
                          "revenue": {
                            "type": "string"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "date": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": [
                          "token",
                          "revenue",
                          "chain_id",
                          "date"
                        ]
                      }
                    },
                    "revenueByToken_24h": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string"
                          },
                          "revenue": {
                            "type": "string"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          }
                        },
                        "required": [
                          "token",
                          "revenue",
                          "chain_id"
                        ]
                      }
                    }
                  },
                  "required": [
                    "revenueByTokenByDate",
                    "revenueByToken_24h"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/overview/tvl": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get TVL",
        "description": "Returns the TVL portion of the overview",
        "operationId": "get_GetOverviewTvl",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The TVL stats",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tvlByToken": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string"
                          },
                          "balance": {
                            "type": "string"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          }
                        },
                        "required": [
                          "token",
                          "balance",
                          "chain_id"
                        ]
                      }
                    },
                    "tvlDeltaByTokenByDate": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string"
                          },
                          "date": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "delta": {
                            "type": "string"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          }
                        },
                        "required": [
                          "token",
                          "date",
                          "delta",
                          "chain_id"
                        ]
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "tvlUsd": {
                          "type": "number",
                          "description": "USD value of tvlByToken, using the latest token prices; unpriced tokens count as 0"
                        },
                        "tvlDeltaUsdYesterday": {
                          "type": "number",
                          "description": "USD value of the tvlDeltaByTokenByDate entries dated tvlDeltaDate, at the latest token prices"
                        },
                        "tvlDeltaDate": {
                          "type": "string",
                          "description": "The UTC date (YYYY-MM-DD) summed into tvlDeltaUsdYesterday: the day before the response was computed"
                        }
                      },
                      "required": [
                        "tvlUsd",
                        "tvlDeltaUsdYesterday",
                        "tvlDeltaDate"
                      ]
                    },
                    "totalsByChain": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "tvlUsd": {
                            "type": "number",
                            "description": "USD value of tvlByToken, using the latest token prices; unpriced tokens count as 0"
                          },
                          "tvlDeltaUsdYesterday": {
                            "type": "number",
                            "description": "USD value of the tvlDeltaByTokenByDate entries dated tvlDeltaDate, at the latest token prices"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          }
                        },
                        "required": [
                          "tvlUsd",
                          "tvlDeltaUsdYesterday",
                          "chain_id"
                        ]
                      },
                      "description": "The same totals per chain, sorted by chain_id"
                    }
                  },
                  "required": [
                    "tvlByToken",
                    "tvlDeltaByTokenByDate",
                    "totals",
                    "totalsByChain"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/overview/tvl/chart": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get TVL chart",
        "description": "Returns TVL at the close of each of the last 30 UTC days, priced at that day's closing token prices (today at the latest prices), with each network's total and its largest token symbols, with the totals of /overview/tvl",
        "operationId": "get_GetOverviewTvlChart",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The TVL chart",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dates": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "UTC dates of the chart, oldest first, as YYYY-MM-DD"
                    },
                    "networks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "usd": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "description": "USD value of the network on each date, at that date's closing prices"
                          },
                          "tokens": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "symbol": {
                                  "type": "string"
                                },
                                "multiplier": {
                                  "type": "string",
                                  "description": "UI multiplier of the symbol's tokens, as an exact decimal string, the same as the multiplier of /tokens. Tokens that share a symbol but not a multiplier have one entry each. Multiply amount by it to show it in display units",
                                  "example": "1"
                                },
                                "usd": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "description": "USD value on each date, at that date's closing prices"
                                },
                                "amount": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "description": "Token amount on each date, in whole tokens (10^decimals raw units), before the multiplier"
                                }
                              },
                              "required": [
                                "symbol",
                                "multiplier",
                                "usd",
                                "amount"
                              ]
                            },
                            "description": "The network's five largest token symbols by their value over the last two dates, largest first"
                          },
                          "other": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "type": "number"
                            },
                            "description": "USD value of the network's other symbols on each date; null when there are none"
                          }
                        },
                        "required": [
                          "chain_id",
                          "usd",
                          "tokens",
                          "other"
                        ]
                      },
                      "description": "One entry per network, sorted by chain_id"
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "tvlUsd": {
                          "type": "number",
                          "description": "USD value of tvlByToken, using the latest token prices; unpriced tokens count as 0"
                        },
                        "tvlDeltaUsdYesterday": {
                          "type": "number",
                          "description": "USD value of the tvlDeltaByTokenByDate entries dated tvlDeltaDate, at the latest token prices"
                        },
                        "tvlDeltaDate": {
                          "type": "string",
                          "description": "The UTC date (YYYY-MM-DD) summed into tvlDeltaUsdYesterday: the day before the response was computed"
                        }
                      },
                      "required": [
                        "tvlUsd",
                        "tvlDeltaUsdYesterday",
                        "tvlDeltaDate"
                      ]
                    },
                    "totalsByChain": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "tvlUsd": {
                            "type": "number",
                            "description": "USD value of tvlByToken, using the latest token prices; unpriced tokens count as 0"
                          },
                          "tvlDeltaUsdYesterday": {
                            "type": "number",
                            "description": "USD value of the tvlDeltaByTokenByDate entries dated tvlDeltaDate, at the latest token prices"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          }
                        },
                        "required": [
                          "tvlUsd",
                          "tvlDeltaUsdYesterday",
                          "chain_id"
                        ]
                      },
                      "description": "The same totals per chain, sorted by chain_id"
                    }
                  },
                  "required": [
                    "dates",
                    "networks",
                    "totals",
                    "totalsByChain"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/overview/volume": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get volume",
        "description": "Returns the volume portion of the overview",
        "operationId": "get_GetOverviewVolume",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The volume stats for the protocol",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "volumeByTokenByDate": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string"
                          },
                          "volume": {
                            "type": "string"
                          },
                          "fees": {
                            "type": "string"
                          },
                          "ve33_fees": {
                            "type": "string"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "date": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": [
                          "token",
                          "volume",
                          "fees",
                          "ve33_fees",
                          "chain_id",
                          "date"
                        ]
                      }
                    },
                    "volumeByToken_24h": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string"
                          },
                          "volume": {
                            "type": "string"
                          },
                          "fees": {
                            "type": "string"
                          },
                          "ve33_fees": {
                            "type": "string"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          }
                        },
                        "required": [
                          "token",
                          "volume",
                          "fees",
                          "ve33_fees",
                          "chain_id"
                        ]
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "volumeUsd24h": {
                          "type": "number",
                          "description": "USD value of volumeByToken_24h, using the latest token prices; unpriced tokens count as 0"
                        }
                      },
                      "required": [
                        "volumeUsd24h"
                      ]
                    },
                    "totalsByChain": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "volumeUsd24h": {
                            "type": "number",
                            "description": "USD value of volumeByToken_24h, using the latest token prices; unpriced tokens count as 0"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          }
                        },
                        "required": [
                          "volumeUsd24h",
                          "chain_id"
                        ]
                      },
                      "description": "The same totals per chain, sorted by chain_id"
                    }
                  },
                  "required": [
                    "volumeByTokenByDate",
                    "volumeByToken_24h",
                    "totals",
                    "totalsByChain"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/overview/volume/chart": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get volume chart",
        "description": "Returns the volume of each of the last 30 UTC days, priced at that day's closing token prices (today at the latest prices), with each network's total and its largest token symbols, with the totals of /overview/volume",
        "operationId": "get_GetOverviewVolumeChart",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The volume chart",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dates": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "UTC dates of the chart, oldest first, as YYYY-MM-DD"
                    },
                    "networks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "usd": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "description": "USD value of the network on each date, at that date's closing prices"
                          },
                          "tokens": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "symbol": {
                                  "type": "string"
                                },
                                "multiplier": {
                                  "type": "string",
                                  "description": "UI multiplier of the symbol's tokens, as an exact decimal string, the same as the multiplier of /tokens. Tokens that share a symbol but not a multiplier have one entry each. Multiply amount by it to show it in display units",
                                  "example": "1"
                                },
                                "usd": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "description": "USD value on each date, at that date's closing prices"
                                },
                                "amount": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "description": "Token amount on each date, in whole tokens (10^decimals raw units), before the multiplier"
                                }
                              },
                              "required": [
                                "symbol",
                                "multiplier",
                                "usd",
                                "amount"
                              ]
                            },
                            "description": "The network's five largest token symbols by their value over the last two dates, largest first"
                          },
                          "other": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "type": "number"
                            },
                            "description": "USD value of the network's other symbols on each date; null when there are none"
                          }
                        },
                        "required": [
                          "chain_id",
                          "usd",
                          "tokens",
                          "other"
                        ]
                      },
                      "description": "One entry per network, sorted by chain_id"
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "volumeUsd24h": {
                          "type": "number",
                          "description": "USD value of volumeByToken_24h, using the latest token prices; unpriced tokens count as 0"
                        }
                      },
                      "required": [
                        "volumeUsd24h"
                      ]
                    },
                    "totalsByChain": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "volumeUsd24h": {
                            "type": "number",
                            "description": "USD value of volumeByToken_24h, using the latest token prices; unpriced tokens count as 0"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          }
                        },
                        "required": [
                          "volumeUsd24h",
                          "chain_id"
                        ]
                      },
                      "description": "The same totals per chain, sorted by chain_id"
                    }
                  },
                  "required": [
                    "dates",
                    "networks",
                    "totals",
                    "totalsByChain"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/pair/{chainId}/{tokenA}/{tokenB}/tvl": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get pair TVL",
        "description": "Returns TVL stats for the pair",
        "operationId": "get_GetPairInfoTvl",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenA",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenB",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "Restrict results to pools with the given core address."
            },
            "required": false,
            "description": "Restrict results to pools with the given core address.",
            "name": "coreAddress",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Restrict results to pools with the given pool id."
            },
            "required": false,
            "description": "Restrict results to pools with the given pool id.",
            "name": "poolId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Information about the token pair TVL",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tvlByToken": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string"
                          },
                          "balance": {
                            "type": "string"
                          },
                          "chain_id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "token",
                          "balance",
                          "chain_id"
                        ]
                      }
                    },
                    "tvlDeltaByTokenByDate": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string"
                          },
                          "date": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "delta": {
                            "type": "string"
                          },
                          "chain_id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "token",
                          "date",
                          "delta",
                          "chain_id"
                        ]
                      }
                    }
                  },
                  "required": [
                    "tvlByToken",
                    "tvlDeltaByTokenByDate"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/pair/{chainId}/{tokenA}/{tokenB}/tvl/chart": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get pair TVL chart",
        "description": "Returns the pair's TVL at the close of each of the last 30 UTC days, priced at that day's closing token prices (today at the latest prices), per token symbol",
        "operationId": "get_GetPairInfoTvlChart",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenA",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenB",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "Restrict results to pools with the given core address."
            },
            "required": false,
            "description": "Restrict results to pools with the given core address.",
            "name": "coreAddress",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Restrict results to pools with the given pool id."
            },
            "required": false,
            "description": "Restrict results to pools with the given pool id.",
            "name": "poolId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The pair TVL chart",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dates": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "UTC dates of the chart, oldest first, as YYYY-MM-DD"
                    },
                    "networks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "usd": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "description": "USD value of the network on each date, at that date's closing prices"
                          },
                          "tokens": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "symbol": {
                                  "type": "string"
                                },
                                "multiplier": {
                                  "type": "string",
                                  "description": "UI multiplier of the symbol's tokens, as an exact decimal string, the same as the multiplier of /tokens. Tokens that share a symbol but not a multiplier have one entry each. Multiply amount by it to show it in display units",
                                  "example": "1"
                                },
                                "usd": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "description": "USD value on each date, at that date's closing prices"
                                },
                                "amount": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "description": "Token amount on each date, in whole tokens (10^decimals raw units), before the multiplier"
                                }
                              },
                              "required": [
                                "symbol",
                                "multiplier",
                                "usd",
                                "amount"
                              ]
                            },
                            "description": "The network's five largest token symbols by their value over the last two dates, largest first"
                          },
                          "other": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "type": "number"
                            },
                            "description": "USD value of the network's other symbols on each date; null when there are none"
                          }
                        },
                        "required": [
                          "chain_id",
                          "usd",
                          "tokens",
                          "other"
                        ]
                      },
                      "description": "One entry per network, sorted by chain_id"
                    }
                  },
                  "required": [
                    "dates",
                    "networks"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/pair/{chainId}/{tokenA}/{tokenB}/volume": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get pair volume",
        "description": "Returns volume stats for a given trading pair",
        "operationId": "get_GetPairInfoVolume",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenA",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenB",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "Restrict results to pools with the given core address."
            },
            "required": false,
            "description": "Restrict results to pools with the given core address.",
            "name": "coreAddress",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Restrict results to pools with the given pool id."
            },
            "required": false,
            "description": "Restrict results to pools with the given pool id.",
            "name": "poolId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Information about the token pair volume",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "chain_id": {
                      "type": "string"
                    },
                    "volumeByTokenByDate": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string"
                          },
                          "volume": {
                            "type": "string"
                          },
                          "fees": {
                            "type": "string"
                          },
                          "ve33_fees": {
                            "type": "string"
                          },
                          "date": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "chain_id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "token",
                          "volume",
                          "fees",
                          "ve33_fees",
                          "date",
                          "chain_id"
                        ]
                      }
                    },
                    "volumeByToken_24h": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string"
                          },
                          "volume": {
                            "type": "string"
                          },
                          "fees": {
                            "type": "string"
                          },
                          "ve33_fees": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "token",
                          "volume",
                          "fees",
                          "ve33_fees"
                        ]
                      }
                    }
                  },
                  "required": [
                    "chain_id",
                    "volumeByTokenByDate",
                    "volumeByToken_24h"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/pair/{chainId}/{tokenA}/{tokenB}/volume/chart": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get pair volume chart",
        "description": "Returns the pair's volume on each of the last 30 UTC days, priced at that day's closing token prices (today at the latest prices), per token symbol, with the volume of the last 24 hours as /pair/{chainId}/{tokenA}/{tokenB}/volume returns it",
        "operationId": "get_GetPairInfoVolumeChart",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenA",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenB",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "Restrict results to pools with the given core address."
            },
            "required": false,
            "description": "Restrict results to pools with the given core address.",
            "name": "coreAddress",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Restrict results to pools with the given pool id."
            },
            "required": false,
            "description": "Restrict results to pools with the given pool id.",
            "name": "poolId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The pair volume chart",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dates": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "UTC dates of the chart, oldest first, as YYYY-MM-DD"
                    },
                    "networks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "usd": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "description": "USD value of the network on each date, at that date's closing prices"
                          },
                          "tokens": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "symbol": {
                                  "type": "string"
                                },
                                "multiplier": {
                                  "type": "string",
                                  "description": "UI multiplier of the symbol's tokens, as an exact decimal string, the same as the multiplier of /tokens. Tokens that share a symbol but not a multiplier have one entry each. Multiply amount by it to show it in display units",
                                  "example": "1"
                                },
                                "usd": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "description": "USD value on each date, at that date's closing prices"
                                },
                                "amount": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "description": "Token amount on each date, in whole tokens (10^decimals raw units), before the multiplier"
                                }
                              },
                              "required": [
                                "symbol",
                                "multiplier",
                                "usd",
                                "amount"
                              ]
                            },
                            "description": "The network's five largest token symbols by their value over the last two dates, largest first"
                          },
                          "other": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "type": "number"
                            },
                            "description": "USD value of the network's other symbols on each date; null when there are none"
                          }
                        },
                        "required": [
                          "chain_id",
                          "usd",
                          "tokens",
                          "other"
                        ]
                      },
                      "description": "One entry per network, sorted by chain_id"
                    },
                    "volumeByToken_24h": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token": {
                            "type": "string"
                          },
                          "volume": {
                            "type": "string"
                          },
                          "fees": {
                            "type": "string"
                          },
                          "ve33_fees": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "token",
                          "volume",
                          "fees",
                          "ve33_fees"
                        ]
                      }
                    }
                  },
                  "required": [
                    "dates",
                    "networks",
                    "volumeByToken_24h"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/pair/{chainId}/{tokenA}/{tokenB}/pools": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get pools of pair",
        "description": "Returns pool info for a pair",
        "operationId": "get_GetPairInfoPools",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenA",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenB",
            "in": "path"
          },
          {
            "schema": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 0,
              "default": 1000,
              "description": "Minimum USD TVL required for a pool to be included"
            },
            "required": false,
            "description": "Minimum USD TVL required for a pool to be included",
            "name": "minTvlUsd",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Information about the pools of a token pair",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "topPools": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "pool_id": {
                            "type": "string"
                          },
                          "fee": {
                            "type": "string"
                          },
                          "tick_spacing": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "core_address": {
                            "type": "string"
                          },
                          "extension": {
                            "type": "string"
                          },
                          "volume0_24h": {
                            "type": "string"
                          },
                          "volume1_24h": {
                            "type": "string"
                          },
                          "fees0_24h": {
                            "type": "string"
                          },
                          "fees1_24h": {
                            "type": "string"
                          },
                          "ve33_fees0_24h": {
                            "type": "string"
                          },
                          "ve33_fees1_24h": {
                            "type": "string"
                          },
                          "tvl0_total": {
                            "type": "string"
                          },
                          "tvl1_total": {
                            "type": "string"
                          },
                          "tvl0_delta_24h": {
                            "type": "string"
                          },
                          "tvl1_delta_24h": {
                            "type": "string"
                          },
                          "depth0": {
                            "type": "string"
                          },
                          "depth1": {
                            "type": "string"
                          },
                          "depth_percent": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "stableswap_params": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "center_tick": {
                                "type": "integer"
                              },
                              "amplification": {
                                "type": "integer"
                              }
                            },
                            "required": [
                              "center_tick",
                              "amplification"
                            ]
                          },
                          "boosts": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "donate_rate0": {
                                "type": "string"
                              },
                              "donate_rate1": {
                                "type": "string"
                              },
                              "last_donated_time": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "future_donation_deltas": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "time": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "donate_rate_delta0": {
                                      "type": "string"
                                    },
                                    "donate_rate_delta1": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "time",
                                    "donate_rate_delta0",
                                    "donate_rate_delta1"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "donate_rate0",
                              "donate_rate1",
                              "last_donated_time",
                              "future_donation_deltas"
                            ]
                          }
                        },
                        "required": [
                          "pool_id",
                          "fee",
                          "tick_spacing",
                          "core_address",
                          "extension",
                          "volume0_24h",
                          "volume1_24h",
                          "fees0_24h",
                          "fees1_24h",
                          "ve33_fees0_24h",
                          "ve33_fees1_24h",
                          "tvl0_total",
                          "tvl1_total",
                          "tvl0_delta_24h",
                          "tvl1_delta_24h",
                          "depth0",
                          "depth1",
                          "depth_percent",
                          "stableswap_params",
                          "boosts"
                        ]
                      }
                    }
                  },
                  "required": [
                    "topPools"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/merkl/native-apr": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get Ekubo fee APR for live Merkl opportunities",
        "description": "Annualizes indexed trailing 24-hour pool fees over USD market depth (full TVL on Robinhood Chain). Excludes Merkl incentives. Omits opportunities without a verified pool, both token prices, or positive liquidity.",
        "operationId": "get_GetMerklNativeApr",
        "responses": {
          "200": {
            "description": "Ekubo fee APR by Merkl opportunity",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string",
                        "enum": [
                          "Ekubo Fee APR"
                        ]
                      },
                      "opportunityId": {
                        "type": "string",
                        "pattern": "^\\d+$",
                        "description": "Merkl's internal opportunity ID, as a decimal string"
                      },
                      "timestamp": {
                        "type": "integer",
                        "minimum": 0,
                        "description": "Calculation time in Unix seconds"
                      },
                      "value": {
                        "type": "number",
                        "minimum": 0,
                        "description": "APR in percentage points (5.5 means 5.5%)"
                      }
                    },
                    "required": [
                      "title",
                      "opportunityId",
                      "timestamp",
                      "value"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/{chainId}/{tokenAddress}/price-history": {
      "get": {
        "tags": [
          "Prices"
        ],
        "summary": "Get token USD price history",
        "description": "Returns bounded USD price history for a token, sampled from the latest price in each interval",
        "operationId": "get_GetTokenUsdPriceHistory",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenAddress",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 60,
              "maximum": 86400,
              "default": 900,
              "description": "Bucket size in seconds"
            },
            "required": false,
            "description": "Bucket size in seconds",
            "name": "interval",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 3600,
              "maximum": 2592000,
              "default": 86400,
              "description": "History duration in seconds, up to 30 days. Prices older than a day are kept at hourly resolution, so older buckets are exact only for intervals that are whole hours"
            },
            "required": false,
            "description": "History duration in seconds, up to 30 days. Prices older than a day are kept at hourly resolution, so older buckets are exact only for intervals that are whole hours",
            "name": "duration",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The token's USD price history",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "timestamp": {
                      "type": "integer"
                    },
                    "start": {
                      "type": "integer"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "interval": {
                      "type": "integer"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "string",
                                "format": "date-time"
                              }
                            ]
                          },
                          "price": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          }
                        },
                        "required": [
                          "start",
                          "price"
                        ]
                      }
                    }
                  },
                  "required": [
                    "timestamp",
                    "start",
                    "end",
                    "interval",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/{chainId}/{tokenAddress}/net-flow": {
      "get": {
        "tags": [
          "Prices"
        ],
        "summary": "Get token net buy and sell flow",
        "description": "Returns how much of a token traders bought from and sold into Ekubo pools in each interval, across every pool on the chain that holds the token, including TWAMM and limit order execution. Buckets use the same boundaries as the token price history and only buckets with at least one swap are returned; an unknown token returns no buckets. A multi-hop route that passes through the token adds the same amount to both bought and sold, so the net flow is exact while the gross amounts include that routing.",
        "operationId": "get_GetTokenNetFlow",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenAddress",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 60,
              "maximum": 86400,
              "default": 900,
              "description": "Bucket size in seconds"
            },
            "required": false,
            "description": "Bucket size in seconds",
            "name": "interval",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 3600,
              "maximum": 2592000,
              "default": 86400,
              "description": "History duration in seconds ending now, up to 30 days and at most 1000 intervals"
            },
            "required": false,
            "description": "History duration in seconds ending now, up to 30 days and at most 1000 intervals",
            "name": "duration",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The token's bought and sold amounts per interval",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "timestamp": {
                      "type": "integer",
                      "description": "Response time, unix seconds"
                    },
                    "start": {
                      "type": "integer",
                      "description": "Start of the window, unix seconds"
                    },
                    "end": {
                      "type": "integer",
                      "description": "End of the window, unix seconds"
                    },
                    "interval": {
                      "type": "integer"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "string",
                                "format": "date-time"
                              }
                            ],
                            "description": "Bucket start time"
                          },
                          "bought": {
                            "type": "string",
                            "description": "Raw token units that left Ekubo pools to traders in the bucket, as a decimal string"
                          },
                          "sold": {
                            "type": "string",
                            "description": "Raw token units traders paid into Ekubo pools in the bucket, as a decimal string"
                          },
                          "swap_count": {
                            "type": "integer",
                            "description": "Number of swaps in the bucket that touched the token"
                          }
                        },
                        "required": [
                          "start",
                          "bought",
                          "sold",
                          "swap_count"
                        ]
                      }
                    }
                  },
                  "required": [
                    "timestamp",
                    "start",
                    "end",
                    "interval",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/price/{chainId}/{baseToken}/{quoteToken}/history": {
      "get": {
        "tags": [
          "Prices"
        ],
        "summary": "Get price history",
        "description": "Get the VWAP-based price history for the given pair. When both `start` and `end` are given, the range is widened to whole intervals (counted from 2000-01-01 UTC), so the first and last buckets are complete and the response's `start` and `end` report the widened range.",
        "operationId": "get_GetPairPriceHistory",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0x0"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "baseToken",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "quoteToken",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal",
              "example": "1"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 60,
              "default": 1800
            },
            "required": false,
            "name": "interval",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "Unix timestamp (seconds) of the start of the range; defaults to 60 intervals before end"
            },
            "required": false,
            "description": "Unix timestamp (seconds) of the start of the range; defaults to 60 intervals before end",
            "name": "start",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "Unix timestamp (seconds) of the end of the range; defaults to now"
            },
            "required": false,
            "description": "Unix timestamp (seconds) of the end of the range; defaults to now",
            "name": "end",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The price history of the pair",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "timestamp": {
                      "type": "integer"
                    },
                    "start": {
                      "type": "integer"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "interval": {
                      "type": "integer"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "string",
                                "format": "date-time"
                              }
                            ]
                          },
                          "vwap": {
                            "type": "number"
                          },
                          "max": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "min": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "k_volume": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "start",
                          "vwap",
                          "max",
                          "min",
                          "k_volume"
                        ]
                      }
                    }
                  },
                  "required": [
                    "timestamp",
                    "start",
                    "end",
                    "interval",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/price/{chainId}/{baseToken}/{quoteToken}/ohlc": {
      "get": {
        "tags": [
          "Prices"
        ],
        "summary": "Get pair OHLC price history",
        "description": "Returns open, high, low, close and volume candles for a pair, aggregated across every pool of that pair. Prices are the prices swaps actually executed at, so the four values carry their traditional meaning, and dust swaps are excluded so a negligible trade cannot set a candle's open or close. Buckets in which nothing traded are omitted rather than carried forward, so every candle returned describes real trading. Prices are expressed in the quote token's smallest unit per the base token's smallest unit, so a client holding the two token decimals must scale them for display. When both `start` and `end` are given, the range is widened to whole intervals (counted from 2000-01-01 UTC), so the first and last buckets are complete and the response's `start` and `end` report the widened range.",
        "operationId": "get_GetPairOhlcHistory",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal",
              "example": "1"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0x0"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "baseToken",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "quoteToken",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 60,
              "default": 3600,
              "description": "Bucket size in seconds"
            },
            "required": false,
            "description": "Bucket size in seconds",
            "name": "interval",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "Unix timestamp (seconds) of the first bucket; defaults to 60 intervals before end"
            },
            "required": false,
            "description": "Unix timestamp (seconds) of the first bucket; defaults to 60 intervals before end",
            "name": "start",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "Unix timestamp (seconds) of the last bucket; defaults to now"
            },
            "required": false,
            "description": "Unix timestamp (seconds) of the last bucket; defaults to now",
            "name": "end",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The OHLC price history of the pair",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "timestamp": {
                      "type": "integer"
                    },
                    "start": {
                      "type": "integer"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "interval": {
                      "type": "integer"
                    },
                    "base_token": {
                      "type": "string"
                    },
                    "quote_token": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "string",
                                "format": "date-time"
                              }
                            ]
                          },
                          "open": {
                            "type": "number"
                          },
                          "high": {
                            "type": "number"
                          },
                          "low": {
                            "type": "number"
                          },
                          "close": {
                            "type": "number"
                          },
                          "volume_base": {
                            "type": "string"
                          },
                          "volume_quote": {
                            "type": "string"
                          },
                          "swap_count": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "start",
                          "open",
                          "high",
                          "low",
                          "close",
                          "volume_base",
                          "volume_quote",
                          "swap_count"
                        ]
                      }
                    }
                  },
                  "required": [
                    "timestamp",
                    "start",
                    "end",
                    "interval",
                    "base_token",
                    "quote_token",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/pools/{chainId}/{coreAddress}/{poolId}/price/history": {
      "get": {
        "tags": [
          "Prices"
        ],
        "summary": "Get pool price history",
        "description": "Returns pool OHLC history with swap candles and TWAMM-projected tail fill when needed",
        "operationId": "get_GetPoolPriceHistory",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0xabcd"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "coreAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal",
              "example": "1"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "poolId",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 300,
              "description": "Bucket size in seconds"
            },
            "required": false,
            "description": "Bucket size in seconds",
            "name": "interval",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "Unix timestamp (seconds); defaults to 60 intervals before end"
            },
            "required": false,
            "description": "Unix timestamp (seconds); defaults to 60 intervals before end",
            "name": "start",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "Unix timestamp (seconds); defaults to now"
            },
            "required": false,
            "description": "Unix timestamp (seconds); defaults to now",
            "name": "end",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Pool-level price history and TWAMM metadata for charting",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "timestamp": {
                      "type": "integer"
                    },
                    "start": {
                      "type": "integer"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "interval": {
                      "type": "integer"
                    },
                    "token0": {
                      "type": "string"
                    },
                    "token1": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "string",
                                "format": "date-time"
                              }
                            ]
                          },
                          "open": {
                            "type": "number"
                          },
                          "high": {
                            "type": "number"
                          },
                          "low": {
                            "type": "number"
                          },
                          "close": {
                            "type": "number"
                          },
                          "volume0": {
                            "type": "string"
                          },
                          "volume1": {
                            "type": "string"
                          },
                          "swap_count": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "start",
                          "open",
                          "high",
                          "low",
                          "close"
                        ]
                      }
                    }
                  },
                  "required": [
                    "timestamp",
                    "start",
                    "end",
                    "interval",
                    "token0",
                    "token1",
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/pools/{chainId}/{coreAddress}/{poolId}/liquidity": {
      "get": {
        "tags": [
          "Swap"
        ],
        "summary": "Get pool liquidity",
        "description": "Returns the liquidity delta for each tick for the given pool key hash",
        "operationId": "get_GetPoolLiquidity",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0xabcd"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "coreAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal",
              "example": "1"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "poolId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The current liquidity chart for the given pool key hash",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "tick": {
                            "type": "integer"
                          },
                          "net_liquidity_delta_diff": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "tick",
                          "net_liquidity_delta_diff"
                        ]
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/pools/{chainId}/{coreAddress}/{poolId}/key": {
      "get": {
        "tags": [
          "Swap"
        ],
        "summary": "Get pool key",
        "description": "Returns the pool key details for the given core address and pool id",
        "operationId": "get_GetPoolKey",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0xabcd"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "coreAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal",
              "example": "1"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "poolId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Pool key details for the given pool",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pool_key": {
                      "type": "object",
                      "properties": {
                        "token0": {
                          "type": "string"
                        },
                        "token1": {
                          "type": "string"
                        },
                        "fee": {
                          "type": "string"
                        },
                        "tick_spacing": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "extension": {
                          "type": "string"
                        },
                        "stableswap_params": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "center_tick": {
                              "type": "integer"
                            },
                            "amplification": {
                              "type": "integer"
                            }
                          },
                          "required": [
                            "center_tick",
                            "amplification"
                          ]
                        }
                      },
                      "required": [
                        "token0",
                        "token1",
                        "fee",
                        "tick_spacing",
                        "extension",
                        "stableswap_params"
                      ]
                    }
                  },
                  "required": [
                    "pool_key"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/poolKeys/{chainId}/{coreAddress}/{poolId}": {
      "get": {
        "tags": [
          "Swap"
        ],
        "summary": "Get pool key by pool id",
        "description": "Returns the pool key and latest indexed state for the given core address and pool id",
        "operationId": "get_GetPoolKeyById",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0xabcd"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "coreAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal",
              "example": "1"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "poolId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Pool key and indexed state for the given pool",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pool_id": {
                      "type": "string"
                    },
                    "pool_key": {
                      "type": "object",
                      "properties": {
                        "token0": {
                          "type": "string"
                        },
                        "token1": {
                          "type": "string"
                        },
                        "fee": {
                          "type": "string"
                        },
                        "tick_spacing": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "extension": {
                          "type": "string"
                        },
                        "stableswap_params": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "center_tick": {
                              "type": "integer"
                            },
                            "amplification": {
                              "type": "integer"
                            }
                          },
                          "required": [
                            "center_tick",
                            "amplification"
                          ]
                        },
                        "config": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "token0",
                        "token1",
                        "fee",
                        "tick_spacing",
                        "extension",
                        "stableswap_params",
                        "config"
                      ]
                    },
                    "state": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "sqrt_ratio": {
                          "type": "string",
                          "pattern": "^\\d+$",
                          "description": "A decimal number"
                        },
                        "tick": {
                          "type": "integer"
                        },
                        "liquidity": {
                          "type": "string",
                          "pattern": "^\\d+$",
                          "description": "A decimal number"
                        }
                      },
                      "required": [
                        "sqrt_ratio",
                        "tick",
                        "liquidity"
                      ]
                    }
                  },
                  "required": [
                    "pool_id",
                    "pool_key",
                    "state"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/poolKeys/{chainId}/{coreAddress}": {
      "get": {
        "tags": [
          "Swap"
        ],
        "summary": "List pool keys",
        "description": "Enumerates initialized pool keys for one core deployment in ascending pool_id order with keyset pagination, optionally filtered by one token (either side), an exact pair, or an extension",
        "operationId": "get_ListPoolKeys",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0xabcd"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "coreAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "Keep only pools containing this token on either side; with tokenB, the exact pair (order-insensitive)"
            },
            "required": false,
            "description": "Keep only pools containing this token on either side; with tokenB, the exact pair (order-insensitive)",
            "name": "tokenA",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "Second token of an exact pair filter"
            },
            "required": false,
            "description": "Second token of an exact pair filter",
            "name": "tokenB",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "Keep only pools using this extension; 0x0 selects extensionless pools"
            },
            "required": false,
            "description": "Keep only pools using this extension; 0x0 selects extensionless pools",
            "name": "extension",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Return pools whose pool_id is strictly greater; use next_cursor to continue"
            },
            "required": false,
            "description": "Return pools whose pool_id is strictly greater; use next_cursor to continue",
            "name": "after",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 100,
              "description": "Maximum number of pools to return"
            },
            "required": false,
            "description": "Maximum number of pools to return",
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "One ascending pool_id-ordered page of pool keys; an unknown chain or core yields an empty page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pools": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "pool_id": {
                            "type": "string"
                          },
                          "pool_key": {
                            "type": "object",
                            "properties": {
                              "token0": {
                                "type": "string"
                              },
                              "token1": {
                                "type": "string"
                              },
                              "fee": {
                                "type": "string"
                              },
                              "tick_spacing": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "extension": {
                                "type": "string"
                              },
                              "stableswap_params": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "center_tick": {
                                    "type": "integer"
                                  },
                                  "amplification": {
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "center_tick",
                                  "amplification"
                                ]
                              },
                              "config": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "token0",
                              "token1",
                              "fee",
                              "tick_spacing",
                              "extension",
                              "stableswap_params",
                              "config"
                            ]
                          },
                          "state": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "sqrt_ratio": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              "tick": {
                                "type": "integer"
                              },
                              "liquidity": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            },
                            "required": [
                              "sqrt_ratio",
                              "tick",
                              "liquidity"
                            ]
                          }
                        },
                        "required": [
                          "pool_id",
                          "pool_key",
                          "state"
                        ]
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "has_more": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "pools",
                    "next_cursor",
                    "has_more"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/{chainId}/{tokenA}/{tokenB}/liquidity": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get pair liquidity",
        "description": "Returns the liquidity chart for the given token pair, aggregated across all pools",
        "operationId": "get_GetPairLiquidity",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenA",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenB",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "For each tick for pools of the pair, the liquidity delta",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "tick": {
                            "type": "integer"
                          },
                          "net_liquidity_delta_diff": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "tick",
                          "net_liquidity_delta_diff"
                        ]
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/pair/{chainId}/{tokenA}/{tokenB}/positions": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get top positions for pair",
        "description": "Returns the top positions (by liquidity) for the given trading pair",
        "operationId": "get_GetPairTopPositions",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenA",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenB",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "Restrict results to pools with the given core address."
            },
            "required": false,
            "description": "Restrict results to pools with the given core address.",
            "name": "coreAddress",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Restrict results to pools with the given pool id."
            },
            "required": false,
            "description": "Restrict results to pools with the given pool id.",
            "name": "poolId",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 10,
              "description": "Maximum number of positions to return"
            },
            "required": false,
            "description": "Maximum number of positions to return",
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Top positions for the given pair",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "chain_id": {
                            "type": "string"
                          },
                          "nft_address": {
                            "type": "string"
                          },
                          "core_address": {
                            "type": "string"
                          },
                          "positions_address": {
                            "type": "string"
                          },
                          "owner": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            ],
                            "title": "Address",
                            "description": "An address on the specified blockchain network"
                          },
                          "minted_timestamp": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "pool_key": {
                            "type": "object",
                            "properties": {
                              "token0": {
                                "type": "string"
                              },
                              "token1": {
                                "type": "string"
                              },
                              "fee": {
                                "type": "string"
                              },
                              "tick_spacing": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "extension": {
                                "type": "string"
                              },
                              "stableswap_params": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "center_tick": {
                                    "type": "number"
                                  },
                                  "amplification": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "center_tick",
                                  "amplification"
                                ]
                              }
                            },
                            "required": [
                              "token0",
                              "token1",
                              "fee",
                              "tick_spacing",
                              "extension",
                              "stableswap_params"
                            ]
                          },
                          "bounds": {
                            "type": "object",
                            "properties": {
                              "lower": {
                                "type": "number"
                              },
                              "upper": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "lower",
                              "upper"
                            ]
                          },
                          "liquidity": {
                            "type": "string"
                          },
                          "pool_state": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "sqrt_ratio": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              "tick": {
                                "type": "integer"
                              },
                              "liquidity": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            },
                            "required": [
                              "sqrt_ratio",
                              "tick",
                              "liquidity"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "chain_id",
                          "nft_address",
                          "core_address",
                          "positions_address",
                          "owner",
                          "minted_timestamp",
                          "pool_key",
                          "bounds",
                          "liquidity",
                          "pool_state"
                        ]
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/pools/{chainId}/{coreAddress}/{poolId}/positions": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get top positions for pool",
        "description": "Returns the top positions (by liquidity) for the given core address and pool id",
        "operationId": "get_GetPoolTopPositions",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "coreAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "poolId",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 10,
              "description": "Maximum number of positions to return"
            },
            "required": false,
            "description": "Maximum number of positions to return",
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Top positions for the given pool",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "chain_id": {
                            "type": "string"
                          },
                          "nft_address": {
                            "type": "string"
                          },
                          "core_address": {
                            "type": "string"
                          },
                          "positions_address": {
                            "type": "string"
                          },
                          "owner": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            ],
                            "title": "Address",
                            "description": "An address on the specified blockchain network"
                          },
                          "minted_timestamp": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "pool_key": {
                            "type": "object",
                            "properties": {
                              "token0": {
                                "type": "string"
                              },
                              "token1": {
                                "type": "string"
                              },
                              "fee": {
                                "type": "string"
                              },
                              "tick_spacing": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "extension": {
                                "type": "string"
                              },
                              "stableswap_params": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "center_tick": {
                                    "type": "number"
                                  },
                                  "amplification": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "center_tick",
                                  "amplification"
                                ]
                              }
                            },
                            "required": [
                              "token0",
                              "token1",
                              "fee",
                              "tick_spacing",
                              "extension",
                              "stableswap_params"
                            ]
                          },
                          "bounds": {
                            "type": "object",
                            "properties": {
                              "lower": {
                                "type": "number"
                              },
                              "upper": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "lower",
                              "upper"
                            ]
                          },
                          "liquidity": {
                            "type": "string"
                          },
                          "pool_state": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "sqrt_ratio": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              "tick": {
                                "type": "integer"
                              },
                              "liquidity": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            },
                            "required": [
                              "sqrt_ratio",
                              "tick",
                              "liquidity"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "chain_id",
                          "nft_address",
                          "core_address",
                          "positions_address",
                          "owner",
                          "minted_timestamp",
                          "pool_key",
                          "bounds",
                          "liquidity",
                          "pool_state"
                        ]
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tokens/{chainId}/{tokenA}/{tokenB}/events": {
      "get": {
        "tags": [
          "Stats"
        ],
        "summary": "Get pair events",
        "description": "Returns a list of recent events for the given trading pair",
        "operationId": "get_ListPairEvents",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenA",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenB",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "Restrict results to pools with the given core address."
            },
            "required": false,
            "description": "Restrict results to pools with the given core address.",
            "name": "coreAddress",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Restrict results to pools with the given pool id."
            },
            "required": false,
            "description": "Restrict results to pools with the given pool id.",
            "name": "poolId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A list of events for the given pair",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "anyOf": [
                              {
                                "type": "number",
                                "enum": [
                                  0
                                ]
                              },
                              {
                                "type": "number",
                                "enum": [
                                  1
                                ]
                              }
                            ]
                          },
                          "fee": {
                            "type": "string"
                          },
                          "tick_spacing": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "extension": {
                            "type": "string"
                          },
                          "core_address": {
                            "type": "string"
                          },
                          "locker": {
                            "type": "string"
                          },
                          "timestamp": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "transaction_hash": {
                            "type": "string"
                          },
                          "delta0": {
                            "type": "string"
                          },
                          "delta1": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "fee",
                          "tick_spacing",
                          "extension",
                          "core_address",
                          "locker",
                          "timestamp",
                          "transaction_hash",
                          "delta0",
                          "delta1"
                        ]
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/positions/batch": {
      "get": {
        "tags": [
          "Positions"
        ],
        "summary": "Batch list positions",
        "description": "Returns the list of position NFTs and their keys for multiple addresses",
        "operationId": "get_BatchListPositionsByAddress",
        "parameters": [
          {
            "schema": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^0x[a-fA-F0-9]+$",
                    "description": "A hexadecimal number"
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d+$",
                    "description": "A decimal number"
                  }
                ],
                "title": "Address",
                "description": "An address on the specified blockchain network"
              },
              "description": "Repeat the address parameter to merge positions from multiple addresses (e.g. ?address=0x...&address=0x...)",
              "example": "0x1234"
            },
            "required": true,
            "description": "Repeat the address parameter to merge positions from multiple addresses (e.g. ?address=0x...&address=0x...)",
            "name": "address",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "opened",
                "closed"
              ],
              "description": "Filter positions by state; defaults to returning all positions"
            },
            "required": false,
            "description": "Filter positions by state; defaults to returning all positions",
            "name": "state",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Restrict results to a specific chain ID",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "Restrict results to a specific chain ID",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50,
              "description": "Maximum number of positions to return per page"
            },
            "required": false,
            "description": "Maximum number of positions to return per page",
            "name": "pageSize",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "description": "Page number to fetch (1-indexed)"
            },
            "required": false,
            "description": "Page number to fetch (1-indexed)",
            "name": "page",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The position NFTs owned by the provided addresses and keys",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "positions_address": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "owner": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "pool_key": {
                            "type": "object",
                            "properties": {
                              "token0": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "token1": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "fee": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "tick_spacing": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "extension": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "stableswap_params": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "center_tick": {
                                    "type": "number"
                                  },
                                  "amplification": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "center_tick",
                                  "amplification"
                                ]
                              }
                            },
                            "required": [
                              "token0",
                              "token1",
                              "fee",
                              "tick_spacing",
                              "extension",
                              "stableswap_params"
                            ]
                          },
                          "bounds": {
                            "type": "object",
                            "properties": {
                              "lower": {
                                "type": "number"
                              },
                              "upper": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "lower",
                              "upper"
                            ]
                          },
                          "metadata_url": {
                            "type": "string"
                          },
                          "image": {
                            "type": "string"
                          },
                          "liquidity": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "pool_state": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "sqrt_ratio": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              "tick": {
                                "type": "integer"
                              },
                              "liquidity": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              "fee": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              }
                            },
                            "required": [
                              "sqrt_ratio",
                              "tick",
                              "liquidity",
                              "fee"
                            ]
                          },
                          "rewards": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "pending": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                }
                              },
                              "required": [
                                "amount",
                                "pending"
                              ]
                            }
                          }
                        },
                        "required": [
                          "id",
                          "chain_id",
                          "positions_address",
                          "owner",
                          "pool_key",
                          "bounds",
                          "metadata_url",
                          "image",
                          "liquidity",
                          "pool_state",
                          "rewards"
                        ]
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "page": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "pageSize": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "page",
                        "pageSize",
                        "totalPages",
                        "totalItems"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/positions/{address}": {
      "get": {
        "tags": [
          "Positions"
        ],
        "summary": "List positions",
        "description": "Returns the list of position NFTs and their keys",
        "operationId": "get_ListPositionsByAddress",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The address for which to list positions"
            },
            "required": true,
            "description": "The address for which to list positions",
            "name": "address",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "opened",
                "closed"
              ],
              "description": "Filter positions by state; defaults to returning all positions"
            },
            "required": false,
            "description": "Filter positions by state; defaults to returning all positions",
            "name": "state",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Restrict results to a specific chain ID",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "Restrict results to a specific chain ID",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50,
              "description": "Maximum number of positions to return per page"
            },
            "required": false,
            "description": "Maximum number of positions to return per page",
            "name": "pageSize",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "description": "Page number to fetch (1-indexed)"
            },
            "required": false,
            "description": "Page number to fetch (1-indexed)",
            "name": "page",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The position NFTs owned by the address and keys",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "positions_address": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "owner": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "pool_key": {
                            "type": "object",
                            "properties": {
                              "token0": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "token1": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "fee": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "tick_spacing": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "extension": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "stableswap_params": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "center_tick": {
                                    "type": "number"
                                  },
                                  "amplification": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "center_tick",
                                  "amplification"
                                ]
                              }
                            },
                            "required": [
                              "token0",
                              "token1",
                              "fee",
                              "tick_spacing",
                              "extension",
                              "stableswap_params"
                            ]
                          },
                          "bounds": {
                            "type": "object",
                            "properties": {
                              "lower": {
                                "type": "number"
                              },
                              "upper": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "lower",
                              "upper"
                            ]
                          },
                          "metadata_url": {
                            "type": "string"
                          },
                          "image": {
                            "type": "string"
                          },
                          "liquidity": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "pool_state": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "sqrt_ratio": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              "tick": {
                                "type": "integer"
                              },
                              "liquidity": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              "fee": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              }
                            },
                            "required": [
                              "sqrt_ratio",
                              "tick",
                              "liquidity",
                              "fee"
                            ]
                          },
                          "rewards": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "pending": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                }
                              },
                              "required": [
                                "amount",
                                "pending"
                              ]
                            }
                          }
                        },
                        "required": [
                          "id",
                          "chain_id",
                          "positions_address",
                          "owner",
                          "pool_key",
                          "bounds",
                          "metadata_url",
                          "image",
                          "liquidity",
                          "pool_state",
                          "rewards"
                        ]
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "page": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "pageSize": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "page",
                        "pageSize",
                        "totalPages",
                        "totalItems"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/positions/{chainId}/events": {
      "get": {
        "tags": [
          "Positions"
        ],
        "summary": "List position events",
        "description": "Returns position NFT lifecycle, liquidity update, and fee collection events in ascending event order",
        "operationId": "get_ListPositionEvents",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Chain ID for which to list events",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "Chain ID for which to list events",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0,
              "maximum": 4294967295,
              "description": "Inclusive first block number"
            },
            "required": false,
            "description": "Inclusive first block number",
            "name": "fromBlock",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0,
              "maximum": 4294967295,
              "description": "Inclusive last block number"
            },
            "required": false,
            "description": "Inclusive last block number",
            "name": "toBlock",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "format": "int64",
              "description": "Return events strictly after this event_id; use next_cursor to continue"
            },
            "required": false,
            "description": "Return events strictly after this event_id; use next_cursor to continue",
            "name": "cursor",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100,
              "description": "Maximum number of events to return"
            },
            "required": false,
            "description": "Maximum number of events to return",
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A globally ordered page of position events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "chain_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^0x[a-fA-F0-9]+$",
                          "description": "A hexadecimal number"
                        },
                        {
                          "type": "string",
                          "pattern": "^\\d+$",
                          "description": "A decimal number"
                        }
                      ],
                      "title": "Numeric",
                      "description": "A number represented in hexadecimal or decimal"
                    },
                    "events": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "event_id": {
                                "type": "string",
                                "pattern": "^-?\\d+$",
                                "description": "Signed event cursor encoding block, transaction, and event order"
                              },
                              "block_number": {
                                "type": "string"
                              },
                              "transaction_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "event_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "timestamp": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "position_id": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "Stable core position identifier shared by NFT and pool events"
                              },
                              "nft_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "positions_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "mint",
                                  "transfer",
                                  "burn"
                                ]
                              },
                              "token_id": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "Position NFT token ID"
                              },
                              "from_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "to_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              }
                            },
                            "required": [
                              "event_id",
                              "block_number",
                              "transaction_index",
                              "event_index",
                              "transaction_hash",
                              "timestamp",
                              "position_id",
                              "nft_address",
                              "positions_address",
                              "type",
                              "token_id",
                              "from_address",
                              "to_address"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "event_id": {
                                "type": "string",
                                "pattern": "^-?\\d+$",
                                "description": "Signed event cursor encoding block, transaction, and event order"
                              },
                              "block_number": {
                                "type": "string"
                              },
                              "transaction_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "event_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "timestamp": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "position_id": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "Stable core position identifier shared by NFT and pool events"
                              },
                              "nft_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "positions_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "update"
                                ]
                              },
                              "pool_key": {
                                "type": "object",
                                "properties": {
                                  "core_address": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "pool_id": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "token0": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "token1": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "fee": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "fee_denominator": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "tick_spacing": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "extension": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "stableswap_params": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "center_tick": {
                                        "type": "number"
                                      },
                                      "amplification": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "center_tick",
                                      "amplification"
                                    ]
                                  }
                                },
                                "required": [
                                  "core_address",
                                  "pool_id",
                                  "token0",
                                  "token1",
                                  "fee",
                                  "fee_denominator",
                                  "tick_spacing",
                                  "extension",
                                  "stableswap_params"
                                ]
                              },
                              "bounds": {
                                "type": "object",
                                "properties": {
                                  "lower": {
                                    "type": "number"
                                  },
                                  "upper": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "lower",
                                  "upper"
                                ]
                              },
                              "liquidity_delta": {
                                "type": "string"
                              },
                              "delta0": {
                                "type": "string"
                              },
                              "delta1": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "event_id",
                              "block_number",
                              "transaction_index",
                              "event_index",
                              "transaction_hash",
                              "timestamp",
                              "position_id",
                              "nft_address",
                              "positions_address",
                              "type",
                              "pool_key",
                              "bounds",
                              "liquidity_delta",
                              "delta0",
                              "delta1"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "event_id": {
                                "type": "string",
                                "pattern": "^-?\\d+$",
                                "description": "Signed event cursor encoding block, transaction, and event order"
                              },
                              "block_number": {
                                "type": "string"
                              },
                              "transaction_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "event_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "timestamp": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "position_id": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "Stable core position identifier shared by NFT and pool events"
                              },
                              "nft_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "positions_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "collect_fees"
                                ]
                              },
                              "pool_key": {
                                "type": "object",
                                "properties": {
                                  "core_address": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "pool_id": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "token0": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "token1": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "fee": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "fee_denominator": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "tick_spacing": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "extension": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  "stableswap_params": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "center_tick": {
                                        "type": "number"
                                      },
                                      "amplification": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "center_tick",
                                      "amplification"
                                    ]
                                  }
                                },
                                "required": [
                                  "core_address",
                                  "pool_id",
                                  "token0",
                                  "token1",
                                  "fee",
                                  "fee_denominator",
                                  "tick_spacing",
                                  "extension",
                                  "stableswap_params"
                                ]
                              },
                              "bounds": {
                                "type": "object",
                                "properties": {
                                  "lower": {
                                    "type": "number"
                                  },
                                  "upper": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "lower",
                                  "upper"
                                ]
                              },
                              "delta0": {
                                "type": "string"
                              },
                              "delta1": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "event_id",
                              "block_number",
                              "transaction_index",
                              "event_index",
                              "transaction_hash",
                              "timestamp",
                              "position_id",
                              "nft_address",
                              "positions_address",
                              "type",
                              "pool_key",
                              "bounds",
                              "delta0",
                              "delta1"
                            ]
                          }
                        ]
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^-?\\d+$"
                    },
                    "has_more": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "chain_id",
                    "events",
                    "next_cursor",
                    "has_more"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/positions/{chainId}/{lockerAddress}/{id}/history/page": {
      "get": {
        "tags": [
          "Positions"
        ],
        "summary": "Page through position history",
        "description": "Returns newest events first at a fixed indexed-block snapshot. Follow next_cursor with the same limit. Restart without a cursor if the snapshot changes. For complete financial calculations, use the full history endpoint.",
        "operationId": "get_ListPositionHistoryPage",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to list events"
            },
            "required": true,
            "description": "Chain ID for which to list events",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The address of the Positions contract"
            },
            "required": true,
            "description": "The address of the Positions contract",
            "name": "lockerAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25,
              "description": "Page size, from 1 to 100 (default 25)"
            },
            "required": false,
            "description": "Page size, from 1 to 100 (default 25)",
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_-]+$",
              "description": "Opaque next_cursor from the previous page"
            },
            "required": false,
            "description": "Opaque next_cursor from the previous page",
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of position history",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "chain_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^0x[a-fA-F0-9]+$",
                          "description": "A hexadecimal number"
                        },
                        {
                          "type": "string",
                          "pattern": "^\\d+$",
                          "description": "A decimal number"
                        }
                      ],
                      "title": "Numeric",
                      "description": "A number represented in hexadecimal or decimal"
                    },
                    "events": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "transfer"
                                ]
                              },
                              "block_number": {
                                "type": "string"
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "timestamp": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "from_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "to_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              }
                            },
                            "required": [
                              "type",
                              "block_number",
                              "transaction_hash",
                              "timestamp",
                              "from_address",
                              "to_address"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "update"
                                ]
                              },
                              "block_number": {
                                "type": "string"
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "timestamp": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "liquidity_delta": {
                                "type": "string"
                              },
                              "delta0": {
                                "type": "string"
                              },
                              "delta1": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "block_number",
                              "transaction_hash",
                              "timestamp",
                              "liquidity_delta",
                              "delta0",
                              "delta1"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "collect_fees"
                                ]
                              },
                              "block_number": {
                                "type": "string"
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "timestamp": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "delta0": {
                                "type": "string"
                              },
                              "delta1": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "block_number",
                              "transaction_hash",
                              "timestamp",
                              "delta0",
                              "delta1"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "claim_rewards"
                                ]
                              },
                              "block_number": {
                                "type": "string"
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "timestamp": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "reward_amount": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "block_number",
                              "transaction_hash",
                              "timestamp",
                              "reward_amount"
                            ]
                          }
                        ]
                      }
                    },
                    "page_info": {
                      "type": "object",
                      "properties": {
                        "has_more": {
                          "type": "boolean"
                        },
                        "next_cursor": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "snapshot": {
                          "type": "object",
                          "properties": {
                            "block_number": {
                              "type": "string",
                              "maxLength": 78,
                              "pattern": "^(?:0|-?[1-9]\\d*)$"
                            },
                            "block_hash": {
                              "type": "string",
                              "maxLength": 78,
                              "pattern": "^(?:0|-?[1-9]\\d*)$"
                            },
                            "fork_counter": {
                              "type": "string",
                              "maxLength": 78,
                              "pattern": "^(?:0|-?[1-9]\\d*)$"
                            }
                          },
                          "required": [
                            "block_number",
                            "block_hash",
                            "fork_counter"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "has_more",
                        "next_cursor",
                        "snapshot"
                      ]
                    }
                  },
                  "required": [
                    "chain_id",
                    "events",
                    "page_info"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/positions/{chainId}/{lockerAddress}/{id}/history": {
      "get": {
        "tags": [
          "Positions"
        ],
        "summary": "List position history",
        "description": "Returns the entire history of the given position ID",
        "operationId": "get_ListPositionNftEvents",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to list events"
            },
            "required": true,
            "description": "Chain ID for which to list events",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The address of the Positions contract"
            },
            "required": true,
            "description": "The address of the Positions contract",
            "name": "lockerAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The position history",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "chain_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^0x[a-fA-F0-9]+$",
                          "description": "A hexadecimal number"
                        },
                        {
                          "type": "string",
                          "pattern": "^\\d+$",
                          "description": "A decimal number"
                        }
                      ],
                      "title": "Numeric",
                      "description": "A number represented in hexadecimal or decimal"
                    },
                    "events": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "transfer"
                                ]
                              },
                              "block_number": {
                                "type": "string"
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "timestamp": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "from_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "to_address": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              }
                            },
                            "required": [
                              "type",
                              "block_number",
                              "transaction_hash",
                              "timestamp",
                              "from_address",
                              "to_address"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "update"
                                ]
                              },
                              "block_number": {
                                "type": "string"
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "timestamp": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "liquidity_delta": {
                                "type": "string"
                              },
                              "delta0": {
                                "type": "string"
                              },
                              "delta1": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "block_number",
                              "transaction_hash",
                              "timestamp",
                              "liquidity_delta",
                              "delta0",
                              "delta1"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "collect_fees"
                                ]
                              },
                              "block_number": {
                                "type": "string"
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "timestamp": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "delta0": {
                                "type": "string"
                              },
                              "delta1": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "block_number",
                              "transaction_hash",
                              "timestamp",
                              "delta0",
                              "delta1"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "claim_rewards"
                                ]
                              },
                              "block_number": {
                                "type": "string"
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "timestamp": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "reward_amount": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "block_number",
                              "transaction_hash",
                              "timestamp",
                              "reward_amount"
                            ]
                          }
                        ]
                      }
                    }
                  },
                  "required": [
                    "chain_id",
                    "events"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/positions/{chainId}/{nftAddress}/{id}": {
      "get": {
        "tags": [
          "Positions"
        ],
        "summary": "Get NFT Metadata",
        "description": "Returns the ERC721 metadata for the given position token ID",
        "operationId": "get_GetPositionNftMetadata",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to generate metadata"
            },
            "required": true,
            "description": "Chain ID for which to generate metadata",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The address of the Positions NFT contract"
            },
            "required": true,
            "description": "The address of the Positions NFT contract",
            "name": "nftAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The NFT metadata for the given position ID",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "image": {
                      "type": "string"
                    },
                    "attributes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "trait_type": {
                            "type": "string"
                          },
                          "value": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "trait_type",
                          "value"
                        ]
                      }
                    }
                  },
                  "required": [
                    "name",
                    "description",
                    "image",
                    "attributes"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{chainId}/{nftAddress}/{id}/image.svg": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "Get NFT Image",
        "description": "Returns the generated art for the given order NFT ID",
        "operationId": "get_GetOrderNftImage",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The address of the Positions NFT contract"
            },
            "required": true,
            "description": "The address of the Positions NFT contract",
            "name": "nftAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The order NFT image"
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/orders/{chainId}/{nftAddress}/{id}": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "Get NFT Metadata",
        "description": "Returns the ERC721 metadata for the given order token ID",
        "operationId": "get_GetOrderNftMetadata",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The address of the Positions NFT contract"
            },
            "required": true,
            "description": "The address of the Positions NFT contract",
            "name": "nftAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The NFT metadata for the given order ID",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "image": {
                      "type": "string"
                    },
                    "attributes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "trait_type": {
                            "type": "string"
                          },
                          "value": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "trait_type",
                          "value"
                        ]
                      }
                    }
                  },
                  "required": [
                    "name",
                    "description",
                    "image",
                    "attributes"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/twap/pools/{chainId}/{coreAddress}/{tokenA}/{tokenB}/{fee}": {
      "get": {
        "tags": [
          "TWAP"
        ],
        "summary": "Get TWAP pool",
        "description": "Returns the current state of the given TWAMM pool, including the future order expirations",
        "operationId": "get_GetTwammPoolState",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0x0"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenA",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenB",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0xabcd"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "coreAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal",
              "example": ""
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "fee",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The current state of the given TWAMM pool",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "saleRateDeltas": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "time": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "token0SaleRateDelta": {
                            "type": "string",
                            "pattern": "^-?\\d+e?\\d*$",
                            "description": "A signed decimal number"
                          },
                          "token1SaleRateDelta": {
                            "type": "string",
                            "pattern": "^-?\\d+e?\\d*$",
                            "description": "A signed decimal number"
                          }
                        },
                        "required": [
                          "time",
                          "token0SaleRateDelta",
                          "token1SaleRateDelta"
                        ]
                      }
                    }
                  },
                  "required": [
                    "saleRateDeltas"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/twap/pools/{chainId}/{coreAddress}/{poolId}": {
      "get": {
        "tags": [
          "TWAP"
        ],
        "summary": "Get TWAP pool by pool id",
        "description": "Returns the current state of the given TWAMM pool, including the future order expirations",
        "operationId": "get_GetTwammPoolStateByPoolId",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0xabcd"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "coreAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal",
              "example": "1234"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "poolId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The current state of the given TWAMM pool",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "saleRateDeltas": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "time": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "token0SaleRateDelta": {
                            "type": "string",
                            "pattern": "^-?\\d+e?\\d*$",
                            "description": "A signed decimal number"
                          },
                          "token1SaleRateDelta": {
                            "type": "string",
                            "pattern": "^-?\\d+e?\\d*$",
                            "description": "A signed decimal number"
                          }
                        },
                        "required": [
                          "time",
                          "token0SaleRateDelta",
                          "token1SaleRateDelta"
                        ]
                      }
                    }
                  },
                  "required": [
                    "saleRateDeltas"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/twap/pair/{chainId}/{tokenA}/{tokenB}": {
      "get": {
        "tags": [
          "TWAP"
        ],
        "summary": "Get TWAP pair",
        "description": "Returns the current state of the given TWAMM pair, including the future order expirations",
        "operationId": "get_GetTwammPairState",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0x0"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenA",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "tokenB",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The current state of the given TWAMM pair",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "saleRateDeltas": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "time": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "token0SaleRateDelta": {
                            "type": "string",
                            "pattern": "^-?\\d+e?\\d*$",
                            "description": "A signed decimal number"
                          },
                          "token1SaleRateDelta": {
                            "type": "string",
                            "pattern": "^-?\\d+e?\\d*$",
                            "description": "A signed decimal number"
                          }
                        },
                        "required": [
                          "time",
                          "token0SaleRateDelta",
                          "token1SaleRateDelta"
                        ]
                      }
                    }
                  },
                  "required": [
                    "saleRateDeltas"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/twap/orders/batch": {
      "get": {
        "tags": [
          "TWAP"
        ],
        "summary": "Batch list TWAP orders",
        "description": "Returns the list of TWAP orders currently held by the given addresses",
        "operationId": "get_BatchListTwapOrders",
        "parameters": [
          {
            "schema": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^0x[a-fA-F0-9]+$",
                    "description": "A hexadecimal number"
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d+$",
                    "description": "A decimal number"
                  }
                ],
                "title": "Address",
                "description": "An address on the specified blockchain network"
              },
              "description": "Repeat the address parameter to merge orders from multiple addresses (e.g. ?address=0x...&address=0x...)",
              "example": "0x1234"
            },
            "required": true,
            "description": "Repeat the address parameter to merge orders from multiple addresses (e.g. ?address=0x...&address=0x...)",
            "name": "address",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "opened",
                "closed"
              ],
              "description": "Filter orders by state; defaults to returning all orders"
            },
            "required": false,
            "description": "Filter orders by state; defaults to returning all orders",
            "name": "state",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Restrict results to a specific chain ID",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "Restrict results to a specific chain ID",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50,
              "description": "Maximum number of TWAP orders to return per page"
            },
            "required": false,
            "description": "Maximum number of TWAP orders to return per page",
            "name": "pageSize",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "description": "Page number to fetch (1-indexed)"
            },
            "required": false,
            "description": "Page number to fetch (1-indexed)",
            "name": "page",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The list of TWAP orders placed by the addresses",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orders": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "nft_address": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "token_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "orders": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "object",
                                  "properties": {
                                    "sell_token": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "pattern": "^0x[a-fA-F0-9]+$",
                                          "description": "A hexadecimal number"
                                        },
                                        {
                                          "type": "string",
                                          "pattern": "^\\d+$",
                                          "description": "A decimal number"
                                        }
                                      ],
                                      "title": "Address",
                                      "description": "An address on the specified blockchain network",
                                      "example": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"
                                    },
                                    "buy_token": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "pattern": "^0x[a-fA-F0-9]+$",
                                          "description": "A hexadecimal number"
                                        },
                                        {
                                          "type": "string",
                                          "pattern": "^\\d+$",
                                          "description": "A decimal number"
                                        }
                                      ],
                                      "title": "Address",
                                      "description": "An address on the specified blockchain network",
                                      "example": "0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"
                                    },
                                    "fee": {
                                      "type": "string",
                                      "example": "1020847100762815411640772995208708096"
                                    },
                                    "start_time": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "description": "The epoch time in seconds at which the order starts"
                                    },
                                    "end_time": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "description": "The epoch time in seconds at which the order ends"
                                    }
                                  },
                                  "required": [
                                    "sell_token",
                                    "buy_token",
                                    "fee",
                                    "start_time",
                                    "end_time"
                                  ],
                                  "description": "The key identifier for a TWAP order in Ekubo"
                                },
                                "total_proceeds_withdrawn": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "sale_rate": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "last_collect_proceeds": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "total_amount_sold": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "amount_sold_checkpoint": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "Amount sold up to amount_sold_checkpoint_time. It only changes when the order is updated; after that time the order sells at sale_rate, so amount sold at time t is amount_sold_checkpoint + floor((min(t, end_time) - amount_sold_checkpoint_time) * sale_rate / 2**32)"
                                },
                                "amount_sold_checkpoint_time": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "description": "The epoch time in seconds up to which amount_sold_checkpoint is accounted, between start_time and end_time"
                                }
                              },
                              "required": [
                                "key",
                                "total_proceeds_withdrawn",
                                "sale_rate",
                                "last_collect_proceeds",
                                "total_amount_sold",
                                "amount_sold_checkpoint",
                                "amount_sold_checkpoint_time"
                              ]
                            }
                          }
                        },
                        "required": [
                          "chain_id",
                          "nft_address",
                          "token_id",
                          "orders"
                        ]
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "page": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "pageSize": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "page",
                        "pageSize",
                        "totalPages",
                        "totalItems"
                      ]
                    }
                  },
                  "required": [
                    "orders",
                    "pagination"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/twap/orders/{address}": {
      "get": {
        "tags": [
          "TWAP"
        ],
        "summary": "List TWAP orders",
        "description": "Returns the list of TWAP orders currently held by the given address",
        "operationId": "get_ListTwapOrders",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0x1234"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "address",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "opened",
                "closed"
              ],
              "description": "Filter orders by state; defaults to returning all orders"
            },
            "required": false,
            "description": "Filter orders by state; defaults to returning all orders",
            "name": "state",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Restrict results to a specific chain ID",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "Restrict results to a specific chain ID",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50,
              "description": "Maximum number of TWAP orders to return per page"
            },
            "required": false,
            "description": "Maximum number of TWAP orders to return per page",
            "name": "pageSize",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "description": "Page number to fetch (1-indexed)"
            },
            "required": false,
            "description": "Page number to fetch (1-indexed)",
            "name": "page",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The list of TWAP orders placed by the address",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orders": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "nft_address": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "token_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "orders": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "object",
                                  "properties": {
                                    "sell_token": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "pattern": "^0x[a-fA-F0-9]+$",
                                          "description": "A hexadecimal number"
                                        },
                                        {
                                          "type": "string",
                                          "pattern": "^\\d+$",
                                          "description": "A decimal number"
                                        }
                                      ],
                                      "title": "Address",
                                      "description": "An address on the specified blockchain network",
                                      "example": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"
                                    },
                                    "buy_token": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "pattern": "^0x[a-fA-F0-9]+$",
                                          "description": "A hexadecimal number"
                                        },
                                        {
                                          "type": "string",
                                          "pattern": "^\\d+$",
                                          "description": "A decimal number"
                                        }
                                      ],
                                      "title": "Address",
                                      "description": "An address on the specified blockchain network",
                                      "example": "0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"
                                    },
                                    "fee": {
                                      "type": "string",
                                      "example": "1020847100762815411640772995208708096"
                                    },
                                    "start_time": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "description": "The epoch time in seconds at which the order starts"
                                    },
                                    "end_time": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "description": "The epoch time in seconds at which the order ends"
                                    }
                                  },
                                  "required": [
                                    "sell_token",
                                    "buy_token",
                                    "fee",
                                    "start_time",
                                    "end_time"
                                  ],
                                  "description": "The key identifier for a TWAP order in Ekubo"
                                },
                                "total_proceeds_withdrawn": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "sale_rate": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "last_collect_proceeds": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                },
                                "total_amount_sold": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "amount_sold_checkpoint": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "Amount sold up to amount_sold_checkpoint_time. It only changes when the order is updated; after that time the order sells at sale_rate, so amount sold at time t is amount_sold_checkpoint + floor((min(t, end_time) - amount_sold_checkpoint_time) * sale_rate / 2**32)"
                                },
                                "amount_sold_checkpoint_time": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "description": "The epoch time in seconds up to which amount_sold_checkpoint is accounted, between start_time and end_time"
                                }
                              },
                              "required": [
                                "key",
                                "total_proceeds_withdrawn",
                                "sale_rate",
                                "last_collect_proceeds",
                                "total_amount_sold",
                                "amount_sold_checkpoint",
                                "amount_sold_checkpoint_time"
                              ]
                            }
                          }
                        },
                        "required": [
                          "chain_id",
                          "nft_address",
                          "token_id",
                          "orders"
                        ]
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "page": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "pageSize": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "page",
                        "pageSize",
                        "totalPages",
                        "totalItems"
                      ]
                    }
                  },
                  "required": [
                    "orders",
                    "pagination"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/limit-orders/orders/{address}": {
      "get": {
        "tags": [
          "Limit Orders"
        ],
        "summary": "List limit orders",
        "description": "Returns the list of limit orders currently held by the given address",
        "operationId": "get_ListLimitOrders",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network",
              "example": "0x1234"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "address",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "opened",
                "closed"
              ],
              "description": "Filter limit orders by state; defaults to returning all orders"
            },
            "required": false,
            "description": "Filter limit orders by state; defaults to returning all orders",
            "name": "state",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Restrict results to a specific chain ID",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "Restrict results to a specific chain ID",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50,
              "description": "Maximum number of limit orders to return per page"
            },
            "required": false,
            "description": "Maximum number of limit orders to return per page",
            "name": "pageSize",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "description": "Page number to fetch (1-indexed)"
            },
            "required": false,
            "description": "Page number to fetch (1-indexed)",
            "name": "page",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The list of limit orders held or previously held by the address",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "orders": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "token_id": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "orders": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "object",
                                  "properties": {
                                    "token0": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "pattern": "^0x[a-fA-F0-9]+$",
                                          "description": "A hexadecimal number"
                                        },
                                        {
                                          "type": "string",
                                          "pattern": "^\\d+$",
                                          "description": "A decimal number"
                                        }
                                      ],
                                      "title": "Address",
                                      "description": "An address on the specified blockchain network",
                                      "example": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"
                                    },
                                    "token1": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "pattern": "^0x[a-fA-F0-9]+$",
                                          "description": "A hexadecimal number"
                                        },
                                        {
                                          "type": "string",
                                          "pattern": "^\\d+$",
                                          "description": "A decimal number"
                                        }
                                      ],
                                      "title": "Address",
                                      "description": "An address on the specified blockchain network",
                                      "example": "0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"
                                    },
                                    "tick": {
                                      "type": "number",
                                      "example": 0
                                    }
                                  },
                                  "required": [
                                    "token0",
                                    "token1",
                                    "tick"
                                  ],
                                  "description": "The key identifier for a limit order in Ekubo"
                                },
                                "liquidity": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "amount": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "token0_amount_withdrawn": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "token1_amount_withdrawn": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                }
                              },
                              "required": [
                                "key",
                                "liquidity",
                                "amount",
                                "token0_amount_withdrawn",
                                "token1_amount_withdrawn"
                              ]
                            }
                          }
                        },
                        "required": [
                          "chain_id",
                          "token_id",
                          "orders"
                        ]
                      },
                      "description": "The list of limit orders owned by the address"
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "page": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "pageSize": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "page",
                        "pageSize",
                        "totalPages",
                        "totalItems"
                      ]
                    }
                  },
                  "required": [
                    "orders",
                    "pagination"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/positions/{chainId}/{nftAddress}/{id}/image.svg": {
      "get": {
        "tags": [
          "Positions"
        ],
        "summary": "Get NFT Image",
        "description": "Returns the generated art for the given position NFT ID",
        "operationId": "get_GetPositionNftImage",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The address of the Positions NFT contract"
            },
            "required": true,
            "description": "The address of the Positions NFT contract",
            "name": "nftAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The position NFT image"
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/nft/{chainId}/{nftAddress}/{id}": {
      "get": {
        "tags": [
          "Positions"
        ],
        "summary": "Get NFT Metadata",
        "description": "Returns the ERC721 metadata for the given token ID, chain ID and NFT contract address",
        "operationId": "get_GetNftMetadata",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to generate metadata"
            },
            "required": true,
            "description": "Chain ID for which to generate metadata",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The address of the NFT contract"
            },
            "required": true,
            "description": "The address of the NFT contract",
            "name": "nftAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The NFT metadata for the given position ID"
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/nft/{chainId}/{nftAddress}/{id}/image.svg": {
      "get": {
        "tags": [
          "Positions"
        ],
        "summary": "Get NFT Image",
        "description": "Returns the generated art for the given position NFT ID",
        "operationId": "get_GetNftImage",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to generate metadata"
            },
            "required": true,
            "description": "Chain ID for which to generate metadata",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The address of the NFT contract"
            },
            "required": true,
            "description": "The address of the NFT contract",
            "name": "nftAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The position NFT image"
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/auctions": {
      "get": {
        "tags": [
          "Auctions"
        ],
        "summary": "List auction keys",
        "description": "Lists auction NFTs grouped by token_id + (token0, token1, config)",
        "operationId": "get_ListAuctions",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Chain ID for which to list auctions",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "Chain ID for which to list auctions",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": -100,
              "maximum": 100,
              "default": 0,
              "title": "Visibility Priority",
              "description": "Only include auction keys where both tokens meet this visibility priority threshold"
            },
            "required": false,
            "description": "Only include auction keys where both tokens meet this visibility priority threshold",
            "name": "minVisibilityPriority",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "If provided, only include auction keys linked to NFTs currently owned by this address"
            },
            "required": false,
            "description": "If provided, only include auction keys linked to NFTs currently owned by this address",
            "name": "owner",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "List of auction keys",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "auctions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "key": {
                            "type": "object",
                            "properties": {
                              "token0": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  {
                                    "type": "string",
                                    "pattern": "^\\d+$",
                                    "description": "A decimal number"
                                  }
                                ],
                                "title": "Address",
                                "description": "An address on the specified blockchain network"
                              },
                              "token1": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  {
                                    "type": "string",
                                    "pattern": "^\\d+$",
                                    "description": "A decimal number"
                                  }
                                ],
                                "title": "Address",
                                "description": "An address on the specified blockchain network"
                              },
                              "config": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              }
                            },
                            "required": [
                              "token0",
                              "token1",
                              "config"
                            ]
                          },
                          "token_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "owner": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            ],
                            "title": "Address",
                            "description": "An address on the specified blockchain network"
                          },
                          "auctions_contract_address": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            ],
                            "title": "Address",
                            "description": "An address on the specified blockchain network"
                          },
                          "total_sale_rate": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "boost_end_time": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Numeric",
                            "description": "A number represented in hexadecimal or decimal"
                          },
                          "completed_timestamp": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Numeric",
                            "description": "A number represented in hexadecimal or decimal"
                          }
                        },
                        "required": [
                          "chain_id",
                          "key",
                          "token_id",
                          "owner",
                          "auctions_contract_address",
                          "total_sale_rate",
                          "boost_end_time",
                          "completed_timestamp"
                        ]
                      }
                    }
                  },
                  "required": [
                    "auctions"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/auctions/{chainId}/{nftAddress}/{id}": {
      "get": {
        "tags": [
          "Auctions"
        ],
        "summary": "Get auction NFT metadata",
        "description": "Returns NFT metadata for auction NFTs; route shape matches positions and orders",
        "operationId": "get_GetAuctionNftMetadata",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to generate metadata"
            },
            "required": true,
            "description": "Chain ID for which to generate metadata",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The NFT contract address"
            },
            "required": true,
            "description": "The NFT contract address",
            "name": "nftAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The NFT metadata for the given token ID",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "image": {
                      "type": "string"
                    },
                    "attributes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "trait_type": {
                            "type": "string"
                          },
                          "value": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "trait_type",
                          "value"
                        ]
                      }
                    }
                  },
                  "required": [
                    "name",
                    "description",
                    "image",
                    "attributes"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/auctions/{chainId}/{nftAddress}/{id}/state": {
      "get": {
        "tags": [
          "Auctions"
        ],
        "summary": "Get auction NFT state",
        "description": "Returns dynamic auction NFT state for UI consumption",
        "operationId": "get_GetAuctionNftState",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to fetch state"
            },
            "required": true,
            "description": "Chain ID for which to fetch state",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The NFT contract address"
            },
            "required": true,
            "description": "The NFT contract address",
            "name": "nftAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Auction NFT state data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "current_owner": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^0x[a-fA-F0-9]+$",
                      "description": "A hexadecimal number"
                    },
                    "auctions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "token0": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "token1": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "config": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "total_sale_rate": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "participants_count": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "creator_proceeds_collected": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "boost_rate": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "boost_end_time": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Numeric",
                            "description": "A number represented in hexadecimal or decimal"
                          },
                          "completed_timestamp": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Numeric",
                            "description": "A number represented in hexadecimal or decimal"
                          },
                          "creator_amount": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "boost_amount": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          }
                        },
                        "required": [
                          "token0",
                          "token1",
                          "config",
                          "total_sale_rate",
                          "participants_count",
                          "creator_proceeds_collected",
                          "boost_rate",
                          "boost_end_time",
                          "completed_timestamp",
                          "creator_amount",
                          "boost_amount"
                        ]
                      }
                    }
                  },
                  "required": [
                    "current_owner",
                    "auctions"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/auctions/{chainId}/{nftAddress}/{id}/image.svg": {
      "get": {
        "tags": [
          "Auctions"
        ],
        "summary": "Get auction NFT image",
        "description": "Returns the generated NFT image for auction NFTs; route shape matches positions and orders",
        "operationId": "get_GetAuctionNftImage",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to generate metadata"
            },
            "required": true,
            "description": "Chain ID for which to generate metadata",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The NFT contract address"
            },
            "required": true,
            "description": "The NFT contract address",
            "name": "nftAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The NFT image"
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/launches": {
      "get": {
        "tags": [
          "Launches"
        ],
        "operationId": "get_ListLaunches",
        "summary": "List supported zero-seed launches across chains, with status, owner and creator filters, ordering and market aggregates",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "required": false,
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "trading",
                "upcoming"
              ],
              "default": "all"
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": false,
            "description": "An address on the specified blockchain network",
            "name": "owner",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": false,
            "description": "An address on the specified blockchain network",
            "name": "creator",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "market_cap",
                "volume",
                "sold_share",
                "trade_count",
                "created"
              ],
              "default": "market_cap",
              "description": "Descending, over every launch matching the filters before offset and limit; ties newest first. market_cap and volume rank launches with a USD value first, by USD, then the rest by whole quote units (raw / 10^decimals); created is newest first"
            },
            "required": false,
            "description": "Descending, over every launch matching the filters before offset and limit; ties newest first. market_cap and volume rank launches with a USD value first, by USD, then the rest by whole quote units (raw / 10^decimals); created is newest first",
            "name": "order_by",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "maximum": 100000,
              "default": 0
            },
            "required": false,
            "name": "offset",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "required": false,
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Indexed zero-seed launch data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "enum": [
                        "zero-seed-launch-api/v7"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "schema_version": {
                            "type": "string",
                            "enum": [
                              "zero-seed-launch-api/v7"
                            ]
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "pool_id": {
                            "type": "string",
                            "pattern": "^0x[0-9a-f]{64}$"
                          },
                          "pool_key": {
                            "type": "object",
                            "properties": {
                              "core_address": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{40}$"
                              },
                              "token0": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{40}$"
                              },
                              "token1": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{40}$"
                              },
                              "config": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              },
                              "fee": {
                                "type": "string",
                                "enum": [
                                  "0"
                                ]
                              },
                              "tick_spacing": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "extension": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{40}$"
                              }
                            },
                            "required": [
                              "core_address",
                              "token0",
                              "token1",
                              "config",
                              "fee",
                              "tick_spacing",
                              "extension"
                            ],
                            "additionalProperties": false
                          },
                          "token": {
                            "type": "object",
                            "properties": {
                              "address": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{40}$"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "symbol": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "decimals": {
                                "type": "number",
                                "enum": [
                                  18
                                ]
                              }
                            },
                            "required": [
                              "address",
                              "name",
                              "symbol",
                              "decimals"
                            ],
                            "additionalProperties": false
                          },
                          "quote_token": {
                            "type": "object",
                            "properties": {
                              "address": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{40}$"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "symbol": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "decimals": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "minimum": 0,
                                "maximum": 255
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "native",
                                  "erc20"
                                ]
                              }
                            },
                            "required": [
                              "address",
                              "name",
                              "symbol",
                              "decimals",
                              "kind"
                            ],
                            "additionalProperties": false
                          },
                          "launch_token_is_token1": {
                            "type": "boolean"
                          },
                          "controller": {
                            "type": "string",
                            "pattern": "^0x[0-9a-f]{40}$"
                          },
                          "creator": {
                            "type": "string",
                            "pattern": "^0x[0-9a-f]{40}$"
                          },
                          "owner": {
                            "type": "string",
                            "pattern": "^0x[0-9a-f]{40}$"
                          },
                          "logo_url": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "LaunchCreated.logoUrl exactly as emitted; null when empty or not valid UTF-8. Untrusted: never fetched or rewritten here"
                          },
                          "parameters": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              },
                              "symbol": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              },
                              "supply": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "quote_token": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{40}$"
                              },
                              "ask_tick": {
                                "type": "string",
                                "pattern": "^(0|-?[1-9][0-9]*)$"
                              },
                              "upper_tick": {
                                "type": "string",
                                "pattern": "^(0|-?[1-9][0-9]*)$"
                              },
                              "trading_start": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "decay_rate_x32": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "initial_fee": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "Q0.64 fee rate as a canonical decimal uint64 (0 to 18446744073709551615): the fee fraction is value / 2^64"
                              },
                              "final_fee": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "Q0.64 fee rate as a canonical decimal uint64 (0 to 18446744073709551615): the fee fraction is value / 2^64"
                              },
                              "salt": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              }
                            },
                            "required": [
                              "name",
                              "symbol",
                              "supply",
                              "quote_token",
                              "ask_tick",
                              "upper_tick",
                              "trading_start",
                              "decay_rate_x32",
                              "initial_fee",
                              "final_fee",
                              "salt"
                            ],
                            "additionalProperties": false
                          },
                          "range": {
                            "type": "object",
                            "properties": {
                              "tick_spacing": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "aligned_ask_tick": {
                                "type": "integer"
                              },
                              "aligned_upper_tick": {
                                "type": "integer"
                              },
                              "pool_tick_lower": {
                                "type": "integer"
                              },
                              "pool_tick_upper": {
                                "type": "integer"
                              }
                            },
                            "required": [
                              "tick_spacing",
                              "aligned_ask_tick",
                              "aligned_upper_tick",
                              "pool_tick_lower",
                              "pool_tick_upper"
                            ],
                            "additionalProperties": false
                          },
                          "supply": {
                            "type": "object",
                            "properties": {
                              "requested": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "installed": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "sink": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "sink_holder": {
                                "type": "string",
                                "enum": [
                                  "0x0000000000000000000000000000000000000000"
                                ]
                              }
                            },
                            "required": [
                              "requested",
                              "installed",
                              "sink",
                              "sink_holder"
                            ],
                            "additionalProperties": false
                          },
                          "trading_start": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "upcoming",
                              "trading"
                            ],
                            "description": "upcoming while evaluated_at < trading_start, else trading"
                          },
                          "fee_schedule": {
                            "type": "object",
                            "properties": {
                              "trading_start": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "initial_fee": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "Q0.64 fee rate as a canonical decimal uint64 (0 to 18446744073709551615): the fee fraction is value / 2^64"
                              },
                              "final_fee": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "Q0.64 fee rate as a canonical decimal uint64 (0 to 18446744073709551615): the fee fraction is value / 2^64"
                              },
                              "decay_rate_x32": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "decayRateX32: unsigned Q32.32 ticks per second as a canonical decimal uint64; 0 keeps initial_fee"
                              },
                              "half_life_seconds": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^(0|[1-9][0-9]*)\\.[0-9]{6}$",
                                "description": "Half-life of the excess over the floor, seconds with 6 decimals (floored); null for rate 0. Display only"
                              },
                              "saturation_elapsed_seconds": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "floor(381061679028371455 / decay_rate_x32): after this many seconds the fee is exactly final_fee; null for rate 0"
                              },
                              "phase": {
                                "type": "string",
                                "enum": [
                                  "before_trading_start",
                                  "decaying",
                                  "at_floor",
                                  "constant"
                                ]
                              },
                              "fee_rate": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "Q0.64 fee rate as a canonical decimal uint64 (0 to 18446744073709551615): the fee fraction is value / 2^64"
                              },
                              "evaluated_at": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "required": [
                              "trading_start",
                              "initial_fee",
                              "final_fee",
                              "decay_rate_x32",
                              "half_life_seconds",
                              "saturation_elapsed_seconds",
                              "phase",
                              "fee_rate",
                              "evaluated_at"
                            ],
                            "additionalProperties": false
                          },
                          "market": {
                            "type": "object",
                            "properties": {
                              "price_tick": {
                                "type": "integer"
                              },
                              "price_x128": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "market_cap": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "floor(price * totalSupply) in raw quote units; totalSupply includes the sink"
                              },
                              "market_cap_usd": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^(0|[1-9][0-9]*)\\.[0-9]{6}$",
                                "description": "market_cap / 10^quote decimals * the indexed quote USD price, rounded to 6 decimals; null when the quote has no indexed price or no known decimals"
                              },
                              "raised": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "Quote held by the launch pool (buyers' net input)"
                              },
                              "sold": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "installed - launch tokens left in the pool"
                              },
                              "sold_share": {
                                "type": "string",
                                "pattern": "^[01]\\.[0-9]{18}$",
                                "description": "sold / installed, 18 decimals, floored"
                              },
                              "trade_count": {
                                "type": "integer",
                                "minimum": 0,
                                "description": "LaunchSwapped events of the launch, zero fills included"
                              },
                              "volume": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "Sum of |quote delta| over every LaunchSwapped of the launch, buys and sells, fee-inclusive, in raw quote base units"
                              },
                              "volume_usd": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^(0|[1-9][0-9]*)\\.[0-9]{6}$",
                                "description": "volume / 10^quote decimals * the indexed quote USD price, rounded to 6 decimals; null exactly when market_cap_usd is"
                              }
                            },
                            "required": [
                              "price_tick",
                              "price_x128",
                              "market_cap",
                              "market_cap_usd",
                              "raised",
                              "sold",
                              "sold_share",
                              "trade_count",
                              "volume",
                              "volume_usd"
                            ],
                            "additionalProperties": false
                          },
                          "created": {
                            "type": "object",
                            "properties": {
                              "block_number": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "block_hash": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              },
                              "block_time": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "event_id": {
                                "type": "string",
                                "pattern": "^(0|-?[1-9][0-9]*)$"
                              },
                              "transaction_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "event_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              }
                            },
                            "required": [
                              "block_number",
                              "block_hash",
                              "block_time",
                              "event_id",
                              "transaction_index",
                              "event_index",
                              "transaction_hash"
                            ],
                            "additionalProperties": false
                          },
                          "as_of": {
                            "type": "object",
                            "properties": {
                              "block_number": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "block_hash": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              },
                              "block_time": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "required": [
                              "block_number",
                              "block_hash",
                              "block_time"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "schema_version",
                          "chain_id",
                          "pool_id",
                          "pool_key",
                          "token",
                          "quote_token",
                          "launch_token_is_token1",
                          "controller",
                          "creator",
                          "owner",
                          "logo_url",
                          "parameters",
                          "range",
                          "supply",
                          "trading_start",
                          "status",
                          "fee_schedule",
                          "market",
                          "created",
                          "as_of"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "total": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "all": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "trading": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "upcoming": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "all",
                        "trading",
                        "upcoming"
                      ],
                      "additionalProperties": false
                    },
                    "aggregates": {
                      "type": "object",
                      "properties": {
                        "launch_count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "trade_count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "by_quote": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "chain_id": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "quote_token": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{40}$"
                              },
                              "launch_count": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "trade_count": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "volume": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "Sum of market.volume, raw quote units"
                              },
                              "market_cap": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$",
                                "description": "Sum of market.market_cap, raw quote units"
                              },
                              "usd_priced": {
                                "type": "boolean",
                                "description": "The quote has an indexed USD price and known decimals"
                              },
                              "volume_usd": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^(0|[1-9][0-9]*)\\.[0-9]{6}$"
                              },
                              "market_cap_usd": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^(0|[1-9][0-9]*)\\.[0-9]{6}$"
                              }
                            },
                            "required": [
                              "chain_id",
                              "quote_token",
                              "launch_count",
                              "trade_count",
                              "volume",
                              "market_cap",
                              "usd_priced",
                              "volume_usd",
                              "market_cap_usd"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "usd": {
                          "type": "object",
                          "properties": {
                            "volume": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^(0|[1-9][0-9]*)\\.[0-9]{6}$",
                              "description": "Sum of market.volume_usd over priced launches; null when none is priced"
                            },
                            "market_cap": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^(0|[1-9][0-9]*)\\.[0-9]{6}$",
                              "description": "Sum of market.market_cap_usd over priced launches; null when none is priced"
                            },
                            "priced_launch_count": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "excluded_launch_count": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "Launches left out of the USD sums because their quote has no indexed price"
                            }
                          },
                          "required": [
                            "volume",
                            "market_cap",
                            "priced_launch_count",
                            "excluded_launch_count"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "launch_count",
                        "trade_count",
                        "by_quote",
                        "usd"
                      ],
                      "additionalProperties": false,
                      "description": "Over every launch matching all filters (the set total counts), not one page. by_quote is ordered by chain_id, then quote_token"
                    },
                    "next_offset": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "exclusiveMinimum": 0
                    },
                    "evaluated_at": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "heads": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "block_number": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "block_hash": {
                            "type": "string",
                            "pattern": "^0x[0-9a-f]{64}$"
                          },
                          "block_time": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          }
                        },
                        "required": [
                          "block_number",
                          "block_hash",
                          "block_time",
                          "chain_id"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "schema_version",
                    "data",
                    "total",
                    "totals",
                    "aggregates",
                    "next_offset",
                    "evaluated_at",
                    "heads"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The indexed head is missing, inconsistent or stale",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/launches/{chainId}/{poolId}/claims": {
      "get": {
        "tags": [
          "Launches"
        ],
        "operationId": "get_ListLaunchClaims",
        "summary": "List creator fee claims, one row per claim (extension event, periphery owner and recipient)",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "required": true,
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "poolId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "after_event_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "required": false,
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Indexed zero-seed launch data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "enum": [
                        "zero-seed-launch-api/v7"
                      ]
                    },
                    "chain_id": {
                      "type": "string",
                      "pattern": "^(0|[1-9][0-9]*)$"
                    },
                    "pool_id": {
                      "type": "string",
                      "pattern": "^0x[0-9a-f]{64}$"
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "as_of": {
                      "type": "object",
                      "properties": {
                        "block_number": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "block_hash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{64}$"
                        },
                        "block_time": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "block_number",
                        "block_hash",
                        "block_time"
                      ],
                      "additionalProperties": false
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "event": {
                            "type": "object",
                            "properties": {
                              "block_number": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "block_hash": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              },
                              "block_time": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "event_id": {
                                "type": "string",
                                "pattern": "^(0|-?[1-9][0-9]*)$"
                              },
                              "transaction_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "event_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              }
                            },
                            "required": [
                              "block_number",
                              "block_hash",
                              "block_time",
                              "event_id",
                              "transaction_index",
                              "event_index",
                              "transaction_hash"
                            ],
                            "additionalProperties": false
                          },
                          "payout_event_id": {
                            "type": "string",
                            "pattern": "^(0|-?[1-9][0-9]*)$"
                          },
                          "owner": {
                            "type": "string",
                            "pattern": "^0x[0-9a-f]{40}$"
                          },
                          "recipient": {
                            "type": "string",
                            "pattern": "^0x[0-9a-f]{40}$"
                          },
                          "launch_token_amount": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "quote_token_amount": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          }
                        },
                        "required": [
                          "event",
                          "payout_event_id",
                          "owner",
                          "recipient",
                          "launch_token_amount",
                          "quote_token_amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "launch_token": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "quote_token": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        }
                      },
                      "required": [
                        "launch_token",
                        "quote_token"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schema_version",
                    "chain_id",
                    "pool_id",
                    "next_cursor",
                    "as_of",
                    "data",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The indexed head is missing, inconsistent or stale",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/launches/{chainId}/{poolId}/owners": {
      "get": {
        "tags": [
          "Launches"
        ],
        "operationId": "get_ListLaunchOwners",
        "summary": "List the creation owner and every later ownership transfer",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "required": true,
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "poolId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "after_event_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "required": false,
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Indexed zero-seed launch data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "enum": [
                        "zero-seed-launch-api/v7"
                      ]
                    },
                    "chain_id": {
                      "type": "string",
                      "pattern": "^(0|[1-9][0-9]*)$"
                    },
                    "pool_id": {
                      "type": "string",
                      "pattern": "^0x[0-9a-f]{64}$"
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "as_of": {
                      "type": "object",
                      "properties": {
                        "block_number": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "block_hash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{64}$"
                        },
                        "block_time": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "block_number",
                        "block_hash",
                        "block_time"
                      ],
                      "additionalProperties": false
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "event": {
                            "type": "object",
                            "properties": {
                              "block_number": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "block_hash": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              },
                              "block_time": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "event_id": {
                                "type": "string",
                                "pattern": "^(0|-?[1-9][0-9]*)$"
                              },
                              "transaction_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "event_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              }
                            },
                            "required": [
                              "block_number",
                              "block_hash",
                              "block_time",
                              "event_id",
                              "transaction_index",
                              "event_index",
                              "transaction_hash"
                            ],
                            "additionalProperties": false
                          },
                          "previous_owner": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^0x[0-9a-f]{40}$"
                          },
                          "new_owner": {
                            "type": "string",
                            "pattern": "^0x[0-9a-f]{40}$"
                          }
                        },
                        "required": [
                          "event",
                          "previous_owner",
                          "new_owner"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "schema_version",
                    "chain_id",
                    "pool_id",
                    "next_cursor",
                    "as_of",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The indexed head is missing, inconsistent or stale",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/launches/{chainId}/{poolId}/swaps": {
      "get": {
        "tags": [
          "Launches"
        ],
        "operationId": "get_ListLaunchSwaps",
        "summary": "List swaps; forwarding lockers are contracts, not users",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "required": true,
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "poolId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "after_event_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "required": false,
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Indexed zero-seed launch data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "enum": [
                        "zero-seed-launch-api/v7"
                      ]
                    },
                    "chain_id": {
                      "type": "string",
                      "pattern": "^(0|[1-9][0-9]*)$"
                    },
                    "pool_id": {
                      "type": "string",
                      "pattern": "^0x[0-9a-f]{64}$"
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "as_of": {
                      "type": "object",
                      "properties": {
                        "block_number": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "block_hash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{64}$"
                        },
                        "block_time": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "block_number",
                        "block_hash",
                        "block_time"
                      ],
                      "additionalProperties": false
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "event": {
                            "type": "object",
                            "properties": {
                              "block_number": {
                                "type": "string",
                                "pattern": "^(0|[1-9][0-9]*)$"
                              },
                              "block_hash": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              },
                              "block_time": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "event_id": {
                                "type": "string",
                                "pattern": "^(0|-?[1-9][0-9]*)$"
                              },
                              "transaction_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "event_index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "transaction_hash": {
                                "type": "string",
                                "pattern": "^0x[0-9a-f]{64}$"
                              }
                            },
                            "required": [
                              "block_number",
                              "block_hash",
                              "block_time",
                              "event_id",
                              "transaction_index",
                              "event_index",
                              "transaction_hash"
                            ],
                            "additionalProperties": false
                          },
                          "forwarding_locker": {
                            "type": "string",
                            "pattern": "^0x[0-9a-f]{40}$"
                          },
                          "direction": {
                            "type": "string",
                            "enum": [
                              "buy",
                              "sell",
                              "zero_fill"
                            ]
                          },
                          "launch_token_delta": {
                            "type": "string",
                            "pattern": "^(0|-?[1-9][0-9]*)$"
                          },
                          "quote_token_delta": {
                            "type": "string",
                            "pattern": "^(0|-?[1-9][0-9]*)$"
                          },
                          "fee_rate": {
                            "type": "string",
                            "maxLength": 20,
                            "pattern": "^(0|[1-9][0-9]*)$",
                            "description": "Q0.64 fee rate as a canonical decimal uint64 (0 to 18446744073709551615): the fee fraction is value / 2^64"
                          },
                          "fee_amount": {
                            "type": "string",
                            "pattern": "^(0|[1-9][0-9]*)$"
                          },
                          "fee_asset": {
                            "type": "string",
                            "enum": [
                              "launch_token",
                              "quote_token"
                            ]
                          }
                        },
                        "required": [
                          "event",
                          "forwarding_locker",
                          "direction",
                          "launch_token_delta",
                          "quote_token_delta",
                          "fee_rate",
                          "fee_amount",
                          "fee_asset"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "schema_version",
                    "chain_id",
                    "pool_id",
                    "next_cursor",
                    "as_of",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The indexed head is missing, inconsistent or stale",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/launches/{chainId}/{poolId}": {
      "get": {
        "tags": [
          "Launches"
        ],
        "operationId": "get_GetLaunch",
        "summary": "Get a supported launch and separate principal/creator ledgers",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "required": true,
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "poolId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Indexed zero-seed launch data",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "enum": [
                        "zero-seed-launch-api/v7"
                      ]
                    },
                    "chain_id": {
                      "type": "string",
                      "pattern": "^(0|[1-9][0-9]*)$"
                    },
                    "pool_id": {
                      "type": "string",
                      "pattern": "^0x[0-9a-f]{64}$"
                    },
                    "pool_key": {
                      "type": "object",
                      "properties": {
                        "core_address": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "token0": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "token1": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "config": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{64}$"
                        },
                        "fee": {
                          "type": "string",
                          "enum": [
                            "0"
                          ]
                        },
                        "tick_spacing": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "extension": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        }
                      },
                      "required": [
                        "core_address",
                        "token0",
                        "token1",
                        "config",
                        "fee",
                        "tick_spacing",
                        "extension"
                      ],
                      "additionalProperties": false
                    },
                    "token": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "symbol": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "decimals": {
                          "type": "number",
                          "enum": [
                            18
                          ]
                        }
                      },
                      "required": [
                        "address",
                        "name",
                        "symbol",
                        "decimals"
                      ],
                      "additionalProperties": false
                    },
                    "quote_token": {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "symbol": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "decimals": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0,
                          "maximum": 255
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "native",
                            "erc20"
                          ]
                        }
                      },
                      "required": [
                        "address",
                        "name",
                        "symbol",
                        "decimals",
                        "kind"
                      ],
                      "additionalProperties": false
                    },
                    "launch_token_is_token1": {
                      "type": "boolean"
                    },
                    "controller": {
                      "type": "string",
                      "pattern": "^0x[0-9a-f]{40}$"
                    },
                    "creator": {
                      "type": "string",
                      "pattern": "^0x[0-9a-f]{40}$"
                    },
                    "owner": {
                      "type": "string",
                      "pattern": "^0x[0-9a-f]{40}$"
                    },
                    "logo_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "LaunchCreated.logoUrl exactly as emitted; null when empty or not valid UTF-8. Untrusted: never fetched or rewritten here"
                    },
                    "parameters": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{64}$"
                        },
                        "symbol": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{64}$"
                        },
                        "supply": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "quote_token": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "ask_tick": {
                          "type": "string",
                          "pattern": "^(0|-?[1-9][0-9]*)$"
                        },
                        "upper_tick": {
                          "type": "string",
                          "pattern": "^(0|-?[1-9][0-9]*)$"
                        },
                        "trading_start": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "decay_rate_x32": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "initial_fee": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^(0|[1-9][0-9]*)$",
                          "description": "Q0.64 fee rate as a canonical decimal uint64 (0 to 18446744073709551615): the fee fraction is value / 2^64"
                        },
                        "final_fee": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^(0|[1-9][0-9]*)$",
                          "description": "Q0.64 fee rate as a canonical decimal uint64 (0 to 18446744073709551615): the fee fraction is value / 2^64"
                        },
                        "salt": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{64}$"
                        }
                      },
                      "required": [
                        "name",
                        "symbol",
                        "supply",
                        "quote_token",
                        "ask_tick",
                        "upper_tick",
                        "trading_start",
                        "decay_rate_x32",
                        "initial_fee",
                        "final_fee",
                        "salt"
                      ],
                      "additionalProperties": false
                    },
                    "range": {
                      "type": "object",
                      "properties": {
                        "tick_spacing": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "aligned_ask_tick": {
                          "type": "integer"
                        },
                        "aligned_upper_tick": {
                          "type": "integer"
                        },
                        "pool_tick_lower": {
                          "type": "integer"
                        },
                        "pool_tick_upper": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "tick_spacing",
                        "aligned_ask_tick",
                        "aligned_upper_tick",
                        "pool_tick_lower",
                        "pool_tick_upper"
                      ],
                      "additionalProperties": false
                    },
                    "supply": {
                      "type": "object",
                      "properties": {
                        "requested": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "installed": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "sink": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "sink_holder": {
                          "type": "string",
                          "enum": [
                            "0x0000000000000000000000000000000000000000"
                          ]
                        }
                      },
                      "required": [
                        "requested",
                        "installed",
                        "sink",
                        "sink_holder"
                      ],
                      "additionalProperties": false
                    },
                    "trading_start": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "upcoming",
                        "trading"
                      ],
                      "description": "upcoming while evaluated_at < trading_start, else trading"
                    },
                    "fee_schedule": {
                      "type": "object",
                      "properties": {
                        "trading_start": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "initial_fee": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^(0|[1-9][0-9]*)$",
                          "description": "Q0.64 fee rate as a canonical decimal uint64 (0 to 18446744073709551615): the fee fraction is value / 2^64"
                        },
                        "final_fee": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^(0|[1-9][0-9]*)$",
                          "description": "Q0.64 fee rate as a canonical decimal uint64 (0 to 18446744073709551615): the fee fraction is value / 2^64"
                        },
                        "decay_rate_x32": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^(0|[1-9][0-9]*)$",
                          "description": "decayRateX32: unsigned Q32.32 ticks per second as a canonical decimal uint64; 0 keeps initial_fee"
                        },
                        "half_life_seconds": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^(0|[1-9][0-9]*)\\.[0-9]{6}$",
                          "description": "Half-life of the excess over the floor, seconds with 6 decimals (floored); null for rate 0. Display only"
                        },
                        "saturation_elapsed_seconds": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^(0|[1-9][0-9]*)$",
                          "description": "floor(381061679028371455 / decay_rate_x32): after this many seconds the fee is exactly final_fee; null for rate 0"
                        },
                        "phase": {
                          "type": "string",
                          "enum": [
                            "before_trading_start",
                            "decaying",
                            "at_floor",
                            "constant"
                          ]
                        },
                        "fee_rate": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^(0|[1-9][0-9]*)$",
                          "description": "Q0.64 fee rate as a canonical decimal uint64 (0 to 18446744073709551615): the fee fraction is value / 2^64"
                        },
                        "evaluated_at": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "trading_start",
                        "initial_fee",
                        "final_fee",
                        "decay_rate_x32",
                        "half_life_seconds",
                        "saturation_elapsed_seconds",
                        "phase",
                        "fee_rate",
                        "evaluated_at"
                      ],
                      "additionalProperties": false
                    },
                    "market": {
                      "type": "object",
                      "properties": {
                        "price_tick": {
                          "type": "integer"
                        },
                        "price_x128": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "market_cap": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$",
                          "description": "floor(price * totalSupply) in raw quote units; totalSupply includes the sink"
                        },
                        "market_cap_usd": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^(0|[1-9][0-9]*)\\.[0-9]{6}$",
                          "description": "market_cap / 10^quote decimals * the indexed quote USD price, rounded to 6 decimals; null when the quote has no indexed price or no known decimals"
                        },
                        "raised": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$",
                          "description": "Quote held by the launch pool (buyers' net input)"
                        },
                        "sold": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$",
                          "description": "installed - launch tokens left in the pool"
                        },
                        "sold_share": {
                          "type": "string",
                          "pattern": "^[01]\\.[0-9]{18}$",
                          "description": "sold / installed, 18 decimals, floored"
                        },
                        "trade_count": {
                          "type": "integer",
                          "minimum": 0,
                          "description": "LaunchSwapped events of the launch, zero fills included"
                        },
                        "volume": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$",
                          "description": "Sum of |quote delta| over every LaunchSwapped of the launch, buys and sells, fee-inclusive, in raw quote base units"
                        },
                        "volume_usd": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^(0|[1-9][0-9]*)\\.[0-9]{6}$",
                          "description": "volume / 10^quote decimals * the indexed quote USD price, rounded to 6 decimals; null exactly when market_cap_usd is"
                        }
                      },
                      "required": [
                        "price_tick",
                        "price_x128",
                        "market_cap",
                        "market_cap_usd",
                        "raised",
                        "sold",
                        "sold_share",
                        "trade_count",
                        "volume",
                        "volume_usd"
                      ],
                      "additionalProperties": false
                    },
                    "created": {
                      "type": "object",
                      "properties": {
                        "block_number": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "block_hash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{64}$"
                        },
                        "block_time": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "event_id": {
                          "type": "string",
                          "pattern": "^(0|-?[1-9][0-9]*)$"
                        },
                        "transaction_index": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "event_index": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "transaction_hash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{64}$"
                        }
                      },
                      "required": [
                        "block_number",
                        "block_hash",
                        "block_time",
                        "event_id",
                        "transaction_index",
                        "event_index",
                        "transaction_hash"
                      ],
                      "additionalProperties": false
                    },
                    "as_of": {
                      "type": "object",
                      "properties": {
                        "block_number": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "block_hash": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{64}$"
                        },
                        "block_time": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "block_number",
                        "block_hash",
                        "block_time"
                      ],
                      "additionalProperties": false
                    },
                    "principal": {
                      "type": "object",
                      "properties": {
                        "position_id": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{64}$"
                        },
                        "liquidity": {
                          "type": "string",
                          "pattern": "^(0|[1-9][0-9]*)$"
                        },
                        "locked": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "withdrawable": {
                          "type": "boolean",
                          "enum": [
                            false
                          ]
                        },
                        "pool_reserves": {
                          "type": "object",
                          "properties": {
                            "launch_token": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "quote_token": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            }
                          },
                          "required": [
                            "launch_token",
                            "quote_token"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "position_id",
                        "liquidity",
                        "locked",
                        "withdrawable",
                        "pool_reserves"
                      ],
                      "additionalProperties": false
                    },
                    "fee_ledger": {
                      "type": "object",
                      "properties": {
                        "holder": {
                          "type": "string",
                          "pattern": "^0x[0-9a-f]{40}$"
                        },
                        "launch_token": {
                          "type": "object",
                          "properties": {
                            "accrued": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "claimed": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "unclaimed": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            }
                          },
                          "required": [
                            "accrued",
                            "claimed",
                            "unclaimed"
                          ],
                          "additionalProperties": false
                        },
                        "quote_token": {
                          "type": "object",
                          "properties": {
                            "accrued": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "claimed": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            },
                            "unclaimed": {
                              "type": "string",
                              "pattern": "^(0|[1-9][0-9]*)$"
                            }
                          },
                          "required": [
                            "accrued",
                            "claimed",
                            "unclaimed"
                          ],
                          "additionalProperties": false
                        },
                        "swap_count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "claim_count": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "owner_change_count": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "last_event_id": {
                          "type": "string",
                          "pattern": "^(0|-?[1-9][0-9]*)$"
                        }
                      },
                      "required": [
                        "holder",
                        "launch_token",
                        "quote_token",
                        "swap_count",
                        "claim_count",
                        "owner_change_count",
                        "last_event_id"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schema_version",
                    "chain_id",
                    "pool_id",
                    "pool_key",
                    "token",
                    "quote_token",
                    "launch_token_is_token1",
                    "controller",
                    "creator",
                    "owner",
                    "logo_url",
                    "parameters",
                    "range",
                    "supply",
                    "trading_start",
                    "status",
                    "fee_schedule",
                    "market",
                    "created",
                    "as_of",
                    "principal",
                    "fee_ledger"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The indexed head is missing, inconsistent or stale",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/governance/{chainId}/proposals": {
      "get": {
        "tags": [
          "Governance"
        ],
        "summary": "List Proposals",
        "description": "Returns the list of all proposals",
        "operationId": "get_ListProposals",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to list proposals"
            },
            "required": true,
            "description": "Chain ID for which to list proposals",
            "name": "chainId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The list of proposals",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "proposals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "createdTime": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "calls": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "to": {
                                  "type": "string",
                                  "pattern": "^0x[a-fA-F0-9]+$",
                                  "description": "A hexadecimal number"
                                },
                                "selector": {
                                  "type": "string",
                                  "pattern": "^0x[a-fA-F0-9]+$",
                                  "description": "A hexadecimal number"
                                },
                                "calldata": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  }
                                }
                              },
                              "required": [
                                "to",
                                "selector",
                                "calldata"
                              ]
                            }
                          },
                          "results": {
                            "type": "array",
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              }
                            }
                          },
                          "executed_tx_hash": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "createdTime",
                          "description",
                          "calls",
                          "results",
                          "executed_tx_hash"
                        ]
                      }
                    }
                  },
                  "required": [
                    "proposals"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/governance/{chainId}/delegates": {
      "get": {
        "tags": [
          "Governance"
        ],
        "summary": "List Top Delegates",
        "description": "Returns the list of top delegates",
        "operationId": "get_ListTopDelegates",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to list top delegates"
            },
            "required": true,
            "description": "Chain ID for which to list top delegates",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100
            },
            "required": false,
            "name": "pageSize",
            "in": "query"
          },
          {
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "default": 0
            },
            "required": false,
            "name": "start",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The list of top delegates",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "delegates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "delegate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            ],
                            "title": "Address",
                            "description": "An address on the specified blockchain network"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "votingRecord": {
                            "type": "object",
                            "properties": {
                              "yea": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "nay": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "missed": {
                                "type": "integer",
                                "minimum": 0
                              }
                            },
                            "required": [
                              "yea",
                              "nay",
                              "missed"
                            ]
                          }
                        },
                        "required": [
                          "delegate",
                          "amount",
                          "votingRecord"
                        ]
                      }
                    }
                  },
                  "required": [
                    "delegates"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/governance/{chainId}/proposals/{proposalId}/votes": {
      "get": {
        "tags": [
          "Governance"
        ],
        "summary": "List Votes",
        "description": "Returns the list of votes on a proposal",
        "operationId": "get_ListVotesOnProposal",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to list proposals"
            },
            "required": true,
            "description": "Chain ID for which to list proposals",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]+$",
              "description": "The ID of the proposal"
            },
            "required": true,
            "description": "The ID of the proposal",
            "name": "proposalId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The list of votes on a specific proposal",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "votes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "time": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "voter": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            ],
                            "title": "Address",
                            "description": "An address on the specified blockchain network"
                          },
                          "weight": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "yea": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "time",
                          "voter",
                          "weight",
                          "yea"
                        ]
                      }
                    }
                  },
                  "required": [
                    "votes"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/governance/{chainId}/proposals/{proposalId}/voters": {
      "get": {
        "tags": [
          "Governance"
        ],
        "summary": "List Voters",
        "description": "Returns the list of voters for a proposal and their votes",
        "operationId": "get_ListProposalVoters",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to list proposals"
            },
            "required": true,
            "description": "Chain ID for which to list proposals",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]+$",
              "description": "The ID of the proposal"
            },
            "required": true,
            "description": "The ID of the proposal",
            "name": "proposalId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The list of voters and their weights for a specific proposal",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "voters": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "voter": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            ],
                            "title": "Address",
                            "description": "An address on the specified blockchain network"
                          },
                          "weight": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "vote": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "time": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "yea": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "time",
                                  "yea"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "voter",
                          "weight",
                          "vote"
                        ]
                      }
                    }
                  },
                  "required": [
                    "voters"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/governance/{chainId}/delegates/{address}": {
      "get": {
        "tags": [
          "Governance"
        ],
        "summary": "Get Staker Info",
        "description": "Returns information about a particular staker address: the addresses they have delegated to and the total amount delegated to them",
        "operationId": "get_GetStakerInfo",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "Chain ID for which to look up staker data"
            },
            "required": true,
            "description": "Chain ID for which to look up staker data",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The address for which to look up staker data"
            },
            "required": true,
            "description": "The address for which to look up staker data",
            "name": "address",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Information about the given staker",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "amountDelegatedTo": {
                      "type": "string",
                      "pattern": "^\\d+$",
                      "description": "A decimal number"
                    },
                    "delegates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "delegate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            ],
                            "title": "Address",
                            "description": "An address on the specified blockchain network"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          }
                        },
                        "required": [
                          "delegate",
                          "amount"
                        ]
                      }
                    }
                  },
                  "required": [
                    "amountDelegatedTo",
                    "delegates"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/ve33/{ve33Address}/pools": {
      "get": {
        "tags": [
          "ve33"
        ],
        "summary": "List ve33 pools",
        "description": "Returns the pools for a ve33 extension",
        "operationId": "get_ListVe33Pools",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The ve33 extension contract address"
            },
            "required": true,
            "description": "The ve33 extension contract address",
            "name": "ve33Address",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Restrict results to a specific chain ID",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "Restrict results to a specific chain ID",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "description": "Maximum number of ve33 pools to return per page. Returns all pools when omitted."
            },
            "required": false,
            "description": "Maximum number of ve33 pools to return per page. Returns all pools when omitted.",
            "name": "pageSize",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "description": "Page number to fetch (1-indexed). Values above 1 require pageSize."
            },
            "required": false,
            "description": "Page number to fetch (1-indexed). Values above 1 require pageSize.",
            "name": "page",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The ve33 pools",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "pool_key_id": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "pool_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "token0": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "token1": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "fee": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "tick_spacing": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "core_address": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "extension": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "pool_key": {
                            "type": "object",
                            "properties": {
                              "token0": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "token1": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "fee": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "tick_spacing": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "extension": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "stableswap_params": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "center_tick": {
                                    "type": "integer"
                                  },
                                  "amplification": {
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "center_tick",
                                  "amplification"
                                ]
                              }
                            },
                            "required": [
                              "token0",
                              "token1",
                              "fee",
                              "tick_spacing",
                              "extension",
                              "stableswap_params"
                            ]
                          },
                          "pool_state": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "sqrt_ratio": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              },
                              "tick": {
                                "type": "integer"
                              },
                              "liquidity": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            },
                            "required": [
                              "sqrt_ratio",
                              "tick",
                              "liquidity"
                            ]
                          },
                          "pool_total_vote_weight": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "swap_fee": {
                            "type": "string"
                          },
                          "volume0_24h": {
                            "type": "string"
                          },
                          "volume1_24h": {
                            "type": "string"
                          },
                          "fees0_24h": {
                            "type": "string"
                          },
                          "fees1_24h": {
                            "type": "string"
                          },
                          "ve33_fees0_24h": {
                            "type": "string"
                          },
                          "ve33_fees1_24h": {
                            "type": "string"
                          },
                          "ve33_fees0_7d": {
                            "type": "string"
                          },
                          "ve33_fees1_7d": {
                            "type": "string"
                          },
                          "ve33_fees0_all": {
                            "type": "string"
                          },
                          "ve33_fees1_all": {
                            "type": "string"
                          },
                          "ve33_fees_since": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tvl0_delta_24h": {
                            "type": "string"
                          },
                          "tvl0_total": {
                            "type": "string"
                          },
                          "tvl1_delta_24h": {
                            "type": "string"
                          },
                          "tvl1_total": {
                            "type": "string"
                          },
                          "depth0": {
                            "type": "string"
                          },
                          "depth1": {
                            "type": "string"
                          },
                          "depth_percent": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "last_event_id": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          }
                        },
                        "required": [
                          "chain_id",
                          "pool_key_id",
                          "pool_id",
                          "token0",
                          "token1",
                          "fee",
                          "tick_spacing",
                          "core_address",
                          "extension",
                          "pool_key",
                          "pool_state",
                          "pool_total_vote_weight",
                          "swap_fee",
                          "volume0_24h",
                          "volume1_24h",
                          "fees0_24h",
                          "fees1_24h",
                          "ve33_fees0_24h",
                          "ve33_fees1_24h",
                          "ve33_fees0_7d",
                          "ve33_fees1_7d",
                          "ve33_fees0_all",
                          "ve33_fees1_all",
                          "ve33_fees_since",
                          "tvl0_delta_24h",
                          "tvl0_total",
                          "tvl1_delta_24h",
                          "tvl1_total",
                          "depth0",
                          "depth1",
                          "depth_percent",
                          "last_event_id"
                        ]
                      }
                    },
                    "total_vote_weight": {
                      "type": "string",
                      "pattern": "^\\d+$",
                      "description": "A decimal number"
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "page": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "pageSize": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "page",
                        "pageSize",
                        "totalPages",
                        "totalItems"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "total_vote_weight",
                    "pagination"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/ve33/{ve33Address}/voters": {
      "get": {
        "tags": [
          "ve33"
        ],
        "summary": "List ve33 voters",
        "description": "Returns active voters and their total applied voting weight for a ve33 extension",
        "operationId": "get_ListVe33Voters",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The ve33 extension contract address"
            },
            "required": true,
            "description": "The ve33 extension contract address",
            "name": "ve33Address",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Restrict results to a specific chain ID",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "Restrict results to a specific chain ID",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "description": "Maximum number of ve33 voters to return per page. Returns all voters when omitted."
            },
            "required": false,
            "description": "Maximum number of ve33 voters to return per page. Returns all voters when omitted.",
            "name": "pageSize",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "description": "Page number to fetch (1-indexed). Values above 1 require pageSize."
            },
            "required": false,
            "description": "Page number to fetch (1-indexed). Values above 1 require pageSize.",
            "name": "page",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The active ve33 voters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "voter": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            ],
                            "title": "Address",
                            "description": "An address on the specified blockchain network"
                          },
                          "total_vote_weight": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          }
                        },
                        "required": [
                          "voter",
                          "total_vote_weight"
                        ]
                      }
                    },
                    "total_vote_weight": {
                      "type": "string",
                      "pattern": "^\\d+$",
                      "description": "A decimal number"
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "page": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "pageSize": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "page",
                        "pageSize",
                        "totalPages",
                        "totalItems"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "total_vote_weight",
                    "pagination"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/ve33/{veTokenAddress}/{address}": {
      "get": {
        "tags": [
          "ve33"
        ],
        "summary": "List ve33 tokens",
        "description": "Returns the list of ve33 tokens owned by the address",
        "operationId": "get_ListVe33TokensByAddress",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The veNFT contract address"
            },
            "required": true,
            "description": "The veNFT contract address",
            "name": "veTokenAddress",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "The address for which to list ve33 tokens"
            },
            "required": true,
            "description": "The address for which to list ve33 tokens",
            "name": "address",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Restrict results to a specific chain ID",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "Restrict results to a specific chain ID",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50,
              "description": "Maximum number of ve33 tokens to return per page"
            },
            "required": false,
            "description": "Maximum number of ve33 tokens to return per page",
            "name": "pageSize",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "description": "Page number to fetch (1-indexed)"
            },
            "required": false,
            "description": "Page number to fetch (1-indexed)",
            "name": "page",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The ve33 tokens owned by the address",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "owner": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "ve_token_address": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "ve33_address": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "token_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "stake_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "end_time": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "voted_pool_id": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "voted_pool_key": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "token0": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "token1": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "fee": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "tick_spacing": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "extension": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "stableswap_params": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "center_tick": {
                                    "type": "integer"
                                  },
                                  "amplification": {
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "center_tick",
                                  "amplification"
                                ]
                              }
                            },
                            "required": [
                              "token0",
                              "token1",
                              "fee",
                              "tick_spacing",
                              "extension",
                              "stableswap_params"
                            ]
                          },
                          "pool_key_id": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "applied_vote_weight": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "voted_swap_fee": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "pool_total_vote_weight": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "minted_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "mint_transaction_hash": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "last_stake_changed_event_id": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "last_transfer_event_id": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          }
                        },
                        "required": [
                          "chain_id",
                          "owner",
                          "ve_token_address",
                          "ve33_address",
                          "token_id",
                          "stake_id",
                          "amount",
                          "end_time",
                          "voted_pool_id",
                          "voted_pool_key",
                          "pool_key_id",
                          "applied_vote_weight",
                          "voted_swap_fee",
                          "pool_total_vote_weight",
                          "minted_at",
                          "mint_transaction_hash",
                          "last_stake_changed_event_id",
                          "last_transfer_event_id"
                        ]
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "page": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "pageSize": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "page",
                        "pageSize",
                        "totalPages",
                        "totalItems"
                      ]
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/campaigns": {
      "get": {
        "tags": [
          "Incentives"
        ],
        "summary": "List campaigns",
        "description": "List all the liquidity incentive campaigns",
        "operationId": "get_ListCampaigns",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Restrict campaigns to the specified chain ID",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "Restrict campaigns to the specified chain ID",
            "name": "chainId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The list of campaigns",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "campaigns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "slug": {
                            "type": "string"
                          },
                          "chain_id": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "coreAddress": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "allowedLockers": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^0x[a-fA-F0-9]+$",
                                  "description": "A hexadecimal number"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "rewardToken": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            ],
                            "title": "Address",
                            "description": "An address on the specified blockchain network"
                          },
                          "startTime": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "endTime": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time"
                          },
                          "nextDropTime": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time"
                          },
                          "allowedExtensions": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^0x[a-fA-F0-9]+$",
                                  "description": "A hexadecimal number"
                                },
                                {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                }
                              ],
                              "title": "Address",
                              "description": "An address on the specified blockchain network"
                            }
                          },
                          "pairs": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "token0": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^0x[a-fA-F0-9]+$",
                                      "description": "A hexadecimal number"
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^\\d+$",
                                      "description": "A decimal number"
                                    }
                                  ],
                                  "title": "Address",
                                  "description": "An address on the specified blockchain network"
                                },
                                "token1": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^0x[a-fA-F0-9]+$",
                                      "description": "A hexadecimal number"
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^\\d+$",
                                      "description": "A decimal number"
                                    }
                                  ],
                                  "title": "Address",
                                  "description": "An address on the specified blockchain network"
                                },
                                "depth_percent": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "minimum": 0
                                },
                                "depth0": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "depth1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "distributed": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "scheduled": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "daily_rewards": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "daily_rewards_token0": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "daily_rewards_token1": {
                                  "type": "string",
                                  "pattern": "^\\d+$",
                                  "description": "A decimal number"
                                },
                                "realized_volatility": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "token0",
                                "token1",
                                "depth_percent",
                                "depth0",
                                "depth1",
                                "distributed",
                                "scheduled",
                                "daily_rewards",
                                "daily_rewards_token0",
                                "daily_rewards_token1",
                                "realized_volatility"
                              ]
                            }
                          }
                        },
                        "required": [
                          "slug",
                          "chain_id",
                          "coreAddress",
                          "allowedLockers",
                          "name",
                          "rewardToken",
                          "startTime",
                          "endTime",
                          "nextDropTime",
                          "allowedExtensions",
                          "pairs"
                        ]
                      }
                    }
                  },
                  "required": [
                    "campaigns"
                  ],
                  "description": "Response for list campaigns endpoint"
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/rewards/{chainId}/{locker}/{salt}": {
      "get": {
        "tags": [
          "Incentives"
        ],
        "summary": "Get position rewards",
        "description": "Returns the computed rewards for a specified position",
        "operationId": "get_ListRewardsForLocker",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "locker",
            "in": "path"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Numeric",
              "description": "A number represented in hexadecimal or decimal"
            },
            "required": true,
            "description": "A number represented in hexadecimal or decimal",
            "name": "salt",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "Filter to rewards in periods that started at or after this time"
            },
            "required": false,
            "description": "Filter to rewards in periods that started at or after this time",
            "name": "startTime",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "Filter to rewards in periods that ended at or before this time"
            },
            "required": false,
            "description": "Filter to rewards in periods that ended at or before this time",
            "name": "endTime",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "24h"
              ],
              "description": "Also return incentiveInsights: earnings over the 24 hours ending at each campaign's latest computed reward period"
            },
            "required": false,
            "description": "Also return incentiveInsights: earnings over the 24 hours ending at each campaign's latest computed reward period",
            "name": "insights",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The computed rewards for each campaign and the specified position",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rewards": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "campaignSlug": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          },
                          "pending": {
                            "type": "string",
                            "pattern": "^\\d+$",
                            "description": "A decimal number"
                          }
                        },
                        "required": [
                          "campaignSlug",
                          "amount",
                          "pending"
                        ]
                      }
                    },
                    "incentiveInsights": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "campaignSlug": {
                            "type": "string"
                          },
                          "historyWindow": {
                            "type": "object",
                            "properties": {
                              "startTime": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "description": "Start of the window, inclusive; null when unavailable"
                              },
                              "endTime": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "description": "End of the window, exclusive. Equal to computedThrough; null when unavailable"
                              },
                              "amount": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^\\d+$",
                                "description": "Reward token base units earned in the window. complete: the exact amount, and \"0\" is a genuine zero. partial: an exact subtotal of the periods fully inside the window, a lower bound on the window's earnings. unavailable: always null"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "complete",
                                  "partial",
                                  "unavailable"
                                ],
                                "description": "complete: every reward period touching the window is computed and fully inside it, or earned this position nothing. partial: some period crossing the window edge earned this position rewards that cannot be split, so amount excludes them. unavailable: nothing has been computed, or no period fits inside the window"
                              }
                            },
                            "required": [
                              "startTime",
                              "endTime",
                              "amount",
                              "status"
                            ]
                          },
                          "computedThrough": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time",
                            "description": "Rewards for every period of the campaign ending at or before this time are computed. null when no period has been computed"
                          }
                        },
                        "required": [
                          "campaignSlug",
                          "historyWindow",
                          "computedThrough"
                        ],
                        "description": "The position's earnings over the 24 hours ending at the latest completed and computed reward period of the campaign"
                      },
                      "description": "Present only when insights=24h is requested. One entry per campaign the position has rewards in, plus every running campaign on the chain whose locker filter admits it. Independent of startTime and endTime"
                    }
                  },
                  "required": [
                    "rewards"
                  ],
                  "description": "The list of rewards for a specified position"
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/claims/{address}": {
      "get": {
        "tags": [
          "Incentives"
        ],
        "summary": "List available claims",
        "description": "Returns all the claims available for the address",
        "operationId": "get_ListClaimsForAddress",
        "parameters": [
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "address",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "Restrict claims to the specified chain ID",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": false,
            "description": "Restrict claims to the specified chain ID",
            "name": "chainId",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The list of claims for an address",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "claims": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "campaign": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "chainId": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "dropAddress": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]+$",
                            "description": "A hexadecimal number"
                          },
                          "key": {
                            "type": "object",
                            "properties": {
                              "owner": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  {
                                    "type": "string",
                                    "pattern": "^\\d+$",
                                    "description": "A decimal number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "title": "Address",
                                "description": "An address on the specified blockchain network"
                              },
                              "token": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              },
                              "root": {
                                "type": "string",
                                "pattern": "^0x[a-fA-F0-9]+$",
                                "description": "A hexadecimal number"
                              }
                            },
                            "required": [
                              "owner",
                              "token",
                              "root"
                            ]
                          },
                          "claim": {
                            "type": "object",
                            "properties": {
                              "index": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "account": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^0x[a-fA-F0-9]+$",
                                    "description": "A hexadecimal number"
                                  },
                                  {
                                    "type": "string",
                                    "pattern": "^\\d+$",
                                    "description": "A decimal number"
                                  }
                                ],
                                "title": "Address",
                                "description": "An address on the specified blockchain network"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^\\d+$",
                                "description": "A decimal number"
                              }
                            },
                            "required": [
                              "index",
                              "account",
                              "amount"
                            ]
                          },
                          "proof": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^0x[a-fA-F0-9]+$",
                              "description": "A hexadecimal number"
                            }
                          }
                        },
                        "required": [
                          "campaign",
                          "chainId",
                          "dropAddress",
                          "key",
                          "claim",
                          "proof"
                        ]
                      }
                    }
                  },
                  "required": [
                    "claims"
                  ],
                  "description": "The list of claims for the given address"
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/identity/x/link/start": {
      "post": {
        "tags": [
          "Identity"
        ],
        "summary": "Start linking an X account",
        "description": "Starts linking an X account to a wallet address. Returns the x.com authorization URL for the person to open and a private link ID. Linking is public: once linked, anyone can see the address's X handle. Then: GET /v1/identity/x/link/{link_id} with the code from X, sign typed_data, POST .../complete. Expires in 10 minutes",
        "operationId": "post_StartXLink",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "chain_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^0x[a-fA-F0-9]+$",
                        "description": "A hexadecimal number"
                      },
                      {
                        "type": "string",
                        "pattern": "^\\d+$",
                        "description": "A decimal number"
                      },
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      }
                    ],
                    "description": "Chain ID, decimal or 0x hex. Starknet mainnet is 0x534e5f4d41494e"
                  },
                  "address": {
                    "type": "string",
                    "maxLength": 66,
                    "description": "Wallet address, 0x hex",
                    "example": "0x7a16fF8270133F063aAb6C9977183D9e72835428"
                  },
                  "return_to": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri",
                    "description": "Page on an allowed Ekubo origin to send the browser back to after X, with x_link=complete|cancelled|failed and x_link_code. Omit it (agents) to show the code on a page instead"
                  }
                },
                "required": [
                  "chain_id",
                  "address"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Link started",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "link_id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{43}$",
                      "description": "Link ID returned by the start call. Keep it private"
                    },
                    "authorization_url": {
                      "type": "string",
                      "description": "Open this in the person's browser to approve on x.com"
                    },
                    "expires_at": {
                      "type": "string",
                      "description": "ISO 8601; X approval must finish by then"
                    }
                  },
                  "required": [
                    "link_id",
                    "authorization_url",
                    "expires_at"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from this IP or for this address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The chain could not be reached, or rate limits are not configured; retry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/identity/x/callback": {
      "get": {
        "tags": [
          "Identity"
        ],
        "summary": "X authorization callback",
        "description": "Where x.com sends the browser after approval, for links and X-side unlinks. Records the verified X account against the attempt but never links or unlinks on its own: it shows the completion code, or redirects to return_to with it",
        "operationId": "get_XLinkCallback",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "maxLength": 128
            },
            "required": false,
            "name": "state",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 512
            },
            "required": false,
            "name": "code",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 256
            },
            "required": false,
            "name": "error",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Page showing the completion code",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "Redirect to return_to"
          },
          "400": {
            "description": "The link expired or was already used",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/identity/x/link/{link_id}/complete": {
      "post": {
        "tags": [
          "Identity"
        ],
        "summary": "Complete a link with the wallet signature",
        "description": "Verifies the wallet's signature over typed_data and links the address to the X account. An ECDSA signature links the address on every chain of its namespace; a contract-account signature (ERC-1271, ERC-6492, Starknet) only on the chain it was verified on. Relinking replaces the previous link, which is kept in history",
        "operationId": "post_CompleteXLink",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{43}$",
              "description": "Link ID returned by the start call. Keep it private"
            },
            "required": true,
            "description": "Link ID returned by the start call. Keep it private",
            "name": "link_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 18,
                    "description": "Completion code shown to the person after approving on X (on the callback page, or as x_link_code on the return URL). Case and dashes are ignored"
                  },
                  "signature": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 16384
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 80
                        },
                        "maxItems": 32
                      }
                    ],
                    "description": "EVM: the 0x hex signature over typed_data (ECDSA, ERC-1271 or ERC-6492). Starknet: the array of signature felts"
                  }
                },
                "required": [
                  "code",
                  "signature"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Linked",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "chain_id": {
                      "type": "string"
                    },
                    "address": {
                      "type": "string"
                    },
                    "identity": {
                      "type": "object",
                      "properties": {
                        "x_user_id": {
                          "type": "string",
                          "description": "Immutable numeric X user ID"
                        },
                        "x_handle": {
                          "type": "string",
                          "description": "X handle without the @, as it was when linked. A renamed account shows its old handle until relinked"
                        },
                        "x_url": {
                          "type": "string",
                          "description": "Profile URL on x.com, by user ID"
                        },
                        "linked_at": {
                          "type": "string",
                          "description": "When the link was made, ISO 8601"
                        },
                        "scope": {
                          "type": "string",
                          "enum": [
                            "namespace",
                            "chain"
                          ],
                          "description": "namespace: proven by the address's own key, holds on every EVM chain. chain: proven by a contract account, holds only on verified_chain_id"
                        },
                        "verified_chain_id": {
                          "type": "string",
                          "description": "Decimal ID of the chain the signature was checked on"
                        },
                        "signature_kind": {
                          "type": "string",
                          "enum": [
                            "ecdsa",
                            "erc1271",
                            "erc6492",
                            "starknet"
                          ]
                        }
                      },
                      "required": [
                        "x_user_id",
                        "x_handle",
                        "x_url",
                        "linked_at",
                        "scope",
                        "verified_chain_id",
                        "signature_kind"
                      ]
                    }
                  },
                  "required": [
                    "chain_id",
                    "address",
                    "identity"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The signature does not prove the address signed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The completion code is wrong",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Unknown or expired link; start again",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Not ready for this step, the nonce was already used, or a contract-account signature cannot remove a link made with the address's own key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from this IP or for this address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The chain could not be reached, or rate limits are not configured; retry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/identity/x/link/{link_id}": {
      "get": {
        "tags": [
          "Identity"
        ],
        "summary": "Get a link in progress and the message to sign",
        "description": "Status of a link. Once the person has approved on X, pass the completion code to get the verified X account and typed_data: the exact message the wallet at address must sign, unchanged. Five wrong codes discard the link",
        "operationId": "get_GetXLink",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{43}$",
              "description": "Link ID returned by the start call. Keep it private"
            },
            "required": true,
            "description": "Link ID returned by the start call. Keep it private",
            "name": "link_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 32
            },
            "required": false,
            "name": "code",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The link",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "link_id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{43}$",
                      "description": "Link ID returned by the start call. Keep it private"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "awaiting_x",
                        "awaiting_signature"
                      ],
                      "description": "awaiting_x: the person has not approved on X yet. awaiting_signature: X is verified; with the code, typed_data is returned to sign"
                    },
                    "chain_id": {
                      "type": "string",
                      "description": "Decimal chain ID"
                    },
                    "address": {
                      "type": "string",
                      "description": "Canonical address being linked"
                    },
                    "expires_at": {
                      "type": "string",
                      "description": "ISO 8601"
                    },
                    "x_user_id": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "x_handle": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "typed_data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "types": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "type"
                              ]
                            }
                          }
                        },
                        "primaryType": {
                          "type": "string"
                        },
                        "domain": {
                          "type": "object",
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          }
                        },
                        "message": {
                          "type": "object",
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "types",
                        "primaryType",
                        "domain",
                        "message"
                      ],
                      "description": "Null until X is verified and the right code is given"
                    }
                  },
                  "required": [
                    "link_id",
                    "status",
                    "chain_id",
                    "address",
                    "expires_at",
                    "x_user_id",
                    "x_handle",
                    "typed_data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The signature does not prove the address signed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The completion code is wrong",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Unknown or expired link; start again",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Not ready for this step, the nonce was already used, or a contract-account signature cannot remove a link made with the address's own key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from this IP or for this address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The chain could not be reached, or rate limits are not configured; retry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/identity/x/unlink/message": {
      "post": {
        "tags": [
          "Identity"
        ],
        "summary": "Get the message to sign to unlink",
        "description": "Returns typed_data for the wallet to sign to remove its X link, then DELETE /v1/identity/x/link. Expires in 10 minutes",
        "operationId": "post_GetXUnlinkMessage",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "chain_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^0x[a-fA-F0-9]+$",
                        "description": "A hexadecimal number"
                      },
                      {
                        "type": "string",
                        "pattern": "^\\d+$",
                        "description": "A decimal number"
                      },
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      }
                    ],
                    "description": "Chain ID, decimal or 0x hex. Starknet mainnet is 0x534e5f4d41494e"
                  },
                  "address": {
                    "type": "string",
                    "maxLength": 66,
                    "description": "Wallet address, 0x hex",
                    "example": "0x7a16fF8270133F063aAb6C9977183D9e72835428"
                  }
                },
                "required": [
                  "chain_id",
                  "address"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The message",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "nonce": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "description": "ISO 8601"
                    },
                    "typed_data": {
                      "type": "object",
                      "properties": {
                        "types": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "type"
                              ]
                            }
                          }
                        },
                        "primaryType": {
                          "type": "string"
                        },
                        "domain": {
                          "type": "object",
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          }
                        },
                        "message": {
                          "type": "object",
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "types",
                        "primaryType",
                        "domain",
                        "message"
                      ],
                      "description": "The exact message to sign: EIP-712 typed data on EVM chains (eth_signTypedData_v4), SNIP-12 revision 1 typed data on Starknet. Sign it unchanged"
                    }
                  },
                  "required": [
                    "nonce",
                    "expires_at",
                    "typed_data"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The signature does not prove the address signed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The completion code is wrong",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Unknown or expired link; start again",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Not ready for this step, the nonce was already used, or a contract-account signature cannot remove a link made with the address's own key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from this IP or for this address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The chain could not be reached, or rate limits are not configured; retry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/identity/x/link": {
      "delete": {
        "tags": [
          "Identity"
        ],
        "summary": "Unlink with a wallet signature",
        "description": "Removes the address's X link, proven by a signature over the unlink message. An ECDSA signature removes every link of the address; a contract-account signature only the link made on its chain, and is refused with 409 (the nonce stays usable) when the address's link there is its all-chain ECDSA link",
        "operationId": "delete_DeleteXLink",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "chain_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^0x[a-fA-F0-9]+$",
                        "description": "A hexadecimal number"
                      },
                      {
                        "type": "string",
                        "pattern": "^\\d+$",
                        "description": "A decimal number"
                      },
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      }
                    ],
                    "description": "Chain ID, decimal or 0x hex. Starknet mainnet is 0x534e5f4d41494e"
                  },
                  "address": {
                    "type": "string",
                    "maxLength": 66,
                    "description": "Wallet address, 0x hex",
                    "example": "0x7a16fF8270133F063aAb6C9977183D9e72835428"
                  },
                  "nonce": {
                    "type": "string",
                    "pattern": "^0x[0-9a-f]{62,64}$"
                  },
                  "signature": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 16384
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 80
                        },
                        "maxItems": 32
                      }
                    ],
                    "description": "EVM: the 0x hex signature over typed_data (ECDSA, ERC-1271 or ERC-6492). Starknet: the array of signature felts"
                  }
                },
                "required": [
                  "chain_id",
                  "address",
                  "nonce",
                  "signature"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Unlinked",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "removed": {
                      "type": "integer",
                      "description": "Links removed. An ECDSA signature removes every link of the address; a contract-account signature only the link on its chain"
                    }
                  },
                  "required": [
                    "removed"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "The signature does not prove the address signed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The completion code is wrong",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Unknown or expired link; start again",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Not ready for this step, the nonce was already used, or a contract-account signature cannot remove a link made with the address's own key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from this IP or for this address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The chain could not be reached, or rate limits are not configured; retry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/identity/x/unlink/start": {
      "post": {
        "tags": [
          "Identity"
        ],
        "summary": "Start removing an X account's links",
        "description": "For the owner of an X account: removes every link between that X account and wallet addresses, proven by signing in with X, without a wallet. Returns the x.com authorization URL for the person to open and a private unlink ID. Then POST /v1/identity/x/unlink/{unlink_id}/complete with the code from X. Expires in 10 minutes",
        "operationId": "post_StartXUnlink",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "return_to": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri",
                    "description": "Page on an allowed Ekubo origin to send the browser back to after X, with x_unlink=complete|cancelled|failed and x_unlink_code. Omit it (agents) to show the code on a page instead"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Unlink started",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "unlink_id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{43}$",
                      "description": "Unlink ID returned by the start call. Keep it private"
                    },
                    "authorization_url": {
                      "type": "string",
                      "description": "Open this in the person's browser to sign in on x.com"
                    },
                    "expires_at": {
                      "type": "string",
                      "description": "ISO 8601; X approval must finish by then"
                    }
                  },
                  "required": [
                    "unlink_id",
                    "authorization_url",
                    "expires_at"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The completion code is wrong",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Unknown or expired unlink; start again",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "The person has not signed in on X yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from this IP or for this address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The chain could not be reached, or rate limits are not configured; retry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/identity/x/unlink/{unlink_id}/complete": {
      "post": {
        "tags": [
          "Identity"
        ],
        "summary": "Remove an X account's links",
        "description": "With the code shown after signing in on X, removes every link between that X account and wallet addresses, on every chain, and discards links to it still in progress. Removed links are kept in history",
        "operationId": "post_CompleteXUnlink",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{43}$",
              "description": "Unlink ID returned by the start call. Keep it private"
            },
            "required": true,
            "description": "Unlink ID returned by the start call. Keep it private",
            "name": "unlink_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 18,
                    "description": "Completion code shown to the person after signing in on X (on the callback page, or as x_unlink_code on the return URL). Case and dashes are ignored"
                  }
                },
                "required": [
                  "code"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Unlinked",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "x_user_id": {
                      "type": "string",
                      "description": "The X account that signed in"
                    },
                    "x_handle": {
                      "type": "string",
                      "description": "Its current handle, without the @"
                    },
                    "removed": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "address": {
                            "type": "string",
                            "description": "Canonical address"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "namespace",
                              "chain"
                            ]
                          },
                          "verified_chain_id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "address",
                          "scope",
                          "verified_chain_id"
                        ]
                      },
                      "description": "Every link to this X account, now removed. Empty if there were none"
                    }
                  },
                  "required": [
                    "x_user_id",
                    "x_handle",
                    "removed"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The completion code is wrong",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Unknown or expired unlink; start again",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "The person has not signed in on X yet",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from this IP or for this address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The chain could not be reached, or rate limits are not configured; retry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/identity/addresses": {
      "get": {
        "tags": [
          "Identity"
        ],
        "summary": "Look up linked X accounts",
        "description": "Linked X accounts for up to 100 addresses on one chain. Repeat address. Cached for 30 seconds",
        "operationId": "get_LookupXIdentities",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^0x[a-fA-F0-9]+$",
                    "description": "A hexadecimal number"
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d+$",
                    "description": "A decimal number"
                  }
                ],
                "title": "Address",
                "description": "An address on the specified blockchain network"
              },
              "description": "Repeat for each address (?address=0x...&address=0x...)"
            },
            "required": true,
            "description": "Repeat for each address (?address=0x...&address=0x...)",
            "name": "address",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Linked X accounts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "chain_id": {
                      "type": "string"
                    },
                    "identities": {
                      "type": "object",
                      "additionalProperties": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "x_user_id": {
                            "type": "string",
                            "description": "Immutable numeric X user ID"
                          },
                          "x_handle": {
                            "type": "string",
                            "description": "X handle without the @, as it was when linked. A renamed account shows its old handle until relinked"
                          },
                          "x_url": {
                            "type": "string",
                            "description": "Profile URL on x.com, by user ID"
                          },
                          "linked_at": {
                            "type": "string",
                            "description": "When the link was made, ISO 8601"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "namespace",
                              "chain"
                            ],
                            "description": "namespace: proven by the address's own key, holds on every EVM chain. chain: proven by a contract account, holds only on verified_chain_id"
                          },
                          "verified_chain_id": {
                            "type": "string",
                            "description": "Decimal ID of the chain the signature was checked on"
                          },
                          "signature_kind": {
                            "type": "string",
                            "enum": [
                              "ecdsa",
                              "erc1271",
                              "erc6492",
                              "starknet"
                            ]
                          }
                        },
                        "required": [
                          "x_user_id",
                          "x_handle",
                          "x_url",
                          "linked_at",
                          "scope",
                          "verified_chain_id",
                          "signature_kind"
                        ]
                      },
                      "description": "Keyed by canonical address (EVM lowercase; Starknet 0x + 64 hex). Null when the address has no link on this chain"
                    }
                  },
                  "required": [
                    "chain_id",
                    "identities"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from this IP or for this address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The chain could not be reached, or rate limits are not configured; retry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/identity/x/address": {
      "get": {
        "tags": [
          "Identity"
        ],
        "summary": "Look up one address's X account, uncached",
        "description": "The linked X account of one address, read fresh and never cached. For a wallet showing its own link right after linking or unlinking; use GET /v1/identity/addresses for everyone else",
        "operationId": "get_LookupOwnXIdentity",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "title": "Chain ID",
              "description": "The ID of the network that is being fetched",
              "format": "int64",
              "minimum": 1,
              "maximum": 9223372036854776000
            },
            "required": true,
            "description": "The ID of the network that is being fetched",
            "name": "chainId",
            "in": "query"
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^0x[a-fA-F0-9]+$",
                  "description": "A hexadecimal number"
                },
                {
                  "type": "string",
                  "pattern": "^\\d+$",
                  "description": "A decimal number"
                }
              ],
              "title": "Address",
              "description": "An address on the specified blockchain network"
            },
            "required": true,
            "description": "An address on the specified blockchain network",
            "name": "address",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Linked X account",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "chain_id": {
                      "type": "string"
                    },
                    "identities": {
                      "type": "object",
                      "additionalProperties": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "x_user_id": {
                            "type": "string",
                            "description": "Immutable numeric X user ID"
                          },
                          "x_handle": {
                            "type": "string",
                            "description": "X handle without the @, as it was when linked. A renamed account shows its old handle until relinked"
                          },
                          "x_url": {
                            "type": "string",
                            "description": "Profile URL on x.com, by user ID"
                          },
                          "linked_at": {
                            "type": "string",
                            "description": "When the link was made, ISO 8601"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "namespace",
                              "chain"
                            ],
                            "description": "namespace: proven by the address's own key, holds on every EVM chain. chain: proven by a contract account, holds only on verified_chain_id"
                          },
                          "verified_chain_id": {
                            "type": "string",
                            "description": "Decimal ID of the chain the signature was checked on"
                          },
                          "signature_kind": {
                            "type": "string",
                            "enum": [
                              "ecdsa",
                              "erc1271",
                              "erc6492",
                              "starknet"
                            ]
                          }
                        },
                        "required": [
                          "x_user_id",
                          "x_handle",
                          "x_url",
                          "linked_at",
                          "scope",
                          "verified_chain_id",
                          "signature_kind"
                        ]
                      },
                      "description": "Keyed by canonical address (EVM lowercase; Starknet 0x + 64 hex). Null when the address has no link on this chain"
                    }
                  },
                  "required": [
                    "chain_id",
                    "identities"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request parameters are invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from this IP or for this address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected server error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "The chain could not be reached, or rate limits are not configured; retry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {}
}
