{
 "openapi": "3.1.0",
 "info": {
  "title": "Nodely vestleg API",
  "version": "4.0.0",
  "description": "Nodely's DEX analytics and swap-routing API for Algorand mainnet: pools, assets and prices, OHLC candles and\nhistory, swaps, protocol volumes, wallet values, vaults, launchpad balances, and an aggregator (quotes and unsigned\nswap transactions routed across Tinyman, Pact, Folks, Algofi, Humble and the liquid-staking vaults).\n\nIt is a drop-in replacement for the legacy DEX-analytics API of the same shape: same paths, parameters, field names\nand error format, so existing clients only change the base URL to https://vestleg.api.nodely.io.\n\nConventions:\n- Amounts are base units unless a field says otherwise; prices are in the denominating asset (default ALGO, id 0).\n- Errors are JSON objects `{\"detail\": ...}`: 422 for invalid parameters, 404 when nothing matches.\n- Rate limit: 2 requests per second per client IP, bursts up to 180 (20 for POST /swap/v4/transactions); HTTP 429 above it.\n- History, candles, /protocols/volume and /assets carry Cache-Control max-age and are cached at the edge; real-time\n  routes (quotes, pools, notes) carry no-store.\n- Network: only Algorand mainnet (`network_id=0`).\n\nHuman docs: https://nodely.io/docs/vestige \u00b7 LLM docs: https://vestleg.api.nodely.io/llms.txt",
  "contact": {
   "url": "https://nodely.io"
  }
 },
 "paths": {
  "/networks": {
   "get": {
    "tags": [
     "Networks"
    ],
    "summary": "Get Networks",
    "description": "Get all networks.",
    "operationId": "get_networks_networks_get",
    "responses": {
     "200": {
      "description": "Networks retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/NetworkSerializer"
         },
         "type": "array",
         "title": "Response Get Networks Networks Get"
        }
       }
      }
     },
     "500": {
      "description": "Internal server error"
     }
    }
   }
  },
  "/networks/{network_id}": {
   "get": {
    "tags": [
     "Networks"
    ],
    "summary": "Get Network By Id",
    "description": "Get network by id.",
    "operationId": "get_network_by_id_networks__network_id__get",
    "parameters": [
     {
      "name": "network_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Network Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Network retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/NetworkSerializer"
        }
       }
      }
     },
     "404": {
      "description": "Network not found"
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/protocols": {
   "get": {
    "tags": [
     "Protocols"
    ],
    "summary": "Get Protocols",
    "description": "Get all protocols.\n\nBesides the legacy protocol ids (0..17), ids from 100 list venues this API indexes that the legacy API did not: 100 Pact weighted, 101 Pact concentrated, 102 Biatec, 103 LiquiHog, 104 Folks lending, 105 Lofty OTC.",
    "operationId": "get_protocols_protocols_get",
    "parameters": [
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Protocols retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ProtocolSerializer"
         },
         "title": "Response Get Protocols Protocols Get"
        }
       }
      }
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/protocols/volume": {
   "get": {
    "tags": [
     "Protocols"
    ],
    "summary": "Get Protocol Volumes",
    "description": "Get protocol volumes at specific day. Defaults to current day.",
    "operationId": "get_protocol_volumes_protocols_volume_get",
    "parameters": [
     {
      "name": "timestamp",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "title": "Timestamp"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Denominating Asset Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Protocol volumes retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {
          "$ref": "#/components/schemas/ProtocolVolumeSerializer"
         },
         "title": "Response Get Protocol Volumes Protocols Volume Get"
        }
       }
      }
     },
     "404": {
      "description": "Protocol not found"
     },
     "500": {
      "description": "Internal server error"
     },
     "503": {
      "description": "Indexer is behind by more than 50 blocks"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/protocols/{protocol_id}": {
   "get": {
    "tags": [
     "Protocols"
    ],
    "summary": "Get Protocol By Id",
    "description": "Get protocol by id.",
    "operationId": "get_protocol_by_id_protocols__protocol_id__get",
    "parameters": [
     {
      "name": "protocol_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Protocol Id"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Protocol retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProtocolSerializer"
        }
       }
      }
     },
     "404": {
      "description": "Protocol not found"
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/assets": {
   "get": {
    "tags": [
     "Assets"
    ],
    "summary": "Get Assets",
    "description": "Get data about assets",
    "operationId": "get_assets_assets_get",
    "parameters": [
     {
      "name": "asset_ids",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Asset Ids"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Assets retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AssetSerializer"
         },
         "title": "Response Get Assets Assets Get"
        }
       }
      }
     },
     "400": {
      "description": "Invalid asset list"
     },
     "406": {
      "description": "Too many assets"
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/assets/search": {
   "get": {
    "tags": [
     "Assets"
    ],
    "summary": "Search Assets",
    "description": "Search assets by query",
    "operationId": "search_assets_assets_search_get",
    "parameters": [
     {
      "name": "query",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Query"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "protocol_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Protocol Id"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "default": 0,
       "title": "Denominating Asset Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 250,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "order_by",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Order By"
      }
     },
     {
      "name": "order_dir",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "pattern": "^(asc|desc)$"
        },
        {
         "type": "null"
        }
       ],
       "default": "desc",
       "title": "Order Dir"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Assets retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PaginatedResponse_AssetDetailSerializer_NoneType_"
        }
       }
      }
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/assets/list": {
   "get": {
    "tags": [
     "Assets"
    ],
    "summary": "Get Asset List",
    "operationId": "get_asset_list_assets_list_get",
    "parameters": [
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "asset_ids",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Asset Ids"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "default": 0,
       "title": "Denominating Asset Id"
      }
     },
     {
      "name": "include_labels",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Include Labels"
      }
     },
     {
      "name": "exclude_labels",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Exclude Labels"
      }
     },
     {
      "name": "extended",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "default": false,
       "title": "Extended"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 250,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "order_by",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Order By"
      }
     },
     {
      "name": "order_dir",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "pattern": "^(asc|desc)$"
        },
        {
         "type": "null"
        }
       ],
       "default": "desc",
       "title": "Order Dir"
      }
     },
     {
      "name": "rank__lt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Rank  Lt"
      }
     },
     {
      "name": "rank__gt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Rank  Gt"
      }
     },
     {
      "name": "tvl__lt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "title": "Tvl  Lt"
      }
     },
     {
      "name": "tvl__gt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "title": "Tvl  Gt"
      }
     },
     {
      "name": "market_cap__lt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "title": "Market Cap  Lt"
      }
     },
     {
      "name": "market_cap__gt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "title": "Market Cap  Gt"
      }
     },
     {
      "name": "fully_diluted_market_cap__lt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "title": "Fully Diluted Market Cap  Lt"
      }
     },
     {
      "name": "fully_diluted_market_cap__gt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "title": "Fully Diluted Market Cap  Gt"
      }
     },
     {
      "name": "volume1d__lt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "title": "Volume1D  Lt"
      }
     },
     {
      "name": "volume1d__gt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "title": "Volume1D  Gt"
      }
     },
     {
      "name": "created_at__lt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Created At  Lt"
      }
     },
     {
      "name": "created_at__gt",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Created At  Gt"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Assets retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PaginatedResponse_AssetDetailSerializer_NoneType_"
        }
       }
      }
     },
     "400": {
      "description": "Invalid asset list"
     },
     "406": {
      "description": "Too many assets"
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/assets/price": {
   "get": {
    "tags": [
     "Assets"
    ],
    "summary": "Get Asset Prices",
    "description": "Get asset prices",
    "operationId": "get_asset_prices_assets_price_get",
    "parameters": [
     {
      "name": "asset_ids",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Asset Ids"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "default": 0,
       "title": "Denominating Asset Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Asset prices retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AssetPriceSerializer"
         },
         "title": "Response Get Asset Prices Assets Price Get"
        }
       }
      }
     },
     "400": {
      "description": "Invalid asset list"
     },
     "406": {
      "description": "Too many assets"
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/assets/{asset_id}/candles": {
   "get": {
    "tags": [
     "Assets"
    ],
    "summary": "Get Asset Candles",
    "description": "Get asset candles",
    "operationId": "get_asset_candles_assets__asset_id__candles_get",
    "parameters": [
     {
      "name": "asset_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Asset Id"
      }
     },
     {
      "name": "interval",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Interval"
      }
     },
     {
      "name": "start",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Start"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "end",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "End"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "default": 0,
       "title": "Denominating Asset Id"
      }
     },
     {
      "name": "volume_in_denominating_asset",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "default": false,
       "title": "Volume In Denominating Asset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Asset candles retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AssetCandleSerializer"
         },
         "title": "Response Get Asset Candles Assets  Asset Id  Candles Get"
        }
       }
      }
     },
     "406": {
      "description": "Too many candles"
     },
     "500": {
      "description": "Internal server error"
     },
     "503": {
      "description": "Indexer is behind by more than 50 blocks"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/assets/{asset_id}/history": {
   "get": {
    "tags": [
     "Assets"
    ],
    "summary": "Get Asset History",
    "description": "Get asset volume, swaps, total lockup, vwap and confidence history",
    "operationId": "get_asset_history_assets__asset_id__history_get",
    "parameters": [
     {
      "name": "asset_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Asset Id"
      }
     },
     {
      "name": "interval",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Interval"
      }
     },
     {
      "name": "start",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Start"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "end",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "End"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "default": 0,
       "title": "Denominating Asset Id"
      }
     },
     {
      "name": "volume_in_denominating_asset",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "default": true,
       "title": "Volume In Denominating Asset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Asset history retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AssetHistorySerializer"
         },
         "title": "Response Get Asset History Assets  Asset Id  History Get"
        }
       }
      }
     },
     "500": {
      "description": "Internal server error"
     },
     "503": {
      "description": "Indexer is behind by more than 50 blocks"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/assets/{asset_id}/composition": {
   "get": {
    "tags": [
     "Assets"
    ],
    "summary": "Get Asset Composition",
    "description": "Get asset lockups based on protocol and pair, returns {protocol_id: {asset_id: lockup}}",
    "operationId": "get_asset_composition_assets__asset_id__composition_get",
    "parameters": [
     {
      "name": "asset_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Asset Id"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Asset composition retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {
          "type": "object",
          "additionalProperties": {
           "type": "number"
          }
         },
         "title": "Response Get Asset Composition Assets  Asset Id  Composition Get"
        }
       }
      }
     },
     "404": {
      "description": "Asset not found"
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/pools": {
   "get": {
    "tags": [
     "Pools"
    ],
    "summary": "Get Pools",
    "description": "Get pools.",
    "operationId": "get_pools_pools_get",
    "parameters": [
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "protocol_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Protocol Id"
      }
     },
     {
      "name": "other_protocol_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Other Protocol Id"
      }
     },
     {
      "name": "asset_1_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Asset 1 Id"
      }
     },
     {
      "name": "asset_2_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Asset 2 Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 250,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "order_by",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Order By"
      }
     },
     {
      "name": "order_dir",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "pattern": "^(asc|desc)$"
        },
        {
         "type": "null"
        }
       ],
       "default": "desc",
       "title": "Order Dir"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Pools retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PaginatedResponse_PoolSerializer_NoneType_"
        }
       }
      }
     },
     "400": {
      "description": "Invalid order by field"
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/vaults": {
   "get": {
    "tags": [
     "Vaults"
    ],
    "summary": "Get Vaults",
    "description": "Get all vaults.",
    "operationId": "get_vaults_vaults_get",
    "parameters": [
     {
      "name": "protocol_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Protocol Id"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Asset Id"
      }
     },
     {
      "name": "address",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Address"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 250,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "order_by",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Order By"
      }
     },
     {
      "name": "order_dir",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "pattern": "^(asc|desc)$"
        },
        {
         "type": "null"
        }
       ],
       "default": "desc",
       "title": "Order Dir"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Vaults retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PaginatedResponse_VaultSerializer_List_PoolSerializer__"
        }
       }
      }
     },
     "400": {
      "description": "Invalid order by field"
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/balances": {
   "get": {
    "tags": [
     "Balances"
    ],
    "summary": "Get Balances",
    "description": "Get balances by network id, protocol id and asset id.",
    "operationId": "get_balances_balances_get",
    "parameters": [
     {
      "name": "protocol_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Protocol Id"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "address",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Address"
      }
     },
     {
      "name": "asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Asset Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 250,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "order_by",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Order By"
      }
     },
     {
      "name": "order_dir",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "pattern": "^(asc|desc)$"
        },
        {
         "type": "null"
        }
       ],
       "default": "desc",
       "title": "Order Dir"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Balances retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PaginatedResponse_BalanceSerializer_NoneType_"
        }
       }
      }
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/notes": {
   "get": {
    "tags": [
     "Notes"
    ],
    "summary": "Get Notes",
    "description": "Get notes by network id and optionally asset id.",
    "operationId": "get_notes_notes_get",
    "parameters": [
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Asset Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 250,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "order_by",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Order By"
      }
     },
     {
      "name": "order_dir",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "pattern": "^(asc|desc)$"
        },
        {
         "type": "null"
        }
       ],
       "default": "desc",
       "title": "Order Dir"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Notes retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PaginatedResponse_NoteSerializer_NoneType_"
        }
       }
      }
     },
     "400": {
      "description": "Invalid order by field"
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/notes/first": {
   "get": {
    "tags": [
     "Notes"
    ],
    "summary": "Get First Asset Notes",
    "description": "Get first note for assets",
    "operationId": "get_first_asset_notes_notes_first_get",
    "parameters": [
     {
      "name": "asset_ids",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Asset Ids"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "First note for assets retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/NoteSerializer"
         },
         "title": "Response Get First Asset Notes Notes First Get"
        }
       }
      }
     },
     "400": {
      "description": "Invalid asset list"
     },
     "406": {
      "description": "Too many assets"
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/notes/count": {
   "get": {
    "tags": [
     "Notes"
    ],
    "summary": "Get Asset Notes Count",
    "description": "Get notes count for assets",
    "operationId": "get_asset_notes_count_notes_count_get",
    "parameters": [
     {
      "name": "asset_ids",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Asset Ids"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Notes count retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/NotesCountSerializer"
         },
         "title": "Response Get Asset Notes Count Notes Count Get"
        }
       }
      }
     },
     "400": {
      "description": "Invalid asset list"
     },
     "406": {
      "description": "Too many assets"
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/swaps": {
   "get": {
    "tags": [
     "Swaps"
    ],
    "summary": "Get Swaps",
    "description": "Get swaps.",
    "operationId": "get_swaps_swaps_get",
    "parameters": [
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "start",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Start"
      }
     },
     {
      "name": "end",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "End"
      }
     },
     {
      "name": "asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Asset Id"
      }
     },
     {
      "name": "address",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Address"
      }
     },
     {
      "name": "executor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Executor"
      }
     },
     {
      "name": "next",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Next"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Denominating Asset Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 250,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "order_by",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "pattern": "^(offset|value)$"
        },
        {
         "type": "null"
        }
       ],
       "default": "offset",
       "title": "Order By"
      }
     },
     {
      "name": "order_dir",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "pattern": "^(asc|desc)$"
        },
        {
         "type": "null"
        }
       ],
       "default": "desc",
       "title": "Order Dir"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Swaps retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/NextPaginatedResponse_SwapSerializer_Dict_int__AssetExtraSerializer__"
        }
       }
      }
     },
     "400": {
      "description": "Invalid order by field"
     },
     "500": {
      "description": "Internal server error"
     },
     "503": {
      "description": "Indexer is behind by more than 50 blocks"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/marks": {
   "get": {
    "tags": [
     "Swaps"
    ],
    "summary": "Get Chart Marks",
    "description": "Get marks.",
    "operationId": "get_chart_marks_marks_get",
    "parameters": [
     {
      "name": "address",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Address"
      }
     },
     {
      "name": "asset_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Asset Id"
      }
     },
     {
      "name": "interval",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Interval"
      }
     },
     {
      "name": "start",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Start"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "end",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "End"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Denominating Asset Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Marks retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/MarkSerializer"
         },
         "title": "Response Get Chart Marks Marks Get"
        }
       }
      }
     },
     "500": {
      "description": "Internal server error"
     },
     "503": {
      "description": "Indexer is behind by more than 50 blocks"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/wallets/{address}/value": {
   "get": {
    "tags": [
     "Wallets"
    ],
    "summary": "Get Wallet Value",
    "description": "Get wallet value.\n\nDefined as a sync handler on purpose: the body does blocking I/O\n(asastats/node HTTP, Redis) with no awaits. As ``async`` it ran on the\nevent loop and a slow asastats response froze the whole worker until\ngunicorn's timeout killed it. Sync handlers run in the threadpool instead.",
    "operationId": "get_wallet_value_wallets__address__value_get",
    "parameters": [
     {
      "name": "address",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Address"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Denominating Asset Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Wallet Pnl retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WalletValueSerializer"
        }
       }
      }
     },
     "500": {
      "description": "Internal server error"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/wallets/{address}/pnl": {
   "get": {
    "tags": [
     "Wallets"
    ],
    "summary": "Get Wallet Pnl",
    "description": "Get wallet PnL.",
    "operationId": "get_wallet_pnl_wallets__address__pnl_get",
    "parameters": [
     {
      "name": "address",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Address"
      }
     },
     {
      "name": "asset_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Asset Id"
      }
     },
     {
      "name": "start",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Start"
      }
     },
     {
      "name": "end",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "End"
      }
     },
     {
      "name": "network_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Network Id"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Denominating Asset Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Wallet Pnl retrieved successfully",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WalletPnlSerializer"
        }
       }
      }
     },
     "500": {
      "description": "Internal server error"
     },
     "503": {
      "description": "Indexer is behind by more than 50 blocks"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/swap/v4": {
   "get": {
    "tags": [
     "Aggregator"
    ],
    "summary": "Get Best V4 Swap Data",
    "operationId": "get_best_v4_swap_data_swap_v4_get",
    "parameters": [
     {
      "name": "from_asa",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "From Asa"
      }
     },
     {
      "name": "to_asa",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "To Asa"
      }
     },
     {
      "name": "amount",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Amount"
      }
     },
     {
      "name": "mode",
      "in": "query",
      "required": true,
      "schema": {
       "enum": [
        "sef",
        "sfe"
       ],
       "type": "string",
       "title": "Mode"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "default": 0,
       "title": "Denominating Asset Id"
      }
     },
     {
      "name": "enabled_providers",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Enabled Providers"
      }
     },
     {
      "name": "disabled_providers",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Disabled Providers"
      }
     },
     {
      "name": "address",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Address"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AggregateV4Serializer"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "description": "Routes over Tinyman v2, Pact (constant product, stable, weighted, concentrated), Algofi, NanoSwap, Humble, Folks lending (and Folks-wrapped pools), tALGO and xALGO. Paths of up to four hops, split across pools. The quote is computed on the latest pool state."
   }
  },
  "/swap/v4/fee": {
   "get": {
    "tags": [
     "Aggregator"
    ],
    "summary": "Get V4 Swap Discount",
    "operationId": "get_v4_swap_discount_swap_v4_fee_get",
    "parameters": [
     {
      "name": "address",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Address"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SwapFeeSerializer"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "description": "`bps_fee` keeps the legacy meaning: the share of output above the quoted amount (positive slippage) the router keeps, in 1/10000. Nodely's router keeps none, so it is always 0. The router fee is a share of the trade instead, paid to the Algorand fee sink: `router_fee_bps` and `router_fee_bps_large` (from `router_fee_large_from_usd` of the ALGO side); quotes give the tier that applies in `fee_bps`."
   }
  },
  "/swap/v4/transactions": {
   "post": {
    "tags": [
     "Aggregator"
    ],
    "summary": "Get V4 Swap Data Transactions",
    "operationId": "get_v4_swap_data_transactions_swap_v4_transactions_post",
    "parameters": [
     {
      "name": "sender",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Sender"
      }
     },
     {
      "name": "slippage",
      "in": "query",
      "required": true,
      "schema": {
       "type": "number",
       "title": "Slippage"
      }
     },
     {
      "name": "random_signer",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "title": "Random Signer"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AggregateV4Serializer"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "anyOf": [
          {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/UnsignedTransactionSerializer"
           }
          },
          {
           "type": "null"
          }
         ],
         "title": "Response Get V4 Swap Data Transactions Swap V4 Transactions Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "description": "Builds the quote as one atomic group, checked with algod simulate before it is returned: multi-leg routes run as inner transactions of Nodely's router app (slippage is checked once, on the total, and the unused fee reserve is refunded). `slippage` is a fraction (0.01 = 1 %). Sign every transaction whose `signers` names your address, keep `stxn` ones as given, and submit the group in order."
   }
  },
  "/swap/v4/history": {
   "get": {
    "tags": [
     "Aggregator"
    ],
    "summary": "Get Aggregator History",
    "operationId": "get_aggregator_history_swap_v4_history_get",
    "parameters": [
     {
      "name": "interval",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 86400,
       "title": "Interval"
      }
     },
     {
      "name": "start",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Start"
      }
     },
     {
      "name": "denominating_asset_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "default": 0,
       "title": "Denominating Asset Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AggregatorHistorySerializer"
         },
         "title": "Response Get Aggregator History Swap V4 History Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "description": "Swaps executed through Nodely's router apps, bucketed by `interval` (86400 or 604800) from `start`; volume in the denominating asset at that day's price."
   }
  },
  "/ping": {
   "get": {
    "tags": [
     "Other"
    ],
    "summary": "Echo",
    "description": "Ping the server to check if it's alive.",
    "operationId": "echo_ping_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     }
    }
   }
  },
  "/usage": {
   "get": {
    "tags": [
     "Other"
    ],
    "summary": "Get Api Usage",
    "description": "Get usage statistics.",
    "operationId": "get_api_usage_usage_get",
    "parameters": [
     {
      "name": "hours",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 24,
       "title": "Hours"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "AggregateDataV4Serializer": {
    "properties": {
     "asset_in": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asset In"
     },
     "asset_out": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asset Out"
     },
     "amount_in": {
      "type": "integer",
      "title": "Amount In"
     },
     "amount_out": {
      "type": "integer",
      "title": "Amount Out"
     },
     "network_fee": {
      "type": "integer",
      "title": "Network Fee"
     },
     "transactions": {
      "items": {
       "$ref": "#/components/schemas/AggregateV4TransactionSerializer"
      },
      "type": "array",
      "title": "Transactions"
     }
    },
    "type": "object",
    "required": [
     "asset_in",
     "asset_out",
     "amount_in",
     "amount_out",
     "network_fee",
     "transactions"
    ],
    "title": "AggregateDataV4Serializer"
   },
   "AggregateV4Serializer": {
    "properties": {
     "mode": {
      "type": "string",
      "title": "Mode"
     },
     "amount": {
      "type": "number",
      "title": "Amount"
     },
     "asset_in": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asset In"
     },
     "asset_in_price": {
      "type": "number",
      "title": "Asset In Price"
     },
     "asset_out": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asset Out"
     },
     "asset_out_price": {
      "type": "number",
      "title": "Asset Out Price"
     },
     "asset_images": {
      "additionalProperties": {
       "type": "string"
      },
      "type": "object",
      "title": "Asset Images"
     },
     "amount_out": {
      "type": "integer",
      "title": "Amount Out"
     },
     "network_fee": {
      "type": "integer",
      "title": "Network Fee"
     },
     "price_impact": {
      "type": "number",
      "title": "Price Impact"
     },
     "combo": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AggregateDataV4Serializer"
       },
       {
        "type": "null"
       }
      ]
     },
     "single": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AggregateDataV4Serializer"
       },
       {
        "type": "null"
       }
      ]
     },
     "fee_bps": {
      "type": "integer",
      "title": "Router fee",
      "description": "Router fee in basis points on swaps with ALGO on one side (10 below $1k of the ALGO side, 12 above; none on ASA-to-ASA). Paid to the Algorand protocol fee sink. `amount_out` is already after it. Absent when no fee applies."
     },
     "route_payload": {
      "type": "object",
      "title": "Route payload",
      "description": "Only while the router app is paused: the quote then comes from an outside aggregator and this opaque payload must be sent back unchanged to /swap/v4/transactions to build that route."
     }
    },
    "type": "object",
    "required": [
     "mode",
     "amount",
     "asset_in",
     "asset_in_price",
     "asset_out",
     "asset_out_price",
     "asset_images",
     "amount_out",
     "network_fee",
     "price_impact",
     "combo",
     "single"
    ],
    "title": "AggregateV4Serializer"
   },
   "AggregateV4TransactionSerializer": {
    "properties": {
     "asset_in": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asset In"
     },
     "asset_out": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asset Out"
     },
     "amount_in": {
      "type": "integer",
      "title": "Amount In"
     },
     "amount_out": {
      "type": "integer",
      "title": "Amount Out"
     },
     "network_fee": {
      "type": "integer",
      "title": "Network Fee"
     },
     "swaps": {
      "items": {
       "$ref": "#/components/schemas/AggregateV4TransactionSwapSerializer"
      },
      "type": "array",
      "title": "Swaps"
     }
    },
    "type": "object",
    "required": [
     "asset_in",
     "asset_out",
     "amount_in",
     "amount_out",
     "network_fee",
     "swaps"
    ],
    "title": "AggregateV4TransactionSerializer"
   },
   "AggregateV4TransactionSwapSerializer": {
    "properties": {
     "provider": {
      "type": "string",
      "title": "Provider"
     },
     "bps": {
      "type": "integer",
      "title": "Bps"
     },
     "application_id": {
      "type": "integer",
      "title": "Application Id"
     },
     "amount_in": {
      "type": "integer",
      "title": "Amount In"
     },
     "amount_out": {
      "type": "integer",
      "title": "Amount Out"
     },
     "fee": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Fee"
     },
     "network_fee": {
      "type": "integer",
      "title": "Network Fee"
     }
    },
    "type": "object",
    "required": [
     "provider",
     "bps",
     "application_id",
     "amount_in",
     "amount_out",
     "fee",
     "network_fee"
    ],
    "title": "AggregateV4TransactionSwapSerializer"
   },
   "AggregatorHistorySerializer": {
    "properties": {
     "timestamp": {
      "type": "integer",
      "title": "Timestamp"
     },
     "swaps": {
      "type": "integer",
      "title": "Swaps"
     },
     "volume": {
      "type": "number",
      "title": "Volume"
     }
    },
    "type": "object",
    "required": [
     "timestamp",
     "swaps",
     "volume"
    ],
    "title": "AggregatorHistorySerializer"
   },
   "AssetCandleSerializer": {
    "properties": {
     "network_id": {
      "type": "integer",
      "title": "Network Id"
     },
     "asset_id": {
      "type": "integer",
      "title": "Asset Id"
     },
     "interval": {
      "type": "integer",
      "title": "Interval"
     },
     "denominating_asset_id": {
      "type": "integer",
      "title": "Denominating Asset Id"
     },
     "timestamp": {
      "type": "integer",
      "title": "Timestamp"
     },
     "open": {
      "type": "number",
      "title": "Open"
     },
     "high": {
      "type": "number",
      "title": "High"
     },
     "low": {
      "type": "number",
      "title": "Low"
     },
     "close": {
      "type": "number",
      "title": "Close"
     },
     "volume": {
      "type": "number",
      "title": "Volume"
     },
     "confidence": {
      "type": "number",
      "title": "Confidence"
     }
    },
    "type": "object",
    "required": [
     "network_id",
     "asset_id",
     "interval",
     "denominating_asset_id",
     "timestamp",
     "open",
     "high",
     "low",
     "close",
     "volume",
     "confidence"
    ],
    "title": "AssetCandleSerializer"
   },
   "AssetDetailSerializer": {
    "properties": {
     "rank": {
      "type": "integer",
      "title": "Rank"
     },
     "network_id": {
      "type": "integer",
      "title": "Network Id"
     },
     "id": {
      "type": "integer",
      "title": "Id"
     },
     "decimals": {
      "type": "integer",
      "title": "Decimals"
     },
     "created_at": {
      "type": "integer",
      "title": "Created At"
     },
     "name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "ticker": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ticker"
     },
     "confidence": {
      "type": "number",
      "title": "Confidence"
     },
     "price": {
      "type": "number",
      "title": "Price"
     },
     "price1h": {
      "type": "number",
      "title": "Price1H"
     },
     "price1d": {
      "type": "number",
      "title": "Price1D"
     },
     "price7d": {
      "type": "number",
      "title": "Price7D"
     },
     "volume1h": {
      "type": "number",
      "title": "Volume1H"
     },
     "volume1d": {
      "type": "number",
      "title": "Volume1D"
     },
     "volume7d": {
      "type": "number",
      "title": "Volume7D"
     },
     "swaps1h": {
      "type": "integer",
      "title": "Swaps1H"
     },
     "swaps1d": {
      "type": "integer",
      "title": "Swaps1D"
     },
     "swaps7d": {
      "type": "integer",
      "title": "Swaps7D"
     },
     "views1h": {
      "type": "integer",
      "title": "Views1H"
     },
     "views1d": {
      "type": "integer",
      "title": "Views1D"
     },
     "total_lockup": {
      "type": "number",
      "title": "Total Lockup"
     },
     "total_supply": {
      "type": "number",
      "title": "Total Supply"
     },
     "circulating_supply": {
      "type": "number",
      "title": "Circulating Supply"
     },
     "burn_supply": {
      "type": "number",
      "title": "Burn Supply"
     },
     "burn_lockup": {
      "type": "number",
      "title": "Burn Lockup"
     },
     "vault_supply": {
      "type": "number",
      "title": "Vault Supply"
     },
     "vault_lockup": {
      "type": "number",
      "title": "Vault Lockup"
     },
     "market_cap": {
      "type": "number",
      "title": "Market Cap"
     },
     "fully_diluted_market_cap": {
      "type": "number",
      "title": "Fully Diluted Market Cap"
     },
     "tvl": {
      "type": "number",
      "title": "Tvl"
     },
     "labels": {
      "items": {
       "type": "integer"
      },
      "type": "array",
      "title": "Labels"
     },
     "image": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Image"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "replies": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Replies"
     },
     "last_reply_at": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Reply At"
     },
     "bond_progress": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Bond Progress"
     }
    },
    "type": "object",
    "required": [
     "rank",
     "network_id",
     "id",
     "decimals",
     "created_at",
     "name",
     "ticker",
     "confidence",
     "price",
     "price1h",
     "price1d",
     "price7d",
     "volume1h",
     "volume1d",
     "volume7d",
     "swaps1h",
     "swaps1d",
     "swaps7d",
     "views1h",
     "views1d",
     "total_lockup",
     "total_supply",
     "circulating_supply",
     "burn_supply",
     "burn_lockup",
     "vault_supply",
     "vault_lockup",
     "market_cap",
     "fully_diluted_market_cap",
     "tvl",
     "labels",
     "image"
    ],
    "title": "AssetDetailSerializer"
   },
   "AssetExtraSerializer": {
    "properties": {
     "ticker": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ticker"
     },
     "image": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Image"
     }
    },
    "type": "object",
    "required": [
     "ticker",
     "image"
    ],
    "title": "AssetExtraSerializer"
   },
   "AssetHistorySerializer": {
    "properties": {
     "network_id": {
      "type": "integer",
      "title": "Network Id"
     },
     "asset_id": {
      "type": "integer",
      "title": "Asset Id"
     },
     "interval": {
      "type": "integer",
      "title": "Interval"
     },
     "denominating_asset_id": {
      "type": "integer",
      "title": "Denominating Asset Id"
     },
     "timestamp": {
      "type": "integer",
      "title": "Timestamp"
     },
     "volume": {
      "type": "number",
      "title": "Volume"
     },
     "tvl": {
      "type": "number",
      "title": "Tvl"
     },
     "swaps": {
      "type": "integer",
      "title": "Swaps"
     },
     "vwap": {
      "type": "number",
      "title": "Vwap"
     },
     "confidence": {
      "type": "number",
      "title": "Confidence"
     }
    },
    "type": "object",
    "required": [
     "network_id",
     "asset_id",
     "interval",
     "denominating_asset_id",
     "timestamp",
     "volume",
     "tvl",
     "swaps",
     "vwap",
     "confidence"
    ],
    "title": "AssetHistorySerializer"
   },
   "AssetPriceSerializer": {
    "properties": {
     "network_id": {
      "type": "integer",
      "title": "Network Id"
     },
     "asset_id": {
      "type": "integer",
      "title": "Asset Id"
     },
     "denominating_asset_id": {
      "type": "integer",
      "title": "Denominating Asset Id"
     },
     "price": {
      "type": "number",
      "title": "Price"
     },
     "confidence": {
      "type": "number",
      "title": "Confidence"
     },
     "total_lockup": {
      "type": "number",
      "title": "Total Lockup"
     }
    },
    "type": "object",
    "required": [
     "network_id",
     "asset_id",
     "denominating_asset_id",
     "price",
     "confidence",
     "total_lockup"
    ],
    "title": "AssetPriceSerializer"
   },
   "AssetSerializer": {
    "properties": {
     "network_id": {
      "type": "integer",
      "title": "Network Id"
     },
     "id": {
      "type": "integer",
      "title": "Id"
     },
     "created_at": {
      "type": "integer",
      "title": "Created At"
     },
     "updated_at": {
      "type": "integer",
      "title": "Updated At"
     },
     "name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "ticker": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ticker"
     },
     "decimals": {
      "type": "integer",
      "title": "Decimals"
     },
     "creator": {
      "type": "string",
      "title": "Creator"
     },
     "manager": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Manager"
     },
     "reserve": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reserve"
     },
     "clawback": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Clawback"
     },
     "freeze": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Freeze"
     },
     "url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Url"
     },
     "total_supply": {
      "type": "integer",
      "title": "Total Supply"
     }
    },
    "type": "object",
    "required": [
     "network_id",
     "id",
     "created_at",
     "updated_at",
     "name",
     "ticker",
     "decimals",
     "creator",
     "manager",
     "reserve",
     "clawback",
     "freeze",
     "url",
     "total_supply"
    ],
    "title": "AssetSerializer"
   },
   "BalanceSerializer": {
    "properties": {
     "network_id": {
      "type": "integer",
      "title": "Network Id"
     },
     "protocol_id": {
      "type": "integer",
      "title": "Protocol Id"
     },
     "address": {
      "type": "string",
      "title": "Address"
     },
     "created_at": {
      "type": "integer",
      "title": "Created At"
     },
     "updated_at": {
      "type": "integer",
      "title": "Updated At"
     },
     "claimed_at": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Claimed At"
     },
     "asset_id": {
      "type": "integer",
      "title": "Asset Id"
     },
     "amount": {
      "type": "integer",
      "title": "Amount"
     }
    },
    "type": "object",
    "required": [
     "network_id",
     "protocol_id",
     "address",
     "created_at",
     "updated_at",
     "claimed_at",
     "asset_id",
     "amount"
    ],
    "title": "BalanceSerializer"
   },
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "HTTPValidationError"
   },
   "MarkSerializer": {
    "properties": {
     "timestamp": {
      "type": "integer",
      "title": "Timestamp"
     },
     "marks": {
      "items": {
       "$ref": "#/components/schemas/MarkTypeSerializer"
      },
      "type": "array",
      "title": "Marks",
      "description": "List of marks with their type, amount and value"
     }
    },
    "type": "object",
    "required": [
     "timestamp",
     "marks"
    ],
    "title": "MarkSerializer"
   },
   "MarkTypeSerializer": {
    "properties": {
     "type": {
      "type": "integer",
      "title": "Type",
      "description": "Type of the mark, 0 for buy, 1 for sell, 2 for liquidity added, 3 for liquidity removed"
     },
     "swaps": {
      "type": "integer",
      "title": "Swaps"
     },
     "amount": {
      "type": "number",
      "title": "Amount"
     },
     "value": {
      "type": "number",
      "title": "Value"
     }
    },
    "type": "object",
    "required": [
     "type",
     "swaps",
     "amount",
     "value"
    ],
    "title": "MarkTypeSerializer"
   },
   "MinifiedAssetSerializer": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "ticker": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ticker"
     },
     "decimals": {
      "type": "integer",
      "title": "Decimals"
     },
     "price": {
      "type": "number",
      "title": "Price"
     },
     "price1d": {
      "type": "number",
      "title": "Price1D"
     },
     "total_lockup": {
      "type": "number",
      "title": "Total Lockup"
     },
     "total_supply": {
      "type": "number",
      "title": "Total Supply"
     },
     "labels": {
      "items": {
       "type": "integer"
      },
      "type": "array",
      "title": "Labels"
     },
     "image": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Image"
     }
    },
    "type": "object",
    "required": [
     "name",
     "ticker",
     "decimals",
     "price",
     "price1d",
     "total_lockup",
     "total_supply",
     "labels",
     "image"
    ],
    "title": "MinifiedAssetSerializer"
   },
   "MinifiedPoolSerializer": {
    "properties": {
     "protocol_id": {
      "type": "integer",
      "title": "Protocol Id"
     },
     "fee": {
      "type": "integer",
      "title": "Fee"
     },
     "token_supply": {
      "type": "integer",
      "title": "Token Supply"
     },
     "asset_1_id": {
      "type": "integer",
      "title": "Asset 1 Id"
     },
     "asset_1_supply": {
      "type": "integer",
      "title": "Asset 1 Supply"
     },
     "asset_2_id": {
      "type": "integer",
      "title": "Asset 2 Id"
     },
     "asset_2_supply": {
      "type": "integer",
      "title": "Asset 2 Supply"
     }
    },
    "type": "object",
    "required": [
     "protocol_id",
     "fee",
     "token_supply",
     "asset_1_id",
     "asset_1_supply",
     "asset_2_id",
     "asset_2_supply"
    ],
    "title": "MinifiedPoolSerializer"
   },
   "NetworkSerializer": {
    "properties": {
     "id": {
      "type": "integer",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "stage": {
      "type": "string",
      "title": "Stage"
     },
     "block": {
      "type": "integer",
      "title": "Block"
     },
     "network_block": {
      "type": "integer",
      "title": "Network Block"
     },
     "blocks_behind": {
      "type": "integer",
      "title": "Blocks Behind"
     },
     "cache_updated_at": {
      "type": "integer",
      "title": "Cache Updated At"
     },
     "cache_seconds": {
      "type": "integer",
      "title": "Cache Seconds"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "stage",
     "block",
     "network_block",
     "blocks_behind",
     "cache_updated_at",
     "cache_seconds"
    ],
    "title": "NetworkSerializer"
   },
   "NextPaginatedResponse_SwapSerializer_Dict_int__AssetExtraSerializer__": {
    "properties": {
     "results": {
      "items": {
       "$ref": "#/components/schemas/SwapSerializer"
      },
      "type": "array",
      "title": "Results"
     },
     "extra": {
      "anyOf": [
       {
        "additionalProperties": {
         "$ref": "#/components/schemas/AssetExtraSerializer"
        },
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Extra"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "next": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Next"
     },
     "order_dir": {
      "type": "string",
      "title": "Order Dir"
     }
    },
    "type": "object",
    "required": [
     "results",
     "extra",
     "limit",
     "next",
     "order_dir"
    ],
    "title": "NextPaginatedResponse[SwapSerializer, Dict[int, AssetExtraSerializer]]"
   },
   "NoteSerializer": {
    "properties": {
     "network_id": {
      "type": "integer",
      "title": "Network Id"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     },
     "timestamp": {
      "type": "integer",
      "title": "Timestamp"
     },
     "address": {
      "type": "string",
      "title": "Address"
     },
     "asset_id": {
      "type": "integer",
      "title": "Asset Id"
     },
     "content": {
      "type": "string",
      "title": "Content"
     }
    },
    "type": "object",
    "required": [
     "network_id",
     "offset",
     "timestamp",
     "address",
     "asset_id",
     "content"
    ],
    "title": "NoteSerializer"
   },
   "NotesCountSerializer": {
    "properties": {
     "network_id": {
      "type": "integer",
      "title": "Network Id"
     },
     "asset_id": {
      "type": "integer",
      "title": "Asset Id"
     },
     "notes": {
      "type": "integer",
      "title": "Notes"
     },
     "min_timestamp": {
      "type": "integer",
      "title": "Min Timestamp"
     },
     "max_timestamp": {
      "type": "integer",
      "title": "Max Timestamp"
     }
    },
    "type": "object",
    "required": [
     "network_id",
     "asset_id",
     "notes",
     "min_timestamp",
     "max_timestamp"
    ],
    "title": "NotesCountSerializer"
   },
   "PaginatedResponse_AssetDetailSerializer_NoneType_": {
    "properties": {
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "results": {
      "items": {
       "$ref": "#/components/schemas/AssetDetailSerializer"
      },
      "type": "array",
      "title": "Results"
     },
     "extra": {
      "type": "null",
      "title": "Extra"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     },
     "order_by": {
      "type": "string",
      "title": "Order By"
     },
     "order_dir": {
      "type": "string",
      "title": "Order Dir"
     }
    },
    "type": "object",
    "required": [
     "count",
     "results",
     "extra",
     "limit",
     "offset",
     "order_by",
     "order_dir"
    ],
    "title": "PaginatedResponse[AssetDetailSerializer, NoneType]"
   },
   "PaginatedResponse_BalanceSerializer_NoneType_": {
    "properties": {
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "results": {
      "items": {
       "$ref": "#/components/schemas/BalanceSerializer"
      },
      "type": "array",
      "title": "Results"
     },
     "extra": {
      "type": "null",
      "title": "Extra"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     },
     "order_by": {
      "type": "string",
      "title": "Order By"
     },
     "order_dir": {
      "type": "string",
      "title": "Order Dir"
     }
    },
    "type": "object",
    "required": [
     "count",
     "results",
     "extra",
     "limit",
     "offset",
     "order_by",
     "order_dir"
    ],
    "title": "PaginatedResponse[BalanceSerializer, NoneType]"
   },
   "PaginatedResponse_NoteSerializer_NoneType_": {
    "properties": {
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "results": {
      "items": {
       "$ref": "#/components/schemas/NoteSerializer"
      },
      "type": "array",
      "title": "Results"
     },
     "extra": {
      "type": "null",
      "title": "Extra"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     },
     "order_by": {
      "type": "string",
      "title": "Order By"
     },
     "order_dir": {
      "type": "string",
      "title": "Order Dir"
     }
    },
    "type": "object",
    "required": [
     "count",
     "results",
     "extra",
     "limit",
     "offset",
     "order_by",
     "order_dir"
    ],
    "title": "PaginatedResponse[NoteSerializer, NoneType]"
   },
   "PaginatedResponse_PoolSerializer_NoneType_": {
    "properties": {
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "results": {
      "items": {
       "$ref": "#/components/schemas/PoolSerializer"
      },
      "type": "array",
      "title": "Results"
     },
     "extra": {
      "type": "null",
      "title": "Extra"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     },
     "order_by": {
      "type": "string",
      "title": "Order By"
     },
     "order_dir": {
      "type": "string",
      "title": "Order Dir"
     }
    },
    "type": "object",
    "required": [
     "count",
     "results",
     "extra",
     "limit",
     "offset",
     "order_by",
     "order_dir"
    ],
    "title": "PaginatedResponse[PoolSerializer, NoneType]"
   },
   "PaginatedResponse_VaultSerializer_List_PoolSerializer__": {
    "properties": {
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "results": {
      "items": {
       "$ref": "#/components/schemas/VaultSerializer"
      },
      "type": "array",
      "title": "Results"
     },
     "extra": {
      "anyOf": [
       {
        "items": {
         "$ref": "#/components/schemas/PoolSerializer"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Extra"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     },
     "order_by": {
      "type": "string",
      "title": "Order By"
     },
     "order_dir": {
      "type": "string",
      "title": "Order Dir"
     }
    },
    "type": "object",
    "required": [
     "count",
     "results",
     "extra",
     "limit",
     "offset",
     "order_by",
     "order_dir"
    ],
    "title": "PaginatedResponse[VaultSerializer, List[PoolSerializer]]"
   },
   "PoolSerializer": {
    "properties": {
     "id": {
      "type": "integer",
      "title": "Id"
     },
     "network_id": {
      "type": "integer",
      "title": "Network Id"
     },
     "protocol_id": {
      "type": "integer",
      "title": "Protocol Id"
     },
     "created_at": {
      "type": "integer",
      "title": "Created At"
     },
     "updated_at": {
      "type": "integer",
      "title": "Updated At"
     },
     "address": {
      "type": "string",
      "title": "Address"
     },
     "application_id": {
      "type": "integer",
      "title": "Application Id"
     },
     "fee": {
      "type": "integer",
      "title": "Fee"
     },
     "token_id": {
      "type": "integer",
      "title": "Token Id"
     },
     "token_supply": {
      "type": "integer",
      "title": "Token Supply"
     },
     "asset_1_id": {
      "type": "integer",
      "title": "Asset 1 Id"
     },
     "asset_1_supply": {
      "type": "integer",
      "title": "Asset 1 Supply"
     },
     "asset_2_id": {
      "type": "integer",
      "title": "Asset 2 Id"
     },
     "asset_2_supply": {
      "type": "integer",
      "title": "Asset 2 Supply"
     }
    },
    "type": "object",
    "required": [
     "id",
     "network_id",
     "protocol_id",
     "created_at",
     "updated_at",
     "address",
     "application_id",
     "fee",
     "token_id",
     "token_supply",
     "asset_1_id",
     "asset_1_supply",
     "asset_2_id",
     "asset_2_supply"
    ],
    "title": "PoolSerializer"
   },
   "ProtocolSerializer": {
    "properties": {
     "id": {
      "type": "integer",
      "title": "Id"
     },
     "active": {
      "type": "boolean",
      "title": "Active"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "type": {
      "type": "integer",
      "title": "Type"
     },
     "version": {
      "type": "string",
      "title": "Version"
     },
     "url": {
      "type": "string",
      "title": "Url"
     },
     "tvl": {
      "type": "number",
      "title": "Tvl"
     }
    },
    "type": "object",
    "required": [
     "id",
     "active",
     "name",
     "type",
     "version",
     "url",
     "tvl"
    ],
    "title": "ProtocolSerializer"
   },
   "ProtocolVolumeAssetSerializer": {
    "properties": {
     "swaps": {
      "type": "integer",
      "title": "Swaps"
     },
     "amount": {
      "type": "number",
      "title": "Amount"
     },
     "volume": {
      "type": "number",
      "title": "Volume"
     },
     "vwap": {
      "type": "number",
      "title": "Vwap"
     },
     "confidence": {
      "type": "number",
      "title": "Confidence"
     }
    },
    "type": "object",
    "required": [
     "swaps",
     "amount",
     "volume",
     "vwap",
     "confidence"
    ],
    "title": "ProtocolVolumeAssetSerializer"
   },
   "ProtocolVolumeSerializer": {
    "properties": {
     "denominating_asset_id": {
      "type": "integer",
      "title": "Denominating Asset Id"
     },
     "total_swaps": {
      "type": "integer",
      "title": "Total Swaps"
     },
     "total_volume": {
      "type": "number",
      "title": "Total Volume"
     },
     "assets": {
      "additionalProperties": {
       "$ref": "#/components/schemas/ProtocolVolumeAssetSerializer"
      },
      "type": "object",
      "title": "Assets"
     }
    },
    "type": "object",
    "required": [
     "denominating_asset_id",
     "total_swaps",
     "total_volume",
     "assets"
    ],
    "title": "ProtocolVolumeSerializer"
   },
   "SwapFeeSerializer": {
    "properties": {
     "token_amount": {
      "type": "integer",
      "title": "Token Amount"
     },
     "token_liquidity_amount": {
      "type": "integer",
      "title": "Token Liquidity Amount"
     },
     "bps_fee": {
      "type": "integer",
      "title": "Bps Fee"
     },
     "router_fee_bps": {
      "type": "integer",
      "title": "Router fee",
      "description": "Router fee in basis points of the trade on swaps with ALGO on one side, below `router_fee_large_from_usd` of the ALGO side; paid to the Algorand protocol fee sink. 0 when the router fee is off."
     },
     "router_fee_bps_large": {
      "type": "integer",
      "title": "Router fee, large swaps",
      "description": "Router fee in basis points from `router_fee_large_from_usd` of the ALGO side. Quotes give the tier that applies in `fee_bps`."
     },
     "router_fee_large_from_usd": {
      "type": "number",
      "title": "Large swap threshold",
      "description": "USD value of the ALGO side from which `router_fee_bps_large` applies."
     }
    },
    "type": "object",
    "required": [
     "token_amount",
     "token_liquidity_amount",
     "bps_fee"
    ],
    "title": "SwapFeeSerializer"
   },
   "SwapSerializer": {
    "properties": {
     "type": {
      "type": "integer",
      "title": "Type"
     },
     "network_id": {
      "type": "integer",
      "title": "Network Id"
     },
     "protocol_id": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Protocol Id"
     },
     "asset_1_id": {
      "type": "integer",
      "title": "Asset 1 Id"
     },
     "asset_2_id": {
      "type": "integer",
      "title": "Asset 2 Id"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     },
     "block": {
      "type": "integer",
      "title": "Block"
     },
     "timestamp": {
      "type": "integer",
      "title": "Timestamp",
      "description": "Unix timestamp of the swap"
     },
     "group": {
      "type": "string",
      "title": "Group"
     },
     "address": {
      "type": "string",
      "title": "Address"
     },
     "executor": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Executor"
     },
     "asset_1_delta": {
      "type": "number",
      "title": "Asset 1 Delta",
      "description": "Delta of asset 1 according to executor or pool"
     },
     "asset_2_delta": {
      "type": "number",
      "title": "Asset 2 Delta",
      "description": "Delta of asset 2 according to executor or pool"
     },
     "asset_1_delta_value": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asset 1 Delta Value",
      "description": "Value of asset 1 delta in network units or specified asset"
     },
     "asset_2_delta_value": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asset 2 Delta Value",
      "description": "Value of asset 2 delta in network units or specified asset"
     },
     "token_id": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Token Id"
     },
     "token_delta": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Token Delta"
     },
     "token_supply": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Token Supply"
     }
    },
    "type": "object",
    "required": [
     "type",
     "network_id",
     "asset_1_id",
     "asset_2_id",
     "offset",
     "block",
     "timestamp",
     "group",
     "address",
     "asset_1_delta",
     "asset_2_delta",
     "asset_1_delta_value",
     "asset_2_delta_value"
    ],
    "title": "SwapSerializer"
   },
   "UnsignedTransactionSerializer": {
    "properties": {
     "txn": {
      "type": "string",
      "title": "Txn"
     },
     "signers": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Signers"
     },
     "message": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Message"
     },
     "stxn": {
      "type": "string",
      "title": "Signed transaction",
      "description": "Set on transactions already signed by a third party (`signers` is then `[]`): submit these base64 msgpack signed-transaction bytes unchanged, in their place in the group."
     }
    },
    "type": "object",
    "required": [
     "txn",
     "signers",
     "message"
    ],
    "title": "UnsignedTransactionSerializer"
   },
   "ValidationError": {
    "properties": {
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array",
      "title": "Location"
     },
     "msg": {
      "type": "string",
      "title": "Message"
     },
     "type": {
      "type": "string",
      "title": "Error Type"
     }
    },
    "type": "object",
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError"
   },
   "VaultSerializer": {
    "properties": {
     "network_id": {
      "type": "integer",
      "title": "Network Id"
     },
     "protocol_id": {
      "type": "integer",
      "title": "Protocol Id"
     },
     "id": {
      "type": "integer",
      "title": "Id"
     },
     "created_at": {
      "type": "integer",
      "title": "Created At"
     },
     "updated_at": {
      "type": "integer",
      "title": "Updated At"
     },
     "type": {
      "type": "integer",
      "title": "Type"
     },
     "deployer": {
      "type": "string",
      "title": "Deployer"
     },
     "claimer": {
      "type": "string",
      "title": "Claimer"
     },
     "asset_id": {
      "type": "integer",
      "title": "Asset Id"
     },
     "steps": {
      "type": "integer",
      "title": "Steps"
     },
     "amount_per_step": {
      "type": "integer",
      "title": "Amount Per Step"
     },
     "time_per_step": {
      "type": "integer",
      "title": "Time Per Step"
     },
     "is_done": {
      "type": "boolean",
      "title": "Is Done"
     },
     "initial_amount": {
      "type": "integer",
      "title": "Initial Amount"
     },
     "given_amount": {
      "type": "integer",
      "title": "Given Amount"
     },
     "prev_release": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Prev Release"
     },
     "next_release": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Next Release"
     },
     "extra": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Extra"
     }
    },
    "type": "object",
    "required": [
     "network_id",
     "protocol_id",
     "id",
     "created_at",
     "updated_at",
     "type",
     "deployer",
     "claimer",
     "asset_id",
     "steps",
     "amount_per_step",
     "time_per_step",
     "is_done",
     "initial_amount",
     "given_amount",
     "prev_release",
     "next_release",
     "extra"
    ],
    "title": "VaultSerializer"
   },
   "WalletPnlSerializer": {
    "properties": {
     "timestamp": {
      "type": "integer",
      "title": "Timestamp"
     },
     "asset_id": {
      "type": "integer",
      "title": "Asset Id"
     },
     "amount_bought": {
      "type": "number",
      "title": "Amount Bought"
     },
     "amount_bought_value": {
      "type": "number",
      "title": "Amount Bought Value"
     },
     "amount_sold": {
      "type": "number",
      "title": "Amount Sold"
     },
     "amount_sold_value": {
      "type": "number",
      "title": "Amount Sold Value"
     }
    },
    "type": "object",
    "required": [
     "timestamp",
     "asset_id",
     "amount_bought",
     "amount_bought_value",
     "amount_sold",
     "amount_sold_value"
    ],
    "title": "WalletPnlSerializer"
   },
   "WalletValueBalanceSerializer": {
    "properties": {
     "provider": {
      "type": "string",
      "title": "Provider"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "type": {
      "type": "string",
      "title": "Type"
     },
     "balances": {
      "additionalProperties": {
       "type": "number"
      },
      "type": "object",
      "title": "Balances"
     },
     "token_balances": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Token Balances"
     }
    },
    "type": "object",
    "required": [
     "provider",
     "name",
     "type",
     "balances",
     "token_balances"
    ],
    "title": "WalletValueBalanceSerializer"
   },
   "WalletValueSerializer": {
    "properties": {
     "assets": {
      "additionalProperties": {
       "$ref": "#/components/schemas/MinifiedAssetSerializer"
      },
      "type": "object",
      "title": "Assets"
     },
     "pools": {
      "additionalProperties": {
       "$ref": "#/components/schemas/MinifiedPoolSerializer"
      },
      "type": "object",
      "title": "Pools"
     },
     "balances": {
      "additionalProperties": {
       "type": "number"
      },
      "type": "object",
      "title": "Balances"
     },
     "token_balances": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Token Balances"
     },
     "labeled_balances": {
      "items": {
       "$ref": "#/components/schemas/WalletValueBalanceSerializer"
      },
      "type": "array",
      "title": "Labeled Balances"
     }
    },
    "type": "object",
    "required": [
     "assets",
     "pools",
     "balances",
     "token_balances",
     "labeled_balances"
    ],
    "title": "WalletValueSerializer"
   }
  }
 },
 "servers": [
  {
   "url": "https://vestleg.api.nodely.io"
  }
 ]
}
