{
  "x402Version": 2,
  "id": 768,
  "slug": "768",
  "resource": "https://coingecko.use.x402atlas.com/ohlc",
  "description": "OHLC candlestick data for crypto — daily open/high/low/close candles over 1-365 days for any coin by CoinGecko id, chart-ready.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x32793F68dC2EA26BBC75eB900DA120069e8B6d02",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x32793F68dC2EA26BBC75eB900DA120069e8B6d02",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x32793F68dC2EA26BBC75eB900DA120069e8B6d02",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "category": "finance",
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "days": 30,
            "id": "bitcoin",
            "vs_currency": "usd"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "candles": [
              {
                "close": 27050,
                "high": 27100,
                "low": 26900,
                "open": 27000,
                "time": "2026-05-08T00:00:00Z"
              }
            ],
            "days": 30,
            "id": "bitcoin",
            "queried_at": "2026-06-08T12:00:00Z",
            "vs_currency": "usd"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "days": {
                    "description": "Window size in days: one of 1, 7, 14, 30, 90, 180, 365",
                    "enum": [
                      1,
                      7,
                      14,
                      30,
                      90,
                      180,
                      365
                    ],
                    "type": "integer"
                  },
                  "id": {
                    "description": "CoinGecko coin id slug",
                    "type": "string"
                  },
                  "vs_currency": {
                    "default": "usd",
                    "description": "Target currency code (default: usd)",
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "days"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "candles": {
                    "description": "OHLC bars, oldest first",
                    "items": {
                      "properties": {
                        "close": {
                          "description": "Close price",
                          "type": "number"
                        },
                        "high": {
                          "description": "High price",
                          "type": "number"
                        },
                        "low": {
                          "description": "Low price",
                          "type": "number"
                        },
                        "open": {
                          "description": "Open price",
                          "type": "number"
                        },
                        "time": {
                          "description": "Candle timestamp (UTC)",
                          "format": "date-time",
                          "type": "string"
                        }
                      },
                      "required": [
                        "time",
                        "open",
                        "high",
                        "low",
                        "close"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "days": {
                    "description": "Requested window size in days",
                    "type": "integer"
                  },
                  "id": {
                    "description": "CoinGecko coin id slug",
                    "type": "string"
                  },
                  "queried_at": {
                    "description": "UTC timestamp the upstream was queried",
                    "format": "date-time",
                    "type": "string"
                  },
                  "vs_currency": {
                    "description": "Currency the candles are quoted in",
                    "type": "string"
                  }
                },
                "required": [
                  "queried_at",
                  "id",
                  "vs_currency",
                  "days",
                  "candles"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "ohlc",
        "candles",
        "ohlcv",
        "crypto",
        "chart",
        "market-data",
        "price",
        "coingecko"
      ]
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "coingecko.use.x402atlas.com",
  "lastUpdated": "2026-09-15T06:30:43.992Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 4,
    "lastCalledAt": "2026-09-15T06:30:43.891Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "coingecko.use.x402atlas.com",
    "manifest_name": "coingecko.use.x402atlas.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}