🚀 CoinAPI Tutorial Academy is Live:

hands-on guides to integrate, fetch data, and build faster.

Historical Cryptocurrency Data in Flat Files

Flat Files is a platform for easy crypto data download. Get all historical insights you need in simple, downloadable, and ready-to-use CSV format.

380
background
Exchanges Integrated
599
k
background
Symbols Total
18
k
background
Assets Supported
632
TB
background
Historical Market Data

What you get

background
Comprehensive Historical Crypto Data
Flat Files offer extensive historical data across various crypto assets, enabling in-depth analysis of past market performance, price fluctuations, and trend identification.
background
Tailored Solutions
Flat Files is equipped to cater to diverse data needs, providing flexible and customized solutions.
background
Processed Insights
With Flat Files, you can get raw exchange data, but also various types of processed data like OHLCV time series created from active market data.
background
Backtesting-Ready Data
We timestamp the data using the same synchronized clock for all exchanges. It gives you more accurate backtesting results for your strategy.
background
High Redundancy
With servers all over the world, we want to make sure you can access accurate data anytime with no data errors. It allows us to consolidate the data.
background
No Survivorship Bias
To solve the issue of survivorship bias, we allow you to download the data even from the closed exchanges or delisted symbols.

Flat Files' Key Features

background
Variety of Data Types
Flat Files offers a wide range of data types, including quotes, trades, and limit book data (full order book snapshots). This variety ensures you can obtain the specific data needed for your analysis.
background
Structured File Formats
The service offers well-organized file structures that facilitate easy integration and analysis. This structure ensures consistency across different data types, making it easier for users to parse and utilize the data effectively.
background
Simple Ordering Process
We offer a pull-based S3 API for accessing flat files. This allows you to retrieve data on-demand easily using S3-compatible tools and libraries.
background
User-Friendly Design
Flat Files is intuitively designed to cater to both technical experts and novices, ensuring ease of use across the board.
background
S3-Compatible API Access
The Flat Files service utilizes an S3-compatible API, allowing users to leverage familiar Amazon S3 operations and tools for seamless data retrieval.
background
Scalability and Efficiency
Designed to handle extensive historical data, Flat Files ensure scalability to meet the needs of diverse projects. The efficient data retrieval mechanisms reduce latency and improve the overall performance when accessing large volumes of data.
background
Efficient Data Format and Storage
Data is stored in compressed ASCII text files in CSV format, which optimizes both storage efficiency and ease of access.
background
File Split Methodology
Each data type is organized into individual files for each symbol and trading day (UTC), streamlining access and facilitating more straightforward analysis.
background
Sample Data Availability
Flat Files offers sample data files for its various data types, allowing potential users to assess data quality and format before making a purchase.
Data types
Quotes

The quote at the top of the book includes the best bid and ask prices, along with the total volume of resting orders. This data is timestamped twice, first by the exchange (when available) and then at the exact moment it is received before any processing occurs. Additionally, each quote is marked with an identifier for the server that received this information. There is one file for each symbol per trading day, organized according to UTC.

Trades

A trade records a transaction between passive and active market participants. Each trade entry includes:

  • ID
  • price
  • size
  • the aggressor side of the trade (when available).

This information is timestamped twice: first by the exchange, if possible, and again at the exact moment it is received before any processing takes place. Data for each symbol is stored in a single file, organized by trading day according to UTC.

Order book

The limitbook_full file includes every update to the order book as delivered by the data source, with Level 2 or Level 3 granularity. It begins with a snapshot of the order book and is followed by subsequent updates to its state. Each data point in this format represents a level in the order book, allowing for a detailed view of the order book to the depth provided by the data source. This data is double timestamped: first by the exchange, if this is available, and then at the moment it is first received, before any processing. The information is organized into a single file for each trading symbol, covering each trading day according to UTC.

OHLCV

Delivered as gzipped CSVs organized by date, exchange, and timeframe, OHLCV provides a reliable, reproducible foundation for large-scale crypto data analysis and compliance-ready reporting. This structured format aggregates raw trades into time intervals, making it ideal for charting, technical indicators, backtesting, and AI model training.

Why Developers Love Us?

Our API is built by developers, for developers. We give the right tools and resources to streamline your workflow and complete products faster and more efficiently.

background
Python
background
R.
background
Matlab
background
C++
background
.NET
background
java
background
javascript
background
typescript
background
Node.js
background
Gopher
background
php
background
Haskell
background
tensorflow
background
Ruby

Recent Articles