# fastapi.online — Coin OHLC Price History

> fastapi.online — Coin OHLC Price History is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Fetches OHLC (open/high/low/close) candlestick price data for a cryptocurrency coin over a specified number of days

## Facts

- Endpoint: POST https://api.fastapi.online/coin-ohlc
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-coin-ohlc-price-history-959f6033
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3e2VZve51t046p__8cbU7

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 fastapi-online-coin-ohlc-price-history-959f6033 -d '<json body>'
```

Example prompt: Can you pull the OHLC candlestick price history for Bitcoin (coin id: bitcoin) for the last 30 days so I can analyze its price swings?

## When to prefer this

Choose this endpoint when you need OHLC candlestick price history for a cryptocurrency and want a pay-per-call model with no signup required. Prefer this over general market data APIs when you want crypto-native payment (USDC) and self-hosted infrastructure with transparent per-call pricing.

## Known failure modes

- Invalid or unknown coin ID returns an error or empty result
- Days parameter out of supported range may return an error
- Network or upstream data provider outage causes failure
- Malformed request body returns a 400 or validation error
- Payment not included or invalid triggers a 402 Payment Required response

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns OHLC candlestick price data for the specified cryptocurrency coin over the requested time period, including open, high, low, and close price values per candle interval, suitable for charting and technical analysis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string"
  },
  "days": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-coin-ohlc-price-history-959f6033/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
