Skip to content
onelayer.
All tools

Tool detail

Atlas Market Data

Returns OHLC candlestick bars for a stock, crypto, forex or options ticker over a specified time window and bar size.

Categories: Market prices

Use when

  • get historical OHLC candles for a stock, crypto, forex or options ticker
  • build a price chart over a custom date range and bar size

Not for

  • not for real-time streaming quotes
  • not for data older than about 2 years — historical depth is limited

Inputs

GET query params: ticker, multiplier (int), timespan (enum minute..year), from, to (required); adjusted, limit, sort (optional)

Admitted input schema

{
  "type": "object",
  "properties": {
    "adjusted": {
      "type": "boolean",
      "description": "Adjust for splits",
      "default": true
    },
    "from": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Window start: YYYY-MM-DD or millisecond epoch. Historical depth is limited (~2 years); prefer recent windows"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50000,
      "description": "Max base aggregates returned"
    },
    "multiplier": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50000,
      "description": "Size of the timespan multiplier (e.g. 5 for 5-minute bars)"
    },
    "sort": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "asc",
        "desc"
      ],
      "description": "Result ordering"
    },
    "ticker": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Asset-prefixed ticker, e.g. AAPL, X:BTCUSD, C:EURUSD"
    },
    "timespan": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "minute",
        "hour",
        "day",
        "week",
        "month",
        "quarter",
        "year"
      ],
      "description": "Aggregate window unit"
    },
    "to": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Window end: YYYY-MM-DD or millisecond epoch"
    }
  },
  "required": [
    "ticker",
    "multiplier",
    "timespan",
    "from",
    "to"
  ],
  "additionalProperties": false
}

Endpoint

Method
GET
URL
https://marketdata.use.x402atlas.com/aggregates

Payment

Protocol
x402
Listed price
0.015 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
GET https://marketdata.use.x402atlas.com/aggregates
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z