---
name: crypto.candles
slug: candles
title: "Get a coin's price history"
subject: crypto
topics: [crypto]
managed: false
url: https://duang.ai/data/crypto/candles
---

# Get a coin's price history (`crypto.candles`)

Asks the providers the team has connected, one after another, for the latest candles of the coin with this ticker `symbol`, such as `BTC`, in `currency` (`USD` unless another is given). `interval` is how long one candle is: `1m`, `5m`, `15m`, `1h`, `4h`, `1d` or `1w` (`1d` unless given); a provider that does not have that length is passed over. `limit` is how many candles, up to 300 (100 unless given). Returns `candles`, the oldest first, each with the time it opened as an ISO 8601 date and time in UTC. A coin that no provider lists ends the call with no result.

- **Platform**: [Crypto](https://duang.ai/data/crypto)
- **Pricing**: Free
- **Billing & safety**: Prepaid USD wallet from $10 via Stripe (no virtual credits, no auto-recharge). Failed upstream calls cost $0. Team connections never silently fall back to paid billing.

## Providers & Per-Call Pricing

| Provider | Operation | Price |
| :--- | :--- | :--- |
| [Binance](https://duang.ai/providers/binance) | `GET data-api.binance.vision/api/v3/klines` | Your account |
| [OKX](https://duang.ai/providers/okx) | `GET www.okx.com/api/v5/market/candles` | Your account |
| [Yahoo Finance](https://duang.ai/providers/yahoo-finance) | `GET query1.finance.yahoo.com/v8/finance/chart/{symbol}` | Free |

## Input Parameters

| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| `symbol` | `string` | yes | - |
| `currency` | `string` | no | - |
| `interval` | `string` | no | - |
| `limit` | `integer` | no | - |

## Call via Duang
- Remote MCP endpoint: `https://api.duang.ai/mcp` (exposes 4 meta-tools: `discover`, `inspect`, `call`, `get_call`)
- Agent skill: https://duang.ai/SKILL.md
- CLI: `duang inspect crypto.candles`
