{
  "openapi": "3.1.0",
  "info": {
    "title": "CoinFenla API",
    "version": "1.0.0",
    "summary": "Free crypto prices, market data and price history, as CoinFenla shows them.",
    "description": "Free, with no key and no sign-up. Wherever you show the data, show the credit “Data from CoinFenla” with a link to https://www.coinfenla.com/ (or to the coin's page when you show one coin): https://www.coinfenla.com/brand. Limits: 10 requests a second from one address, with bursts of up to 100; over it, 429 with Retry-After. History reaches back a year on the free API. Numbers are unrounded; a 24h volume or a market total is null while CoinFenla's latest reading of it is more than 5 minutes old; times are ISO 8601 in UTC; every answer has `now`, the moment it was sent. Version 1 only grows: fields can be added, never renamed or removed. Prices come from exchanges, as CoinFenla reads them, and aren't financial advice. The examples' values are examples.",
    "termsOfService": "https://www.coinfenla.com/developers/terms",
    "contact": {
      "name": "CoinFenla",
      "url": "https://www.coinfenla.com/contact",
      "email": "contact@coinfenla.com"
    }
  },
  "externalDocs": {
    "description": "The guide",
    "url": "https://www.coinfenla.com/developers"
  },
  "servers": [
    {
      "url": "https://api.coinfenla.com/v1"
    }
  ],
  "paths": {
    "/coins": {
      "get": {
        "operationId": "listCoins",
        "summary": "The coins, largest first",
        "description": "The listed coins in market-cap order, as CoinFenla's home page lists them; then those whose supply isn't checked yet (they have no rank), busiest first by their 24h volume, then by name.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/size"
          },
          {
            "$ref": "#/components/parameters/currency"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of the list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoinList"
                },
                "example": {
                  "currency": "USD",
                  "now": "2026-11-13T09:41:30Z",
                  "page": 1,
                  "size": 2,
                  "total": 600,
                  "coins": [
                    {
                      "slug": "bitcoin",
                      "name": "Bitcoin",
                      "symbol": "BTC",
                      "logo": "https://cdn.coinfenla.com/coin-logos/small/bitcoin.png?v=1",
                      "rank": 1,
                      "price": 101234.56789,
                      "change24h": -1.3421,
                      "change7d": 2.80637,
                      "marketCap": 2019629628140,
                      "volume24h": 41234567890,
                      "circulatingSupply": 19950000,
                      "supplyChecked": true,
                      "updatedAt": "2026-11-13T09:41:03Z",
                      "url": "https://www.coinfenla.com/price/bitcoin"
                    },
                    {
                      "slug": "ethereum",
                      "name": "Ethereum",
                      "symbol": "ETH",
                      "logo": "https://cdn.coinfenla.com/coin-logos/small/ethereum.png?v=1",
                      "rank": 2,
                      "price": 3456.789012,
                      "change24h": 0.8125,
                      "change7d": -3.10422,
                      "marketCap": 417234567890,
                      "volume24h": 18765432109,
                      "circulatingSupply": 120700000,
                      "supplyChecked": true,
                      "updatedAt": "2026-11-13T09:41:05Z",
                      "url": "https://www.coinfenla.com/price/ethereum"
                    }
                  ],
                  "rate": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Blocked"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/coins/{slug}": {
      "get": {
        "operationId": "getCoin",
        "summary": "One coin",
        "description": "Everything the list gives for one coin, plus whether and since when it trades, its all-time high and its links, as its page on CoinFenla shows them. Any coin with a page answers, also one with little or no trading.",
        "parameters": [
          {
            "$ref": "#/components/parameters/slug"
          },
          {
            "$ref": "#/components/parameters/currency"
          }
        ],
        "responses": {
          "200": {
            "description": "The coin.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoinAnswer"
                },
                "example": {
                  "currency": "EUR",
                  "now": "2026-11-13T09:41:30Z",
                  "coin": {
                    "slug": "bitcoin",
                    "name": "Bitcoin",
                    "symbol": "BTC",
                    "logo": "https://cdn.coinfenla.com/coin-logos/small/bitcoin.png?v=1",
                    "rank": 1,
                    "price": 87486.913570538,
                    "change24h": -1.3421,
                    "change7d": 2.80637,
                    "marketCap": 1745363924638.588,
                    "volume24h": 35634913570.538,
                    "circulatingSupply": 19950000,
                    "supplyChecked": true,
                    "trading": "listed",
                    "stoppedAt": null,
                    "updatedAt": "2026-11-13T09:41:03Z",
                    "url": "https://www.coinfenla.com/price/bitcoin",
                    "allTimeHigh": {
                      "price": 108958.43970399999,
                      "date": "2025-10-06T18:57:42Z",
                      "changePercent": -19.7068
                    },
                    "links": {
                      "websites": [
                        "https://bitcoin.org/"
                      ],
                      "explorers": [
                        "https://mempool.space/"
                      ],
                      "whitepaper": "https://bitcoin.org/bitcoin.pdf",
                      "repos": [
                        "https://github.com/bitcoin/bitcoin"
                      ],
                      "forums": [],
                      "reddit": "https://www.reddit.com/r/Bitcoin/",
                      "x": null,
                      "facebook": null,
                      "telegram": null,
                      "discord": null,
                      "medium": null,
                      "youtube": null,
                      "instagram": null
                    }
                  },
                  "rate": {
                    "source": "ECB",
                    "date": "2026-11-12",
                    "perUsd": 0.8642
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Blocked"
          },
          "404": {
            "$ref": "#/components/responses/UnknownCoin"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/coins/{slug}/history": {
      "get": {
        "operationId": "getCoinHistory",
        "summary": "A coin's price history",
        "description": "The points of the coin page's chart for the period, oldest first, at the chart's own spacing. In another currency than USD every point uses today's rate, as the site's chart does. The free API serves up to a year: `all` answers 400 `period_not_free`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/slug"
          },
          {
            "$ref": "#/components/parameters/period"
          },
          {
            "$ref": "#/components/parameters/currency"
          }
        ],
        "responses": {
          "200": {
            "description": "The points.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/History"
                },
                "example": {
                  "currency": "USD",
                  "now": "2026-11-13T09:41:30Z",
                  "slug": "bitcoin",
                  "period": "7d",
                  "points": [
                    {
                      "time": "2026-11-06T10:00:00Z",
                      "price": 98480.12
                    },
                    {
                      "time": "2026-11-06T11:00:00Z",
                      "price": 98612.4
                    },
                    {
                      "time": "2026-11-13T09:00:00Z",
                      "price": 101234.56789
                    }
                  ],
                  "rate": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Blocked"
          },
          "404": {
            "$ref": "#/components/responses/UnknownCoin"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/global": {
      "get": {
        "operationId": "getGlobal",
        "summary": "The whole market",
        "description": "The total market cap and 24h volume of the listed coins, Bitcoin's share of the total, and how many coins rose, barely moved and fell over the last hour, day and week, as the home page's summary shows them. Each is null while our latest reading of it is more than 5 minutes old, never an old figure as a current one.",
        "parameters": [
          {
            "$ref": "#/components/parameters/currency"
          }
        ],
        "responses": {
          "200": {
            "description": "The market.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Global"
                },
                "example": {
                  "currency": "USD",
                  "now": "2026-11-13T09:41:30Z",
                  "totalMarketCap": 3412345678901,
                  "volume24h": 98765432109,
                  "bitcoinShare": 59.18598371245108,
                  "breadth": {
                    "1h": {
                      "up": 268,
                      "flat": 141,
                      "down": 192
                    },
                    "24h": {
                      "up": 212,
                      "flat": 31,
                      "down": 358
                    },
                    "7d": {
                      "up": 301,
                      "flat": 12,
                      "down": 288
                    }
                  },
                  "updatedAt": "2026-11-13T09:41:05Z",
                  "rate": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Blocked"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    },
    "/currencies": {
      "get": {
        "operationId": "listCurrencies",
        "summary": "The currencies",
        "description": "The eight currencies, always all of them, each with the rate in use today. A currency whose rate can't be used right now has `perUsd`, `date` and `source` null, and asking in it answers 503 `rate_unavailable`. USD's rate is 1, with no date or source.",
        "responses": {
          "200": {
            "description": "The currencies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Currencies"
                },
                "example": {
                  "now": "2026-11-13T09:41:30Z",
                  "currencies": [
                    {
                      "code": "USD",
                      "perUsd": 1,
                      "source": null,
                      "date": null
                    },
                    {
                      "code": "EUR",
                      "perUsd": 0.8642,
                      "source": "ECB",
                      "date": "2026-11-12"
                    },
                    {
                      "code": "GBP",
                      "perUsd": 0.7581,
                      "source": "ECB",
                      "date": "2026-11-12"
                    },
                    {
                      "code": "JPY",
                      "perUsd": 154.27,
                      "source": "ECB",
                      "date": "2026-11-12"
                    },
                    {
                      "code": "CNY",
                      "perUsd": 7.1234,
                      "source": "ECB",
                      "date": "2026-11-12"
                    },
                    {
                      "code": "INR",
                      "perUsd": 88.61,
                      "source": "ECB",
                      "date": "2026-11-12"
                    },
                    {
                      "code": "AUD",
                      "perUsd": 1.5312,
                      "source": "ECB",
                      "date": "2026-11-12"
                    },
                    {
                      "code": "CHF",
                      "perUsd": 0.8012,
                      "source": "ECB",
                      "date": "2026-11-12"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Blocked"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "page": {
        "name": "page",
        "in": "query",
        "description": "Which page of the list, from 1. A page past the last answers with no coins.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "default": 1
        }
      },
      "size": {
        "name": "size",
        "in": "query",
        "description": "Coins per page.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 250,
          "default": 100
        }
      },
      "currency": {
        "name": "currency",
        "in": "query",
        "description": "The currency of every price and amount, in any case. Other currencies than USD use the day's rate, named in `rate`.",
        "schema": {
          "type": "string",
          "enum": [
            "USD",
            "EUR",
            "GBP",
            "JPY",
            "CNY",
            "INR",
            "AUD",
            "CHF"
          ],
          "default": "USD"
        }
      },
      "slug": {
        "name": "slug",
        "in": "path",
        "required": true,
        "description": "The coin's name in its page's address: `bitcoin` for https://www.coinfenla.com/price/bitcoin. An old name still answers, under the name you asked; the coin's `url` and `logo` use its current one.",
        "schema": {
          "type": "string",
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        }
      },
      "period": {
        "name": "period",
        "in": "query",
        "description": "The chart's period, in any case. `all`, a coin's whole history, is for a paid plan later: on the free API it answers 400 `period_not_free`.",
        "schema": {
          "type": "string",
          "enum": [
            "24h",
            "7d",
            "1m",
            "1y",
            "all"
          ],
          "default": "24h"
        }
      }
    },
    "schemas": {
      "Coin": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "symbol",
          "logo",
          "rank",
          "price",
          "change24h",
          "change7d",
          "marketCap",
          "volume24h",
          "circulatingSupply",
          "supplyChecked",
          "updatedAt",
          "url"
        ],
        "properties": {
          "slug": {
            "type": "string",
            "description": "The coin's current name in its page's address."
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "logo": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The coin's logo, or null when there is none."
          },
          "rank": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Its place by market cap among the coins whose supply is checked; null for a coin without one (its supply isn't checked yet)."
          },
          "price": {
            "type": "number",
            "description": "The price CoinFenla shows, in `currency`, unrounded."
          },
          "change24h": {
            "type": [
              "number",
              "null"
            ],
            "description": "Percent change over 24 hours, unrounded; null when unknown or when the coin stopped trading."
          },
          "change7d": {
            "type": [
              "number",
              "null"
            ],
            "description": "Percent change over 7 days, unrounded; null when unknown or when the coin stopped trading."
          },
          "marketCap": {
            "type": [
              "number",
              "null"
            ],
            "description": "Price times circulating supply, in `currency`; null while the supply isn't checked."
          },
          "volume24h": {
            "type": [
              "number",
              "null"
            ],
            "description": "Traded in the last 24 hours on the exchanges CoinFenla reads, in `currency`. Null when no exchange we read traded the coin lately, or when our latest reading of it is more than 5 minutes old (never an old figure as a current one)."
          },
          "circulatingSupply": {
            "type": [
              "number",
              "null"
            ],
            "description": "Coins in circulation; null until CoinFenla has checked the coin's supply."
          },
          "supplyChecked": {
            "type": "boolean",
            "description": "Whether CoinFenla has checked the circulating supply."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When CoinFenla last read the price."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The coin's page on CoinFenla: link the credit there when you show one coin."
          }
        }
      },
      "CoinDetail": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "symbol",
          "logo",
          "rank",
          "price",
          "change24h",
          "change7d",
          "marketCap",
          "volume24h",
          "circulatingSupply",
          "supplyChecked",
          "trading",
          "stoppedAt",
          "updatedAt",
          "url",
          "allTimeHigh",
          "links"
        ],
        "properties": {
          "slug": {
            "type": "string",
            "description": "The name you asked for, as in the address (an old name stays as you asked it); `url` has the coin's page under its current name."
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "logo": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The coin's logo, or null when there is none."
          },
          "rank": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Its place by market cap among the coins whose supply is checked; null for a coin without one (its supply isn't checked yet)."
          },
          "price": {
            "type": "number",
            "description": "The price CoinFenla shows, in `currency`, unrounded."
          },
          "change24h": {
            "type": [
              "number",
              "null"
            ],
            "description": "Percent change over 24 hours, unrounded; null when unknown or when the coin stopped trading."
          },
          "change7d": {
            "type": [
              "number",
              "null"
            ],
            "description": "Percent change over 7 days, unrounded; null when unknown or when the coin stopped trading."
          },
          "marketCap": {
            "type": [
              "number",
              "null"
            ],
            "description": "Price times circulating supply, in `currency`; null while the supply isn't checked."
          },
          "volume24h": {
            "type": [
              "number",
              "null"
            ],
            "description": "Traded in the last 24 hours on the exchanges CoinFenla reads, in `currency`. Null when no exchange we read traded the coin lately, or when our latest reading of it is more than 5 minutes old (never an old figure as a current one)."
          },
          "circulatingSupply": {
            "type": [
              "number",
              "null"
            ],
            "description": "Coins in circulation; null until CoinFenla has checked the coin's supply."
          },
          "supplyChecked": {
            "type": "boolean",
            "description": "Whether CoinFenla has checked the circulating supply."
          },
          "trading": {
            "type": "string",
            "description": "`listed`, `low` (little trading: the price may be far from what you'd pay) or `stopped` (no trades since `stoppedAt`: the price is the last one). More values may come."
          },
          "stoppedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When trading stopped, for `stopped`; else null."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When CoinFenla last read the price."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The coin's page on CoinFenla: link the credit there when you show one coin."
          },
          "allTimeHigh": {
            "type": [
              "object",
              "null"
            ],
            "description": "The all-time high, or null when there is none.",
            "required": [
              "price",
              "date",
              "changePercent"
            ],
            "properties": {
              "price": {
                "type": "number",
                "description": "In `currency`."
              },
              "date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When; null when it isn't known."
              },
              "changePercent": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The price now against the all-time high, in percent; null when unknown."
              }
            }
          },
          "links": {
            "type": "object",
            "description": "The project's links, as the coin page lists them: lists may be empty, single links null.",
            "properties": {
              "websites": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "explorers": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "whitepaper": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "repos": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "forums": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "reddit": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "x": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "facebook": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "telegram": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "discord": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "medium": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "youtube": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "instagram": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              }
            },
            "required": [
              "websites",
              "explorers",
              "whitepaper",
              "repos",
              "forums",
              "reddit",
              "x",
              "facebook",
              "telegram",
              "discord",
              "medium",
              "youtube",
              "instagram"
            ]
          }
        }
      },
      "Rate": {
        "type": [
          "object",
          "null"
        ],
        "description": "The rate used for `currency`; null in USD.",
        "properties": {
          "source": {
            "type": "string",
            "description": "Where the rate comes from: ECB, the European Central Bank."
          },
          "date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day the rate is from."
          },
          "perUsd": {
            "type": "number",
            "description": "Units of `currency` for one US dollar."
          }
        },
        "required": [
          "source",
          "date",
          "perUsd"
        ]
      },
      "CoinList": {
        "type": "object",
        "required": [
          "currency",
          "now",
          "page",
          "size",
          "total",
          "coins",
          "rate"
        ],
        "properties": {
          "currency": {
            "type": "string"
          },
          "now": {
            "type": "string",
            "format": "date-time",
            "description": "When the answer was sent."
          },
          "page": {
            "type": "integer"
          },
          "size": {
            "type": "integer"
          },
          "total": {
            "type": "integer",
            "description": "How many coins the list has: the pages are `total` divided by `size`, rounded up."
          },
          "coins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Coin"
            }
          },
          "rate": {
            "$ref": "#/components/schemas/Rate"
          }
        }
      },
      "CoinAnswer": {
        "type": "object",
        "required": [
          "currency",
          "now",
          "coin",
          "rate"
        ],
        "properties": {
          "currency": {
            "type": "string"
          },
          "now": {
            "type": "string",
            "format": "date-time"
          },
          "coin": {
            "$ref": "#/components/schemas/CoinDetail"
          },
          "rate": {
            "$ref": "#/components/schemas/Rate"
          }
        }
      },
      "History": {
        "type": "object",
        "required": [
          "currency",
          "now",
          "slug",
          "period",
          "points",
          "rate"
        ],
        "properties": {
          "currency": {
            "type": "string"
          },
          "now": {
            "type": "string",
            "format": "date-time"
          },
          "slug": {
            "type": "string"
          },
          "period": {
            "type": "string",
            "enum": [
              "24h",
              "7d",
              "1m",
              "1y"
            ]
          },
          "points": {
            "type": "array",
            "description": "Oldest first.",
            "items": {
              "type": "object",
              "required": [
                "time",
                "price"
              ],
              "properties": {
                "time": {
                  "type": "string",
                  "format": "date-time"
                },
                "price": {
                  "type": "number",
                  "description": "In `currency`, unrounded."
                }
              }
            }
          },
          "rate": {
            "$ref": "#/components/schemas/Rate"
          }
        }
      },
      "Global": {
        "type": "object",
        "required": [
          "currency",
          "now",
          "totalMarketCap",
          "volume24h",
          "bitcoinShare",
          "breadth",
          "updatedAt",
          "rate"
        ],
        "properties": {
          "currency": {
            "type": "string"
          },
          "now": {
            "type": "string",
            "format": "date-time"
          },
          "totalMarketCap": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total of the listed coins' market caps, in `currency`: coins whose supply isn't checked have none, so they don't count. Null before the first reading, or when our latest reading of it is more than 5 minutes old (never an old figure as a current one)."
          },
          "volume24h": {
            "type": [
              "number",
              "null"
            ],
            "description": "The listed coins' 24h volumes added up, on the exchanges CoinFenla reads, in `currency`. Null when none traded, or when our latest reading of it is more than 5 minutes old (never an old figure as a current one)."
          },
          "bitcoinShare": {
            "type": [
              "number",
              "null"
            ],
            "description": "Bitcoin's market cap as a share of the total, in percent; null with the total, or when Bitcoin has no market cap there."
          },
          "breadth": {
            "type": [
              "object",
              "null"
            ],
            "description": "How many listed coins rose, barely moved and fell over the last hour (`1h`), day (`24h`) and week (`7d`), dollar stablecoins and coins without a change left out; null with the total.",
            "required": [
              "1h",
              "24h",
              "7d"
            ],
            "properties": {
              "1h": {
                "type": "object",
                "required": [
                  "up",
                  "flat",
                  "down"
                ],
                "properties": {
                  "up": {
                    "type": "integer",
                    "description": "Coins up 0.25% or more."
                  },
                  "flat": {
                    "type": "integer",
                    "description": "Coins that moved less than 0.25% either way."
                  },
                  "down": {
                    "type": "integer",
                    "description": "Coins down 0.25% or more."
                  }
                }
              },
              "24h": {
                "type": "object",
                "required": [
                  "up",
                  "flat",
                  "down"
                ],
                "properties": {
                  "up": {
                    "type": "integer",
                    "description": "Coins up 0.25% or more."
                  },
                  "flat": {
                    "type": "integer",
                    "description": "Coins that moved less than 0.25% either way."
                  },
                  "down": {
                    "type": "integer",
                    "description": "Coins down 0.25% or more."
                  }
                }
              },
              "7d": {
                "type": "object",
                "required": [
                  "up",
                  "flat",
                  "down"
                ],
                "properties": {
                  "up": {
                    "type": "integer",
                    "description": "Coins up 0.25% or more."
                  },
                  "flat": {
                    "type": "integer",
                    "description": "Coins that moved less than 0.25% either way."
                  },
                  "down": {
                    "type": "integer",
                    "description": "Coins down 0.25% or more."
                  }
                }
              }
            }
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When CoinFenla last read a price of the listed coins (null only while none is listed)."
          },
          "rate": {
            "$ref": "#/components/schemas/Rate"
          }
        }
      },
      "Currencies": {
        "type": "object",
        "required": [
          "now",
          "currencies"
        ],
        "properties": {
          "now": {
            "type": "string",
            "format": "date-time"
          },
          "currencies": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "code",
                "perUsd",
                "source",
                "date"
              ],
              "properties": {
                "code": {
                  "type": "string"
                },
                "perUsd": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "date": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                }
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "status",
              "code",
              "message"
            ],
            "properties": {
              "status": {
                "type": "integer"
              },
              "code": {
                "type": "string",
                "description": "An open list: show `message` for a code you don't know.",
                "examples": [
                  "invalid_coin",
                  "invalid_currency",
                  "invalid_query",
                  "period_not_free",
                  "bad_request",
                  "site_blocked",
                  "address_blocked",
                  "unknown_coin",
                  "not_found",
                  "method_not_allowed",
                  "rate_limited",
                  "internal_error",
                  "prices_unavailable",
                  "rate_unavailable",
                  "api_off"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryAfter": {
                "type": "integer",
                "description": "Seconds to wait, with 429 and 503 (also in the Retry-After header)."
              }
            }
          }
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "`invalid_coin`, `invalid_currency`, `invalid_query`, `period_not_free` or `bad_request`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Blocked": {
        "description": "`site_blocked` or `address_blocked`: requests from this website, or from this address, are blocked for breaking the API terms.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "UnknownCoin": {
        "description": "`unknown_coin`: no coin has this name.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "RateLimited": {
        "description": "`rate_limited`: over the limit; wait for Retry-After.",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "status": 429,
                "code": "rate_limited",
                "message": "Too many requests. Try again in a minute.",
                "retryAfter": 60
              }
            }
          }
        }
      },
      "Unavailable": {
        "description": "`prices_unavailable`, `rate_unavailable` or `api_off`; try again after Retry-After.",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  }
}
