Crypto Data API

Free Crypto Historical Data API

Access crypto OHLC history for BTC, ETH, SOL and a wide altcoin set. Query M1 through MN1 bars for backtests, volatility research and machine-learning features.

Updated 2026-11-02 ? Data refreshed from the AlgoSpecial catalog.

315crypto datasets
35crypto symbols
14.0Mcrypto OHLC rows
9timeframes

Crypto symbols and timeframes

The crypto group contains 315 datasets across 35 symbols. The catalog includes BTC, ETH, SOL, XRP, ADA, BNB, LTC, LINK, DOGE, DOT, MATIC and other altcoin pairs, plus selected BTC crosses such as BTCAUD, BTCJPY and BTCXAU.

TimeframeAPI valueUse case
M1 / M5 / M15 / M30M1, M5, M15, M30High-frequency research and short-horizon models
H1 / H4H1, H4Intraday and swing systems
D1 / W1 / MN1D1, W1, MN1Regime, trend and long-horizon features

Crypto trades 24/7, so timestamp handling is simpler than forex, but exchange maintenance and data gaps still exist. The quality report exposes those gaps rather than hiding them.

Crypto OHLC request

Use the same OHLC endpoint as every other market. The example below requests BTCUSDT M15. Crypto symbols use the exact catalog symbol, which may include a T, M or cross suffix.

Coverage varies by symbol: newer altcoin listings start later and some exports are shorter than BTC or ETH. Check the catalog or quality report before assuming a multi-year history.

Crypto data quality

Crypto feeds can contain exchange maintenance gaps, missing candles, zero-volume bars and abrupt listing-period changes. Each dataset has an A-F report covering duplicates, OHLC violations, gaps, extreme returns, flat bars, volume and weekend checks.

For machine learning, use the ML-ready crypto datasets if you want precomputed triple-barrier labels. Use the raw API when you need your own feature pipeline.

Crypto API use cases

Strategy backtests

Test breakout, trend and mean-reversion rules on BTC or ETH.

Volatility features

Build ATR, realized volatility and range features from OHLC bars.

Cross-asset research

Compare crypto behaviour with gold, indices or forex sessions.

Crypto API limits and timezone

Limits are 60 requests per minute and 1,000 requests per day. A response can contain at most 50,000 rows and cover at most 366 days. Crypto timestamps are broker server time from the source feed; convert them if your model uses UTC.

Request examples

cURL - BTCUSDT M15 JSON

curl "https://www.algospecial.com/api/ohlc.php?symbol=BTCUSDT&tf=M15&from=2026-06-01&to=2026-06-30&format=json"

Python - ETHUSD history

import pandas as pd
import requests

params = {
    "symbol": "ETHUSD",
    "tf": "H1",
    "from": "2025-01-01",
    "to": "2025-12-31",
}
r = requests.get("https://www.algospecial.com/api/ohlc.php", params=params, timeout=30)
r.raise_for_status()
df = pd.DataFrame(r.json()["data"])
df["Timestamp"] = pd.to_datetime(df["Timestamp"])
df["range"] = df["High"] - df["Low"]
print(df.tail())

cURL - SOLUSD CSV

curl "https://www.algospecial.com/api/ohlc.php?symbol=SOLUSD&tf=D1&from=2024-01-01&to=2025-12-31&format=csv" -o SOLUSD_D1.csv

All timestamps are broker server time. Some legacy forex exports return 0 for TickVolume and Spread because those fields were not present in the source feed.

Crypto API FAQ

Which crypto symbols are available?

The crypto group covers 35 symbols, including BTC, ETH, SOL, XRP, ADA, BNB, LTC, LINK, DOGE and other altcoins. Use the dataset catalog for the exact symbol and timeframe.

Is crypto data available 24/7?

Crypto markets trade continuously, but exchange maintenance, missing candles and listing changes still create gaps. The quality report lists them.

Can I get crypto data as CSV?

Yes. Add format=csv to the request. JSON is the default.

Why does BTCUSDT start later than BTCUSD?

Different source exports have different listing dates and history windows. Check the individual dataset coverage before assuming a start date.

Is the crypto API free?

Yes, with the same public limits: 60 requests per minute, 1,000 per day, 50,000 rows and 366 days per request.

🚀 Invite friends — Earn $5 You both get $5 credit on Go Ad · opencode.ai AI-Powered Coding Agent — Try Free Build apps, fix bugs & ship faster with opencode. Get $5 free credit when you join. × Ad · quo.com QuoPhone — $20 Visa Gift Card Free Sign up to Quo, subscribe 3 months, get a $20 Visa gift card. Atif's referral gift for you. ×