{
  "x402Version": 2,
  "id": 7419,
  "slug": "7419",
  "resource": "https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/crypto/history",
  "description": "Historical crypto price candles (OHLC). Given a coin id or ticker (e.g. bitcoin, eth, sol) and a window of days (1, 7, 14, 30, 90, 180 or 365) returns open/high/low/close candles with ISO timestamps. For charting, technical analysis, backtesting and trend-detection agents.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xCe339395d7f2ea5a5009022EF1C392Fb208a989E",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "6000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "coin": "bitcoin",
            "days": 7,
            "vsCurrency": "usd"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "candles": [
              {
                "close": 64608,
                "high": 64834,
                "low": 64604,
                "open": 64834,
                "time": "2026-08-24T12:00:00.000Z"
              }
            ],
            "coin": "bitcoin",
            "count": 1,
            "days": 7,
            "machine": "portfolio",
            "route": "crypto.history",
            "vsCurrency": "usd"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "coin": {
                    "default": "bitcoin",
                    "description": "CoinGecko id or common ticker (e.g. bitcoin, eth, sol).",
                    "type": "string"
                  },
                  "days": {
                    "default": 7,
                    "description": "History window in days.",
                    "enum": [
                      1,
                      7,
                      14,
                      30,
                      90,
                      180,
                      365
                    ],
                    "type": "integer"
                  },
                  "vsCurrency": {
                    "default": "usd",
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "candles": {
                    "items": {
                      "properties": {
                        "close": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "high": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "low": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "open": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "time": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "coin": {
                    "type": "string"
                  },
                  "count": {
                    "type": "integer"
                  },
                  "days": {
                    "type": "integer"
                  },
                  "economics": {
                    "properties": {
                      "sellPriceUsd": {
                        "type": "number"
                      },
                      "upstreamCostUsdActual": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "machine": {
                    "type": "string"
                  },
                  "route": {
                    "type": "string"
                  },
                  "vsCurrency": {
                    "type": "string"
                  }
                },
                "required": [
                  "machine",
                  "route",
                  "candles"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "agent-commerce-factory-jm.austriaeast.cloudapp.azure.com",
  "lastUpdated": "2026-09-05T00:16:15.891Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 4,
    "lastCalledAt": "2026-09-05T00:16:15.472Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agent-commerce-factory-jm.austriaeast.cloudapp.azure.com",
    "manifest_name": "agent-commerce-factory-jm.austriaeast.cloudapp.azure.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"
  }
}