{
  "openapi": "3.1.0",
  "info": {
    "title": "Mimir API",
    "version": "1",
    "summary": "Free, keyless reads of Mimir feeds.",
    "description": "Live prices of tokens, tokenized stocks and indexes, from Solana pools.\n\nFor AI agents: the whole API in one Markdown file: [mimir-api.md](https://api.mimirfeeds.io/mimir-api.md)\n\n## Quick start\n\n```sh\ncurl https://api.mimirfeeds.io/v1/feed/SOL\n```\n\n`feed.price` is the USDC price, computed from the feed's pools for this request. `feed.slot` is the Solana slot\nwhose pool states gave that price: anyone can read those pools at that slot and check it.\nWhen the feed cannot be priced right now, you get its most recent valid price with that price's own `slot` and\n`updatedAt` (so you see its true age), and `reason` says why there is no new price.\n\nSeveral feeds in one call:\n\n```sh\ncurl -X POST https://api.mimirfeeds.io/v1/feeds -H 'content-type: application/json' -d '{\"feeds\":[\"SOL\",\"TSLAX\"]}'\n```\n\n## Score\n\n`score.value` rates a token feed out of 100: how much it costs to move its price, and how well it stays priced. `score.band` names the range. Information only: it never blocks anything. Null for an index feed.\n\nScore = 100 × (0.50 × depth + gate × (0.20 × stays + 0.15 × venues + 0.15 × activity))\n\n| Part | Measures | Scale |\n|---|---|---|\n| depth | USDC needed to move a majority of the feed's venues by 0.5 % | `L(cost)` |\n| stays | USDC needed to push one venue far enough from the others to pause the feed | `L(cost)`; 1 with a single venue |\n| venues | distinct exchanges: Orca, Raydium, Meteora, PumpSwap | 1, 2, 3+ → ⅓, ⅔, 1 |\n| activity | trades in 24 h on the least active pool, halved after an hour without a trade | 1,000 trades a day → 1; unknown → 0.5 |\n\n- Each venue counts once, through its pool that is easiest to move.\n- `L(x) = log10(x / 100) / 4`, kept between 0 and 1: 100 USDC → 0, 1,000,000 USDC → 1.\n- `gate = min(1, depth / 0.25)`: stays, venues and activity count fully only once depth reaches 1,000 USDC.\n\n| Band | Score |\n|---|---|\n| Excellent | 80 and up |\n| Strong | 65 to 79 |\n| Good | 50 to 64 |\n| Fair | 35 to 49 |\n| Thin | below 35 |\n\n## Limits\n\nPer IP (IPv6: per /48):\n\n| Endpoints | Calls per minute |\n|---|---|\n| `GET /v1/feed/{feed}` + `POST /v1/feeds` | 60, shared |\n| `GET /v1/feed/{feed}/history` + `POST /v1/feeds/history` | 60, shared |\n| `GET /v1/feeds` | 60 |\n| `GET /v1/pools` | 10, and 30 new lookups per day |\n\nA POST counts one call per distinct feed (tickers ignore case). A rejected request (400, 404, 413, 415) still counts one call. Headers: `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`.\nGET answers `304` to `If-None-Match`. A POST body is JSON, 8 KB max.\n\n## Errors\n\nBody: `{\"error\":{\"code\",\"hint\",\"retryAfterMs\"}}`. `hint` says what to fix.\n\n| Status | `code` |\n|---|---|\n| 400 | `INVALID_INPUT` |\n| 404 | `NOT_FOUND` |\n| 413 | `PAYLOAD_TOO_LARGE` |\n| 415 | `UNSUPPORTED_MEDIA_TYPE` |\n| 429 | `RATE_LIMITED` |\n| 503 | `CAPACITY`, `UPSTREAM_UNAVAILABLE` |\n\nOn `429` and `503`, retry after `Retry-After`.\n"
  },
  "servers": [
    {
      "url": "https://api.mimirfeeds.io"
    }
  ],
  "paths": {
    "/v1/feed/{feed}": {
      "get": {
        "operationId": "getFeed",
        "summary": "Get a feed",
        "description": "One feed, what it is made of, and its price now, by ticker (case-insensitive) or address.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Feed"
          }
        ],
        "responses": {
          "200": {
            "description": "The feed.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "public, max-age=1"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeedAnswer"
                },
                "examples": {
                  "token": {
                    "summary": "Token feed (SOL)",
                    "value": {
                      "feed": {
                        "ticker": "SOL",
                        "kind": "token",
                        "address": "F5fXuWuVFwBF3eBVtFkxXS5PMY651uVQ1bL4W4mse5Qj",
                        "categories": [
                          "majors",
                          "majors.native"
                        ],
                        "token": {
                          "mint": "So11111111111111111111111111111111111111112",
                          "symbol": "SOL",
                          "name": "Wrapped SOL"
                        },
                        "quote": {
                          "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                          "symbol": "USDC"
                        },
                        "sources": [
                          {
                            "pool": "HTvjzsfX3yU6BUodCjZ5vZkUrAxMDTrBs3CJaq43ashR",
                            "venue": "meteora-dlmm",
                            "liquidityUsdc": 382135.85
                          }
                        ],
                        "score": {
                          "value": 74,
                          "band": "Strong"
                        },
                        "price": 100.62191695649796,
                        "confidenceBps": 1,
                        "dispersionBps": 0,
                        "slot": "462898727",
                        "updatedAt": 1793280686
                      }
                    }
                  },
                  "index": {
                    "summary": "Index feed (BTCVSETH)",
                    "value": {
                      "feed": {
                        "ticker": "BTCVSETH",
                        "kind": "index",
                        "address": "JCHDkXTgSiA2ukZugSb13rhxeWmZg7PhTx3ChGF12Hj7",
                        "categories": [
                          "defi",
                          "defi.indices"
                        ],
                        "token": null,
                        "quote": {
                          "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                          "symbol": "USDC"
                        },
                        "components": [
                          {
                            "ticker": "WETH",
                            "address": "GbLKXjb6n7jNpQDWv9AvbW4dfFSyPt9b3Xn18o5HYPpa",
                            "weight": 0.4961
                          },
                          {
                            "ticker": "CBBTC",
                            "address": "A8oZZddUxfDW5tixbjwFmqt9eB96QkPzJRyv1zb9VsLa",
                            "weight": 0.5039
                          }
                        ],
                        "score": null,
                        "price": 101.81097332773696,
                        "confidenceBps": 7,
                        "dispersionBps": 16,
                        "slot": "462643029",
                        "updatedAt": 1793226053
                      }
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not modified: the `If-None-Match` ETag still matches."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "tags": [
          "Feeds"
        ],
        "x-codeSamples": [
          {
            "lang": "shell",
            "label": "cURL",
            "source": "curl 'https://api.mimirfeeds.io/v1/feed/SOL'"
          },
          {
            "lang": "js",
            "label": "JavaScript",
            "source": "const res = await fetch(\"https://api.mimirfeeds.io/v1/feed/SOL\");\nconsole.log(await res.json());"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nr = requests.get(\"https://api.mimirfeeds.io/v1/feed/SOL\")\nprint(r.json())"
          }
        ]
      }
    },
    "/v1/feed/{feed}/history": {
      "get": {
        "operationId": "getHistory",
        "summary": "Feed price history",
        "description": "The recorded USDC price history of one feed.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Feed"
          },
          {
            "$ref": "#/components/parameters/Range"
          }
        ],
        "responses": {
          "200": {
            "description": "The history.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryAnswer"
                },
                "example": {
                  "ticker": "SOL",
                  "address": "F5fXuWuVFwBF3eBVtFkxXS5PMY651uVQ1bL4W4mse5Qj",
                  "range": "1d",
                  "points": [
                    [
                      1793122450,
                      101.058280142996
                    ],
                    [
                      1793123995,
                      100.70244266983543
                    ],
                    [
                      1793124600,
                      100.66217176099808
                    ]
                  ]
                }
              }
            }
          },
          "304": {
            "description": "Not modified: the `If-None-Match` ETag still matches."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "tags": [
          "Feeds"
        ],
        "x-codeSamples": [
          {
            "lang": "shell",
            "label": "cURL",
            "source": "curl 'https://api.mimirfeeds.io/v1/feed/SOL/history?range=1d'"
          },
          {
            "lang": "js",
            "label": "JavaScript",
            "source": "const res = await fetch(\"https://api.mimirfeeds.io/v1/feed/SOL/history?range=1d\");\nconsole.log(await res.json());"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nr = requests.get(\"https://api.mimirfeeds.io/v1/feed/SOL/history?range=1d\")\nprint(r.json())"
          }
        ]
      }
    },
    "/v1/feeds": {
      "get": {
        "operationId": "listFeeds",
        "summary": "List all feeds",
        "description": "Every feed by ticker, 50 per page by default, with what each one prices and what it is made of. No prices here. Page with `page`; any other parameter is refused.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "1-based page number; past `lastPage` the page is empty.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Feeds per page, 1 or more, 50 by default, at most 100 (larger values are capped).",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of feeds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeedsAnswer"
                },
                "example": {
                  "items": [
                    {
                      "ticker": "AAPLX",
                      "kind": "token",
                      "address": "yfnXgeM8WQYi3LQqmuyQD2WHp6edco5iD5owBVDjpe9",
                      "categories": [
                        "rwa",
                        "rwa.stocks"
                      ],
                      "token": {
                        "mint": "XsbEhLAtcf6HdfpFZ5xEMdqW8nfAvcsP5bdudRLJzJp",
                        "symbol": "AAPLx",
                        "name": "Apple xStock"
                      },
                      "quote": {
                        "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                        "symbol": "USDC"
                      },
                      "sources": [
                        {
                          "pool": "CKwJZwm7oj3nu4653N1EpDrqXbXAYXoPFiPeEnLouF8y",
                          "venue": "raydium-clmm",
                          "liquidityUsdc": 270490.28
                        }
                      ]
                    },
                    {
                      "ticker": "AMC",
                      "kind": "token",
                      "address": "Hvd3SLZN3UEanamnbbqkWrD6XcggmaRnqRw322Xi1Rpx",
                      "categories": [
                        "rwa",
                        "rwa.stocks"
                      ],
                      "token": {
                        "mint": "AMC1qwR9KhiyrQBRPrxnfo4JfMeMZqEBvt5tgTytNNoc",
                        "symbol": "AMC",
                        "name": "AMC Entertainment - Backpack Securities"
                      },
                      "quote": {
                        "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                        "symbol": "USDC"
                      },
                      "sources": [
                        {
                          "pool": "HUEUxykYVEuunvraaHSfqUewMMWjJSuBfTpmKKfpKmjP",
                          "venue": "raydium-clmm",
                          "liquidityUsdc": 83763.56
                        }
                      ]
                    }
                  ],
                  "total": 117,
                  "page": 1,
                  "lastPage": 3,
                  "limit": 50
                }
              }
            }
          },
          "304": {
            "description": "Not modified: the `If-None-Match` ETag still matches."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "tags": [
          "Feeds"
        ],
        "x-codeSamples": [
          {
            "lang": "shell",
            "label": "cURL",
            "source": "curl 'https://api.mimirfeeds.io/v1/feeds'"
          },
          {
            "lang": "js",
            "label": "JavaScript",
            "source": "const res = await fetch(\"https://api.mimirfeeds.io/v1/feeds\");\nconsole.log(await res.json());"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nr = requests.get(\"https://api.mimirfeeds.io/v1/feeds\")\nprint(r.json())"
          }
        ]
      },
      "post": {
        "operationId": "getFeeds",
        "summary": "Get several feeds (POST)",
        "description": "Up to 30 feeds in one call, in input order, each as Get a feed answers it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "feeds"
                ],
                "properties": {
                  "feeds": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9]{1,44}$"
                    },
                    "description": "Tickers or feed addresses, 1 to 30 after removing duplicates."
                  }
                }
              },
              "example": {
                "feeds": [
                  "SOL",
                  "TSLAX"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One item per feed, in your order: the feed, or its own error (`NOT_FOUND`, `UPSTREAM_UNAVAILABLE`).",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeedBatchAnswer"
                },
                "example": {
                  "items": [
                    {
                      "input": "SOL",
                      "feed": {
                        "ticker": "SOL",
                        "kind": "token",
                        "address": "F5fXuWuVFwBF3eBVtFkxXS5PMY651uVQ1bL4W4mse5Qj",
                        "categories": [
                          "majors",
                          "majors.native"
                        ],
                        "token": {
                          "mint": "So11111111111111111111111111111111111111112",
                          "symbol": "SOL",
                          "name": "Wrapped SOL"
                        },
                        "quote": {
                          "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                          "symbol": "USDC"
                        },
                        "sources": [
                          {
                            "pool": "HTvjzsfX3yU6BUodCjZ5vZkUrAxMDTrBs3CJaq43ashR",
                            "venue": "meteora-dlmm",
                            "liquidityUsdc": 382135.85
                          }
                        ],
                        "score": {
                          "value": 74,
                          "band": "Strong"
                        },
                        "price": 100.62191695649796,
                        "confidenceBps": 1,
                        "dispersionBps": 0,
                        "slot": "462898727",
                        "updatedAt": 1793280686
                      }
                    },
                    {
                      "input": "NOPE",
                      "error": {
                        "code": "NOT_FOUND",
                        "hint": "NOPE is not a Mimir feed ticker or address",
                        "retryAfterMs": null
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "tags": [
          "Feeds"
        ],
        "x-codeSamples": [
          {
            "lang": "shell",
            "label": "cURL",
            "source": "curl -X POST https://api.mimirfeeds.io/v1/feeds -H 'content-type: application/json' -d '{\"feeds\":[\"SOL\",\"TSLAX\"]}'"
          },
          {
            "lang": "js",
            "label": "JavaScript",
            "source": "const res = await fetch(\"https://api.mimirfeeds.io/v1/feeds\", {\n  method: \"POST\",\n  headers: { \"content-type\": \"application/json\" },\n  body: JSON.stringify({\"feeds\":[\"SOL\",\"TSLAX\"]}),\n});\nconsole.log(await res.json());"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nr = requests.post(\"https://api.mimirfeeds.io/v1/feeds\", json={\"feeds\":[\"SOL\", \"TSLAX\"]})\nprint(r.json())"
          }
        ],
        "parameters": [
          {
            "name": "content-type",
            "in": "header",
            "required": true,
            "description": "`application/json`.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          }
        ]
      }
    },
    "/v1/feeds/history": {
      "post": {
        "operationId": "getHistoryBatch",
        "summary": "History of several feeds (POST)",
        "description": "The recorded USDC price history of up to 20 feeds.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "feeds",
                  "range"
                ],
                "properties": {
                  "feeds": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9]{1,44}$"
                    },
                    "description": "Tickers or feed addresses, 1 to 20 after removing duplicates."
                  },
                  "range": {
                    "type": "string",
                    "enum": [
                      "1h",
                      "1d",
                      "1w",
                      "1m"
                    ]
                  }
                }
              },
              "example": {
                "feeds": [
                  "SOL",
                  "TSLAX"
                ],
                "range": "1d"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One history per feed, in your order, or its own error.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryBatchAnswer"
                },
                "example": {
                  "range": "1d",
                  "items": [
                    {
                      "ticker": "SOL",
                      "address": "F5fXuWuVFwBF3eBVtFkxXS5PMY651uVQ1bL4W4mse5Qj",
                      "points": [
                        [
                          1793122450,
                          101.058280142996
                        ],
                        [
                          1793123995,
                          100.70244266983543
                        ],
                        [
                          1793124600,
                          100.66217176099808
                        ]
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "413": {
            "$ref": "#/components/responses/Error"
          },
          "415": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "tags": [
          "Feeds"
        ],
        "x-codeSamples": [
          {
            "lang": "shell",
            "label": "cURL",
            "source": "curl -X POST https://api.mimirfeeds.io/v1/feeds/history -H 'content-type: application/json' -d '{\"feeds\":[\"SOL\",\"TSLAX\"],\"range\":\"1d\"}'"
          },
          {
            "lang": "js",
            "label": "JavaScript",
            "source": "const res = await fetch(\"https://api.mimirfeeds.io/v1/feeds/history\", {\n  method: \"POST\",\n  headers: { \"content-type\": \"application/json\" },\n  body: JSON.stringify({\"feeds\":[\"SOL\",\"TSLAX\"],\"range\":\"1d\"}),\n});\nconsole.log(await res.json());"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nr = requests.post(\"https://api.mimirfeeds.io/v1/feeds/history\", json={\"feeds\":[\"SOL\", \"TSLAX\"], \"range\":\"1d\"})\nprint(r.json())"
          }
        ],
        "parameters": [
          {
            "name": "content-type",
            "in": "header",
            "required": true,
            "description": "`application/json`.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          }
        ]
      }
    },
    "/v1/pools": {
      "get": {
        "operationId": "listPools",
        "summary": "Find pools",
        "description": "Up to 8 pools of a token, most liquid first, from a public listing. Check each pool on chain before you use it.",
        "parameters": [
          {
            "name": "mint",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
              "default": "XsDoVfqeBukxuZHWhdvWHBhgEHjGNst4MLodqsJHzoB"
            },
            "example": "XsDoVfqeBukxuZHWhdvWHBhgEHjGNst4MLodqsJHzoB"
          },
          {
            "name": "quote",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "USDC",
                "SOL"
              ],
              "default": "USDC"
            },
            "example": "USDC"
          }
        ],
        "responses": {
          "200": {
            "description": "The pools. Up to 10 min old when the listing is down.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PoolsAnswer"
                },
                "example": {
                  "mint": "XsDoVfqeBukxuZHWhdvWHBhgEHjGNst4MLodqsJHzoB",
                  "quote": "USDC",
                  "quoteMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                  "items": [
                    {
                      "pool": "8aDaBQkTrS6HVMjyc6EZebgdiaXhLYGriDWKWWp1NpFF",
                      "venue": "raydium-clmm",
                      "programId": "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK",
                      "quoteReserveRaw": "1254502000000",
                      "trades24h": 23959
                    },
                    {
                      "pool": "HHQUnUbmWLrYzkscDY1C3deEFbGtiGBGoHjpANogmvum",
                      "venue": "raydium-clmm",
                      "programId": "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK",
                      "quoteReserveRaw": "120805000000",
                      "trades24h": 536
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          }
        },
        "tags": [
          "Feeds"
        ],
        "x-codeSamples": [
          {
            "lang": "shell",
            "label": "cURL",
            "source": "curl 'https://api.mimirfeeds.io/v1/pools?mint=XsDoVfqeBukxuZHWhdvWHBhgEHjGNst4MLodqsJHzoB&quote=USDC'"
          },
          {
            "lang": "js",
            "label": "JavaScript",
            "source": "const res = await fetch(\"https://api.mimirfeeds.io/v1/pools?mint=XsDoVfqeBukxuZHWhdvWHBhgEHjGNst4MLodqsJHzoB&quote=USDC\");\nconsole.log(await res.json());"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nr = requests.get(\"https://api.mimirfeeds.io/v1/pools?mint=XsDoVfqeBukxuZHWhdvWHBhgEHjGNst4MLodqsJHzoB&quote=USDC\")\nprint(r.json())"
          }
        ]
      }
    }
  },
  "components": {
    "parameters": {
      "Feed": {
        "name": "feed",
        "in": "path",
        "required": true,
        "description": "The feed's ticker (1 to 12 letters or digits, case-insensitive) or its address.",
        "schema": {
          "type": "string",
          "pattern": "^[A-Za-z0-9]{1,44}$",
          "default": "SOL"
        },
        "example": "SOL"
      },
      "Range": {
        "name": "range",
        "in": "query",
        "required": true,
        "description": "`1h` (about one point a minute), `1d` (about one per 15 min), `1w` (about one per hour) or `1m` (about one per 4 hours). Spacing is approximate: points follow price updates, not a fixed grid.",
        "schema": {
          "type": "string",
          "enum": [
            "1h",
            "1d",
            "1w",
            "1m"
          ],
          "default": "1d"
        },
        "example": "1d"
      }
    },
    "responses": {
      "Error": {
        "description": "An error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "limited": {
                "value": {
                  "error": {
                    "code": "RATE_LIMITED",
                    "hint": "60 credits per minute per IP on this route; wait for the window",
                    "retryAfterMs": 4200
                  }
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "Slot": {
        "type": "string",
        "pattern": "^[0-9]{1,20}$"
      },
      "ErrorBody": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "code",
          "hint",
          "retryAfterMs"
        ],
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "INVALID_INPUT",
              "NOT_FOUND",
              "PAYLOAD_TOO_LARGE",
              "UNSUPPORTED_MEDIA_TYPE",
              "RATE_LIMITED",
              "CAPACITY",
              "UPSTREAM_UNAVAILABLE"
            ]
          },
          "hint": {
            "type": "string",
            "description": "What to fix, or when to retry."
          },
          "retryAfterMs": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "description": "When to retry; null when retrying will not help."
          }
        }
      },
      "Error": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody"
          }
        }
      },
      "FeedIdentity": {
        "type": "object",
        "required": [
          "ticker",
          "kind",
          "address",
          "categories",
          "token",
          "quote"
        ],
        "properties": {
          "ticker": {
            "type": [
              "string",
              "null"
            ],
            "description": "The feed's name."
          },
          "kind": {
            "type": "string",
            "enum": [
              "token",
              "index"
            ],
            "description": "`token`: one token, priced from its pools. `index`: built from other feeds."
          },
          "address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The feed account a Solana program reads."
          },
          "categories": {
            "description": "Category ids from the Mimir App, parent first: `rwa`, then `rwa.stocks`. Empty when none is known.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "rwa",
              "rwa.stocks"
            ]
          },
          "token": {
            "description": "The token a `token` feed prices. Null for an index.",
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "mint",
                  "symbol",
                  "name"
                ],
                "properties": {
                  "mint": {
                    "type": "string"
                  },
                  "symbol": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              }
            ]
          },
          "quote": {
            "description": "The token the pools trade against (USDC or SOL). `price` is always in USDC.",
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "mint",
                  "symbol"
                ],
                "properties": {
                  "mint": {
                    "type": "string"
                  },
                  "symbol": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              }
            ]
          },
          "sources": {
            "description": "`token` feeds: the pools the feed reads.",
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "pool",
                "venue",
                "liquidityUsdc"
              ],
              "properties": {
                "pool": {
                  "type": "string",
                  "description": "The pool address."
                },
                "venue": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The exchange program, named as in Find pools (`orca-whirlpool`, `meteora-dlmm`, …)."
                },
                "liquidityUsdc": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "The pool's liquidity in USDC, from a public pool listing. Null when unknown."
                }
              }
            }
          },
          "components": {
            "description": "`index` feeds: the feeds it is built from.",
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "ticker",
                "address",
                "weight"
              ],
              "properties": {
                "ticker": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "address": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "weight": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "minimum": 0,
                  "maximum": 1,
                  "description": "The component's share of the index value now, from 0 to 1. Null without a price (as in List all feeds)."
                }
              }
            }
          }
        }
      },
      "Feed": {
        "allOf": [
          {
            "$ref": "#/components/schemas/FeedIdentity"
          },
          {
            "type": "object",
            "required": [
              "score",
              "price",
              "confidenceBps",
              "dispersionBps",
              "slot",
              "updatedAt"
            ],
            "properties": {
              "score": {
                "description": "Recommendation score out of 100 and its band (see Score). Null for an index, or while its inputs are missing.",
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "value",
                      "band"
                    ],
                    "properties": {
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "band": {
                        "type": "string",
                        "enum": [
                          "Excellent",
                          "Strong",
                          "Good",
                          "Fair",
                          "Thin"
                        ],
                        "description": "Excellent ≥ 80, Strong ≥ 65, Good ≥ 50, Fair ≥ 35, else Thin."
                      }
                    }
                  }
                ]
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The USDC price, computed from the pools for this request. When it cannot be priced right now: the most recent valid price (the last computed one, else the one stored on-chain), with `reason`. Null when the feed never had one, or when the only one known is a SOL-quoted price stored on-chain (its USDC value at that slot is not established). A fallback keeps its own `slot` and `updatedAt`, also while the indexer stream is down (`reason` `UNAVAILABLE`)."
              },
              "confidenceBps": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How sure the price is, in basis points (smaller is better). Null when unknown."
              },
              "dispersionBps": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How far apart the sources are, in basis points. Null when unknown."
              },
              "slot": {
                "$ref": "#/components/schemas/Slot",
                "description": "The Solana slot of this price (never the current slot when the price is older); read the pools or the feed account at that slot to check it. Without any price: the slot that was evaluated."
              },
              "updatedAt": {
                "type": "integer",
                "description": "Unix seconds of this price, so an older price shows its true age."
              },
              "reason": {
                "type": "string",
                "description": "Only when there is no new price right now: why, as a short code (for example `LIVE_SOURCE_QUORUM_UNMET`, `INVALID_PLAN`, `NOT_READY`, `UNAVAILABLE`)."
              }
            }
          }
        ]
      },
      "FeedAnswer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "feed"
        ],
        "properties": {
          "feed": {
            "$ref": "#/components/schemas/Feed"
          }
        }
      },
      "FeedBatchAnswer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 30,
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "input",
                    "feed"
                  ],
                  "properties": {
                    "input": {
                      "type": "string"
                    },
                    "feed": {
                      "$ref": "#/components/schemas/Feed"
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "input",
                    "error"
                  ],
                  "properties": {
                    "input": {
                      "type": "string"
                    },
                    "error": {
                      "$ref": "#/components/schemas/ErrorBody"
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "FeedsAnswer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "total",
          "page",
          "lastPage",
          "limit"
        ],
        "properties": {
          "items": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/FeedIdentity"
            }
          },
          "total": {
            "type": "integer",
            "description": "Feeds matching",
            "across all pages.": null
          },
          "page": {
            "type": "integer",
            "description": "1-based number of this page."
          },
          "lastPage": {
            "type": "integer",
            "description": "Number of the last page, 1 when there are no feeds."
          },
          "limit": {
            "type": "integer",
            "description": "Feeds per page."
          }
        },
        "example": {
          "items": [
            {
              "ticker": "SOL",
              "kind": "token"
            }
          ],
          "total": 98,
          "page": 1,
          "lastPage": 2,
          "limit": 50
        }
      },
      "Points": {
        "type": "array",
        "description": "`[unixSeconds, usdcPrice]`, oldest first.",
        "items": {
          "type": "array",
          "prefixItems": [
            {
              "type": "integer"
            },
            {
              "type": "number"
            }
          ],
          "minItems": 2,
          "maxItems": 2
        }
      },
      "HistoryAnswer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "ticker",
          "address",
          "range",
          "points"
        ],
        "properties": {
          "ticker": {
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "type": "string"
          },
          "range": {
            "type": "string",
            "enum": [
              "1h",
              "1d",
              "1w",
              "1m"
            ]
          },
          "points": {
            "$ref": "#/components/schemas/Points"
          }
        }
      },
      "HistoryBatchAnswer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "range",
          "items"
        ],
        "properties": {
          "range": {
            "type": "string",
            "enum": [
              "1h",
              "1d",
              "1w",
              "1m"
            ]
          },
          "items": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "input",
                    "ticker",
                    "address",
                    "points"
                  ],
                  "properties": {
                    "input": {
                      "type": "string"
                    },
                    "ticker": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "address": {
                      "type": "string"
                    },
                    "points": {
                      "$ref": "#/components/schemas/Points"
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "input",
                    "error"
                  ],
                  "properties": {
                    "input": {
                      "type": "string"
                    },
                    "error": {
                      "$ref": "#/components/schemas/ErrorBody"
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "PoolsAnswer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "mint",
          "quote",
          "quoteMint",
          "items"
        ],
        "properties": {
          "mint": {
            "type": "string"
          },
          "quote": {
            "type": "string",
            "enum": [
              "USDC",
              "SOL"
            ]
          },
          "quoteMint": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "maxItems": 8,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "pool",
                "venue",
                "programId",
                "quoteReserveRaw",
                "trades24h"
              ],
              "properties": {
                "pool": {
                  "type": "string"
                },
                "venue": {
                  "type": "string"
                },
                "programId": {
                  "type": "string"
                },
                "quoteReserveRaw": {
                  "type": "string",
                  "pattern": "^[0-9]{1,20}$",
                  "description": "The quote-side liquidity in the quote's smallest units (USDC 6 decimals, SOL 9), from the listing."
                },
                "trades24h": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "minimum": 0,
                  "description": "Trades on this pool in the last 24 hours (buys plus sells), from the listing; null when the listing gives no count."
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Feeds",
      "description": "Prices, price history, the feed list and pools.",
      "x-zudoku-seo": {
        "title": "Feeds"
      }
    }
  ]
}