---
title: Market Data API
description: Access real-time and historical cryptocurrency market data through our REST API and WebSocket feeds.
---

# Market Data API

CoinAPI Market Data API provides access to real-time and historical cryptocurrency market data from **300+ exchanges**.

## Overview

The Market Data API offers two main interfaces:

- **REST API** — Request/response model for historical and current data
- **WebSocket** — Real-time streaming for live market data

## Key Features

- **OHLCV** — Open, High, Low, Close, Volume candlestick data
- **Trades** — Individual trade execution data
- **Order Books** — Market depth snapshots and updates
- **Exchange Rates** — Cross-rate calculations

## Quick Start

1. [Sign up](https://www.coinapi.io/products/market-data-api/pricing) and get your API key
2. Choose your interface: [REST API](/products/market-data-api/docs/rest-api) or [WebSocket](/products/market-data-api/docs/websocket)
3. Make your first request:

```bash
curl -X GET "https://rest.coinapi.io/v1/exchanges" \
  -H "X-CoinAPI-Key: YOUR_API_KEY"
```

> [!NOTE]
> All API responses are returned in JSON format with UTF-8 encoding.

## Rate Limits

| Plan | Requests/second | Requests/day |
|------|----------------|-------------|
| Startup | 10 | 1,000 |
| Streamer | 100 | 10,000 |
| Pro | 100 | 100,000 |
| Enterprise | Custom | Custom |

## Next Steps

- [REST API Reference](/products/market-data-api/docs/rest-api) — Full endpoint documentation
- [WebSocket Guide](/products/market-data-api/docs/websocket) — Real-time data streaming
