# market2000.xyz Price History (OHLC Candlestick Bars)

> market2000.xyz Price History (OHLC Candlestick Bars) is a paid API for AI agents from market2000.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns OHLC candlestick bar data for any ticker symbol over a specified date range, with support for daily and intraday timeframes, cached via yfinance.

## Facts

- Endpoint: GET https://market2000.xyz/get_price_history
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market2000-xyz-price-history-ohlc-candlestick-bars-2cbb855a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wDcvxAONkYw6FtpsrRpIR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability market2000-xyz-price-history-ohlc-candlestick-bars-2cbb855a
```

Example prompt: Pull the daily OHLC price history for AAPL from January 2, 2024 through March 1, 2024 — I need the open, high, low, and close bars for each trading day.

## When to prefer this

Use this endpoint when you need historical OHLC candlestick data for stocks, ETFs, or crypto pairs over a specific date range — especially for backtesting strategies, charting, or technical analysis. It supports intraday granularity (15m, 30m, 1h) as well as daily bars, and caches results locally for repeat queries. Prefer this over real-time price endpoints when historical depth matters more than recency.

## Known failure modes

- Invalid ticker symbol returns empty bars or error
- Date range with no trading days (e.g. holidays only) returns empty bars array
- Unsupported timeframe value returns validation error
- Start date after end date causes bad request
- yfinance upstream failure may return incomplete or stale data
- Very short intraday timeframes may have limited historical depth available

## How this service works

An origin the crawlers already index. We count what AI agents try to buy, what they are refused, and what the AI companies take without sending anyone back. Sold per call in USDC.

## Output

A JSON object containing the ticker symbol, timeframe, and an array of OHLC bars, where each bar includes date, open, high, low, and close prices for that period.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ticker",
      "start_date",
      "end_date"
     ],
     "properties": {
      "ticker": {
       "type": "string",
       "description": "Asset symbol (e.g. AAPL, BTC-USD, SPY)"
      },
      "end_date": {
       "type": "string",
       "description": "End date, inclusive (YYYY-MM-DD)"
      },
      "timeframe": {
       "type": "string",
       "description": "Bar size: 1d (default), 1h, 30m, 15m"
      },
      "start_date": {
       "type": "string",
       "description": "Start date, inclusive (YYYY-MM-DD)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ticker",
      "timeframe",
      "bars"
     ],
     "properties": {
      "bars": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "date",
         "open",
         "high",
         "low",
         "close"
        ],
        "properties": {
         "low": {
          "type": "number"
         },
         "date": {
          "type": "string"
         },
         "high": {
          "type": "number"
         },
         "open": {
          "type": "number"
         },
         "close": {
          "type": "number"
         }
        }
       }
      },
      "ticker": {
       "type": "string"
      },
      "timeframe": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bars": [
   {
    "low": 183.7,
    "date": "2024-01-02",
    "high": 186,
    "open": 185.5,
    "close": 185.2
   }
  ],
  "ticker": "AAPL",
  "timeframe": "1d"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market2000-xyz-price-history-ohlc-candlestick-bars-2cbb855a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market2000.xyz](https://www.zero.xyz/host/market2000.xyz/llms.txt)
