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.
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.
| Timeframe | API value | Use case |
|---|---|---|
| M1 / M5 / M15 / M30 | M1, M5, M15, M30 | High-frequency research and short-horizon models |
| H1 / H4 | H1, H4 | Intraday and swing systems |
| D1 / W1 / MN1 | D1, W1, MN1 | Regime, 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.
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.
Choose the next useful step
Most visitors arrive with one question: build, test, price, or trust. These shortcuts keep the path practical.
Go deeper before you build, download or automate
Hand-picked engineering articles, indicator breakdowns and trading-system tools so visitors keep exploring instead of leaving after one page.
Pine Script to MT4/MT5 Conversion Planner
Analyze Pine strategies, repainting risk, TradingView alert bridges, MTF synchronization and the correct MQL4/MQL5 build path before paying for conversion.
Open planner
3-in-1 MT5 Indicator Bundle
12H Bias Engine, Smart Money Institutional Flow Dashboard and D1/H1 pending-signal logic with MQ5 + EX5 source included via Etsy.
MT5 Bank Orders Institutional Flow Dashboard
Supply/demand zones, BOS/CHoCH, liquidity levels, FVG, equal highs/lows and confirmed trade-plan logic explained with EX5 download.
MT5 Asia London NY Liquidity Engine
Asia range, London raid and New York continuation/reversal planning with internal session backtest stats and entry/SL/TP dashboard.
Interactive Brokers RSI Pair Trader
Tkinter desktop trading workflow, TWS API connection handling, RSI pair logic, risk controls and custom IBKR development positioning.
XAUUSD M30 CSV Data For Backtesting
Use clean MT5 historical data for Python backtests, strategy validation, spread checks and realistic gold EA research workflows.