_Flat Files API_

# Historical Cryptocurrency Market Data in Flat Files

Access historical cryptocurrency market data through a single platform.

Retrieve trades, quotes, full order books, OHLCV data, exchange datasets, and downloadable flat files from hundreds of exchanges.

Available through S3, Snowflake, and MCP.

- [See Plans and Pricing](/products/flat-files/pricing)
- [Start With Free Credits](https://console.apibricks.io/?link=/apikeys/create)

- **400+** — Exchanges Integrated
- **599K** — Symbols Available
- **18K** — Assets Supported
- **632 TB** — Historical Market Data

## What Data Will You Get?

### [Historical Trade Data](/datasets/crypto-trades-data)

Access individual trade executions across supported exchanges and trading pairs. Each record includes price, traded volume, timestamps, trade identifiers, and aggressor side information.

### [Historical Quote Data](/datasets/crypto-quotes-data)

Retrieve historical best bid and ask updates for supported markets. Analyze spreads, liquidity changes, and market microstructure over time.

### [Full Limit Order Book Data](/datasets/crypto-order-book-l2-data)

Access order book updates and snapshots for supported symbols. Reconstruct historical market depth and study order flow behavior at scale.

### [OHLCV Market Data](/datasets/crypto-ohlcv-data)

Retrieve normalized OHLCV datasets across multiple timeframes. Build charts, calculate indicators, and analyze market trends using ready-to-use candlestick data.

### [Daily and Hourly Partitions](/flat-files/datasets-characteristics)

Download datasets organized into UTC-based daily and hourly partitions. Retrieve only the time periods required for your analysis.

### [Exchange-Level Datasets](/flat-files/datasets-characteristics)

Access market data grouped by exchange identifiers and venue-specific datasets. Analyze exchange behavior individually or compare activity across venues.

### [Symbol-Level Historical Files](/flat-files/datasets-characteristics)

Retrieve datasets for specific trading pairs using CoinAPI symbol identifiers and exchange-native symbols. Build targeted workflows without downloading unnecessary data.

### [Compressed CSV Files](/flat-files/datasets-characteristics)

Download data as gzip-compressed CSV files optimized for large-scale storage and transfer. Compatible with common analytics, engineering, and research workflows.

### [Snowflake Data Access](/snowflake)

Access selected datasets directly through Snowflake. Perform large-scale SQL analysis without managing file downloads and storage infrastructure.

### [Dataset Discovery via MCP](/mcp)

Use the Flat Files MCP server to discover buckets, datasets, date partitions, exchanges, and available files before downloading.

## Key Features

### Massive Historical Coverage

Access hundreds of terabytes of historical cryptocurrency market data collected across hundreds of exchanges and thousands of assets.

### Flexible Data Retrieval

Download exactly the exchanges, symbols, datasets, and date ranges you need. Reduce transfer costs and simplify data workflows.

### S3-Compatible Infrastructure

Integrate directly with existing S3 tools, SDKs, cloud workflows, and automation systems. No proprietary download infrastructure required.

### Consistent File Structure

All datasets follow predictable naming conventions and folder organization. Build automated pipelines with confidence.

### Parallel Download Support

Accelerate large-scale ingestion workflows using concurrent downloads across datasets and partitions.

### High-Precision Timestamps

All market events include standardized timestamps designed for accurate sequencing and historical analysis.

_Your First Request_

## List a day of order-book files with one call

1. Create a free API key in the console: $25 in free credits to start.

2. Paste the key into the request below; the same key works for every S3-compatible client.

3. Download the files you need, or point boto3, the AWS CLI or Snowflake at the bucket.

`GET /bucket/?prefix=T-LIMITBOOK_FULL/D-2026011722/`

**first-request.sh**

```
curl "https://s3.flatfiles.coinapi.io/bucket/?prefix=T-LIMITBOOK_FULL/D-2026011722/" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Accept: application/xml"
```

- [Create a free API key](https://console.apibricks.io/?link=/apikeys/create)
- [Open the quick start](/products/flat-files/docs)

_The Challenge_

## The Challenge of Historical Market Data

Collecting cryptocurrency market history is harder than it looks. Markets operate across hundreds of exchanges. Each exchange uses different APIs, different formats, different symbol conventions, and different retention policies.

Most organizations start collecting market data themselves. Then they encounter:

- Exchange API limitations
- Historical data gaps
- Storage challenges
- Symbol normalization issues
- Large infrastructure costs
- Data quality inconsistencies
- Massive download requirements
- Ongoing maintenance

CoinAPI solves that problem. We collect, normalize, organize, and maintain historical cryptocurrency market datasets so your team can focus on analysis instead of data collection.

### Why Developers Choose CoinAPI Flat Files

- Large-Scale Historical Coverage — Access hundreds of terabytes of cryptocurrency market history through a single platform.
- Multiple Dataset Types — Retrieve trades, quotes, order books, and OHLCV data from the same infrastructure.
- Standardized Data Formats — Work with normalized datasets that follow consistent schemas and naming conventions.
- Flexible Access Methods — Choose S3 API, Snowflake, or MCP based on your environment.
- Efficient Storage and Transfer — Compressed CSV files help reduce bandwidth usage and storage requirements.
- Built for Automation — Consistent folder structures and partitioning simplify ingestion pipelines and large-scale workflows.

_Built For AI Agents_

## Model Context Protocol discovery for flat files.

Model Context Protocol (MCP) lets AI agents discover available Flat Files datasets before downloading anything. The Flat Files MCP server exposes tools for browsing buckets, dataset prefixes, date partitions, and concrete .csv.gz object keys.

- List available storage buckets
- Browse top-level datasets like trades, quotes, order books, and OHLCV
- Explore date partitions
- Discover available file paths
- Check object metadata such as file key, size, and last modified time
- Hand off discovered object keys to the S3 API for download

MCP is designed for discovery and file navigation. Actual file downloads are handled through the standard S3-compatible API.

_Historical Data Infrastructure_

## Build systems on top of large-scale market history.

CoinAPI Flat Files provides infrastructure designed for efficient discovery, retrieval, and storage of market history.

### Use S3 APIs for

- File downloads
- Automated ingestion
- Data pipelines
- Historical archives

### Use Snowflake for

- SQL analysis
- Data warehousing
- Large-scale queries
- Business intelligence workflows

### Use MCP for

- Dataset discovery
- AI workflows
- Bucket exploration
- File enumeration

### Monitor

- Data availability
- Transfer usage
- Dataset coverage
- File sizes
- Historical completeness

Enterprise deployment options are available for organizations requiring dedicated infrastructure or custom data delivery workflows.

_Why CoinAPI Flat Files_

## Why CoinAPI Flat Files Instead of Collecting Historical Data Yourself?

Every exchange uses different APIs, different symbol formats, different rate limits, different retention policies, and different levels of historical coverage. CoinAPI removes that burden.

| Building Your Own Historical Data Pipeline | CoinAPI Flat Files |
| --- | --- |
| Exchange API integrations | Historical datasets ready to download |
| Historical backfilling | Trades, quotes, order books, and OHLCV |
| Symbol mapping and normalization | Normalized data formats |
| Data quality validation | Hundreds of exchanges |
| Missing data handling | Historical coverage at scale |
| Order book storage challenges | S3, Snowflake, and MCP access |
| Infrastructure and storage costs | Consistent file organization |
| Ongoing exchange maintenance | No data collection infrastructure required |

Spend less time collecting data and more time building models, products, and research.

_Flat Files at a Glance_

## Coverage, formats and price, in one table

| Fact | Value | Detail |
| --- | --- | --- |
| Exchanges | 400+ | 599k symbols and 18k assets across spot and derivatives exchanges |
| Datasets | 4 datasets | Trades, quotes, full order books and OHLCV, in daily and hourly partitions per exchange and symbol |
| History | 632 TB | 10+ years of historical market data |
| Format | Gzip CSV | High-precision timestamps and a consistent file structure |
| Access | S3 + Snowflake | S3-compatible API, Snowflake, MCP dataset discovery, parallel downloads |
| Price per GiB | $2 to $48 per GiB | Order books and quotes $8 to $2 per GiB<br>Trades $24 to $6 per GiB<br>Book snapshots and depth bands $48 to $6 per GiB<br>OHLCV by period $8 to $0.20 per MiB<br>Metrics and DEX swaps $16 to $2 per GiB<br>Committed plans 15 to 35% below Pay As You Go<br>[Full price list](/products/flat-files/pricing) |
| Pricing | $1 per credit | Pay As You Go with $25 free credits to start<br>Committed plans from $64/mo to $1024/mo bring credits down to $0.65, Enterprise on request<br>[See all plans](/products/flat-files/pricing) |
| Getting started | Under 5 min | Create a free API key in the console and make the first request<br>[Get a free API key](https://console.apibricks.io/?link=/apikeys/create) |

## Start Building With CoinAPI Flat Files

Access historical cryptocurrency market data through scalable flat file infrastructure. Build research platforms, machine learning systems, analytics products, backtesting environments, AI applications, and institutional workflows using normalized historical datasets.

- [Start With Free Credits](https://console.apibricks.io/?link=/apikeys/create)
- [See Plans and Pricing](/products/flat-files/pricing)
- [Talk to Sales](/contact-us)