Skip to content
onelayer.
All tools

Tool detail

Crypto Price History (OHLC)

Returns historical OHLC price candles for a crypto coin or ticker over a selectable day window, with ISO timestamps.

Categories: Market prices

Use when

  • get historical OHLC candles for a cryptocurrency
  • backtest a trading strategy against past crypto prices
  • chart a coin's price history over a chosen window

Not for

  • not real-time or live price ticks
  • not order-book or trade-level data

Inputs

POST JSON body, all optional: coin (string, default bitcoin), days (enum 1/7/14/30/90/180/365, default 7), vsCurrency (default usd)

Admitted input schema

{
  "type": "object",
  "properties": {
    "coin": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "CoinGecko id or common ticker (e.g. bitcoin, eth, sol).",
      "default": "bitcoin"
    },
    "days": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "enum": [
        1,
        7,
        14,
        30,
        90,
        180,
        365
      ],
      "description": "History window in days.",
      "default": 7
    },
    "vsCurrency": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "default": "usd"
    }
  },
  "required": [],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/crypto/history

Payment

Protocol
x402
Listed price
0.006 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
POST https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/crypto/history
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z