Amazon Cyber Monday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Bitcoin Hourly Historical Data: 10 Top Sources

This listicle covers the best sources for bitcoin hourly historical data, from free APIs to paid terminal-grade feeds. It’s for traders, analysts, and developers who need granular price, volume, and order-book data for backtesting, charting, or research. Each entry includes real specifics on what you get, access limits, and why it matters.

1. Binance API

Binance offers kline (candlestick) data down to 1-minute intervals, which you can aggregate to hourly. The REST endpoint /api/v3/klines returns up to 1000 candles per request, and the WebSocket stream gives real-time updates. It’s free with a basic account, but rate limits apply (1200 request weight per minute). This is the go-to for high-frequency backtesting because the data is clean, timestamped in UTC, and includes open, high, low, close, volume, and quote asset volume.

2. CoinGecko API

CoinGecko’s public API provides market chart data with hourly granularity for over 15,000 coins, including BTC. The /coins/{id}/market_chart endpoint returns hourly prices for up to 90 days, with volume and market cap. It’s free for non-commercial use with a rate limit of 10-30 calls per minute depending on your plan. The data is aggregated from multiple exchanges, so it’s a good choice for a broader market view rather than a single venue’s order flow.

3. CoinMarketCap API

CoinMarketCap’s professional API offers historical OHLCV data, but hourly granularity requires a paid plan (the “Starter” tier at $79/month includes 1-hour historical data for up to 30 days). The free tier only gives daily data. If you need hourly data for a specific exchange, you can use the /v2/cryptocurrency/ohlcv/historical endpoint with the exchange parameter. It’s reliable for cross-exchange averages, but the cost may be prohibitive for hobbyists.

4. CryptoCompare (CCData) API

CryptoCompare’s API offers historical minute-level data for BTC across multiple exchanges, which you can resample to hourly. The /data/v2/histominute endpoint returns up to 2000 data points per call, with a free tier limited to 100,000 calls per month. It includes open, high, low, close, volume, and vwap. The data is well-documented and used by many trading bots. One caveat: some endpoints now require a paid key for higher rate limits.

5. Bitstamp API

Bitstamp provides public OHLC data via its REST API, with granularity down to 60 seconds. The /api/v2/ohlc/BTCUSD/ endpoint returns hourly candles if you set the step to 3600 seconds. It’s free, with no API key required for public endpoints, but rate limits are around 8000 requests per 10 minutes. Bitstamp is a smaller exchange, so its volume data reflects only that venue—useful if you’re trading there specifically.

6. Kraken API

Kraken’s public OHLC endpoint (/0/public/OHLC) returns hourly data by default, with the last 720 candles available per request. It’s free and doesn’t require authentication for public data. The response includes open, high, low, close, volume, and weighted average price. Kraken’s data is known for its accuracy and is a good option for European traders, but you’ll need to paginate for longer histories.

7. Bitfinex API

Bitfinex offers historical candles via its public endpoint /v2/candles/trade:1h:tBTCUSD/hist. It returns up to 10,000 candles per request, which is generous. The data is free and includes open, high, low, close, and volume. Bitfinex also provides funding and trade data, which can be useful for advanced analysis. However, the API has rate limits (30 requests per minute), so plan your data pulls accordingly.

8. Yahoo Finance (via yfinance)

Yahoo Finance provides BTC-USD hourly data through its chart API, accessible via the Python library yfinance. You can fetch hourly intervals for the past 730 days with a simple download() call. It’s free, but Yahoo’s data is sometimes delayed or has gaps, and the API is unofficial—so it can break without notice. It’s fine for quick analysis or educational projects, but not for production trading systems.

9. Alpha Vantage

Alpha Vantage offers digital currency historical data with hourly intervals via its DIGITAL_CURRENCY_INTRADAY endpoint. The free tier allows 5 API requests per minute and 500 per day. Data includes open, high, low, close, and volume for BTC/USD and other pairs. It’s a good choice if you want a simple JSON response without dealing with exchange-specific quirks, but the rate limits are restrictive for large downloads.

10. Kaggle Datasets

Kaggle hosts several static bitcoin historical datasets, some with minute-level data that you can resample to hourly. For example, the “Bitcoin Historical Data” dataset by Kory Becker includes daily data, but others like “Bitcoin Price Data (Minute)” provide granular timestamps. These are free to download and ideal for offline analysis or machine learning projects. The downside is they’re not updated in real time, so they’re best for historical research, not live trading.

How to Choose

When picking a source, first decide whether you need real-time updates or just historical backtesting. For live trading, use exchange-specific APIs like Binance or Kraken because they reflect actual order flow. For a broader market view, aggregated APIs like CoinGecko or CryptoCompare are better. Check rate limits and historical depth—some free tiers only cover 90 days. Also consider data cleanliness: exchange APIs are raw, while aggregators may adjust for outliers. Finally, if you’re a developer, look at documentation quality and SDK availability (e.g., python-binance, ccxt).

Frequently Asked Questions

Q: Can I get hourly bitcoin data for free?
Yes, many exchanges like Binance, Kraken, and Bitstamp offer free public APIs with hourly data. Aggregators like CoinGecko also have free tiers, but with limited history.

Q: How far back does hourly data go?
It depends on the source. Binance has data since 2017, Kraken since 2014, but free tiers often limit to 90 days. Paid plans or static datasets can go back to 2010.

Q: What’s the difference between OHLC and tick data?
OHLC (open, high, low, close) is aggregated over a time period, like an hour. Tick data records every trade, which is massive and usually not needed for hourly analysis.

Q: Can I download hourly data as a CSV?
Yes, most APIs return JSON, but you can convert to CSV using Python or tools like Postman. Some Kaggle datasets are already in CSV format.

Q: Is hourly data enough for trading strategies?
Hourly data is suitable for swing trading and intraday strategies with a longer time horizon. For scalping, you’d need minute-level data.

Q: Does the API include volume in BTC or USD?
Most APIs include both base volume (BTC) and quote volume (USD). Check the documentation—for example, Binance returns both fields.

Final Thoughts

Having reliable hourly bitcoin data is crucial for any serious analysis. Start with free exchange APIs if you’re just testing, and upgrade to paid aggregators if you need longer history or cross-exchange consistency. Always verify the data against a second source to ensure accuracy, and be mindful of rate limits when building your data pipeline.

Bitcoin Hourly Historical Data: 10 Top Sources
Scroll to top