{
  "x402Version": 2,
  "id": 1552,
  "slug": "1552",
  "resource": "https://marketdata.use.x402atlas.com/aggregates",
  "description": "Market data OHLC candlestick bars for stocks, crypto, forex and options — historical aggregates over any window by ticker.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x9D667BC76F166322df087b3B3927D4d83D44A5d0",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "15000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x9D667BC76F166322df087b3B3927D4d83D44A5d0",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "15000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x9D667BC76F166322df087b3B3927D4d83D44A5d0",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "15000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "15000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "category": "finance",
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "adjusted": true,
            "from": "2026-06-01",
            "limit": 10,
            "multiplier": 1,
            "sort": "desc",
            "ticker": "X:BTCUSD",
            "timespan": "day",
            "to": "2026-06-30"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "adjusted": true,
            "candles": [
              {
                "close": 42800,
                "high": 43000,
                "low": 41500,
                "open": 42000,
                "time": "2024-01-01T00:00:00Z",
                "transactions": 98000,
                "volume": 12000,
                "vwap": 42500
              }
            ],
            "from": "2024-01-01",
            "multiplier": 1,
            "queried_at": "2026-07-06T12:00:00Z",
            "ticker": "X:BTCUSD",
            "timespan": "day",
            "to": "2024-01-31"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "adjusted": {
                    "default": true,
                    "description": "Adjust for splits",
                    "type": "boolean"
                  },
                  "from": {
                    "description": "Window start: YYYY-MM-DD or millisecond epoch. Historical depth is limited (~2 years); prefer recent windows",
                    "type": "string"
                  },
                  "limit": {
                    "description": "Max base aggregates returned",
                    "maximum": 50000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "multiplier": {
                    "description": "Size of the timespan multiplier (e.g. 5 for 5-minute bars)",
                    "maximum": 50000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "sort": {
                    "description": "Result ordering",
                    "enum": [
                      "asc",
                      "desc"
                    ],
                    "type": "string"
                  },
                  "ticker": {
                    "description": "Asset-prefixed ticker, e.g. AAPL, X:BTCUSD, C:EURUSD",
                    "type": "string"
                  },
                  "timespan": {
                    "description": "Aggregate window unit",
                    "enum": [
                      "minute",
                      "hour",
                      "day",
                      "week",
                      "month",
                      "quarter",
                      "year"
                    ],
                    "type": "string"
                  },
                  "to": {
                    "description": "Window end: YYYY-MM-DD or millisecond epoch",
                    "type": "string"
                  }
                },
                "required": [
                  "ticker",
                  "multiplier",
                  "timespan",
                  "from",
                  "to"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "adjusted": {
                    "description": "Whether prices are split-adjusted.",
                    "type": "boolean"
                  },
                  "candles": {
                    "description": "Normalized OHLCV bars for the requested window.",
                    "items": {
                      "properties": {
                        "close": {
                          "type": "number"
                        },
                        "high": {
                          "type": "number"
                        },
                        "low": {
                          "type": "number"
                        },
                        "open": {
                          "type": "number"
                        },
                        "time": {
                          "description": "Bar start timestamp.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "transactions": {
                          "description": "Number of upstream transactions in the bar.",
                          "type": "integer"
                        },
                        "volume": {
                          "type": "number"
                        },
                        "vwap": {
                          "description": "Volume-weighted average price.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "time",
                        "open",
                        "high",
                        "low",
                        "close",
                        "volume",
                        "vwap",
                        "transactions"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "from": {
                    "description": "Echo of the requested window start.",
                    "type": "string"
                  },
                  "multiplier": {
                    "description": "Echo of the requested timespan multiplier.",
                    "type": "integer"
                  },
                  "queried_at": {
                    "description": "UTC timestamp when this bridge queried the upstream.",
                    "format": "date-time",
                    "type": "string"
                  },
                  "ticker": {
                    "description": "Echo of the requested ticker.",
                    "type": "string"
                  },
                  "timespan": {
                    "description": "Echo of the requested timespan unit.",
                    "type": "string"
                  },
                  "to": {
                    "description": "Echo of the requested window end.",
                    "type": "string"
                  }
                },
                "required": [
                  "queried_at",
                  "ticker",
                  "multiplier",
                  "timespan",
                  "from",
                  "to",
                  "adjusted",
                  "candles"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "ohlc",
        "ohlcv",
        "candles",
        "aggregates",
        "stocks",
        "crypto",
        "forex",
        "market-data",
        "marketdata"
      ]
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "marketdata.use.x402atlas.com",
  "lastUpdated": "2026-09-15T06:31:10.381Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-15T06:31:10.244Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "marketdata.use.x402atlas.com",
    "manifest_name": "marketdata.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"
  }
}