_Crypto Real-Time Data_

# Real-Time Crypto Data API

Stream Live Cryptocurrency Market Data

Access real-time crypto market data for trading, analytics, pricing, monitoring, and institutional infrastructure.

CoinAPI delivers live trades, quotes, order books, OHLCV updates, and market metadata across supported cryptocurrency exchanges, plus real-time exchange rates and benchmark index data through dedicated CoinAPI products.

Use REST for on-demand market data, WebSocket for continuous normalized streaming, WebSocket DS for lower-latency direct-source feeds, or FIX for institutional workflows.

- [Get Your API Key](https://console.apibricks.io/?link=/apikeys/create)
- [View WebSocket Documentation](/products/market-data-api/docs/websocket)

_Live streams_

## Real-Time Crypto Market Data Available Through CoinAPI

Real-time cryptocurrency data is more than a live price. Different data streams reveal what is trading, where liquidity is available, how prices are moving, and how market conditions are changing across exchanges.

| Real-Time Data | What It Shows | Typical Uses |
| --- | --- | --- |
| Trades | Executed transactions, prices, sizes and timestamps | Tick analysis, execution monitoring, trading models |
| Quotes | Current best bid and ask prices and sizes | Spread analysis, pricing, market monitoring |
| Order Books | Bids, asks, liquidity and market depth | Market making, liquidity analysis, execution models |
| OHLCV Updates | Current candle activity over supported periods | Charts, technical analysis, dashboards |
| Exchange Rates | Crypto-to-crypto and crypto-to-fiat reference rates | Valuation, payments, treasury, accounting |
| Indexes | Cryptocurrency benchmark and reference prices | NAV, reporting, benchmarking |
| Metadata | Exchanges, assets, symbols and instruments | Market discovery, mapping, application logic |

Together, these streams provide a deeper view of cryptocurrency markets than a simple real-time price feed.

_WebSocket_

## Start Streaming Real-Time Crypto Data

CoinAPI WebSocket V1 uses a subscribe-publish model. Connect once, authenticate with your API key, and subscribe to the market data your application needs.

#### 1. Connect to the Crypto WebSocket API

```
wss://ws.coinapi.io/v1/
```

#### 2. Subscribe to Live Bitcoin Trades

After connecting, send a hello message:

```
{
  "type": "hello",
  "apikey": "YOUR_API_KEY",
  "heartbeat": true,
  "subscribe_data_type": ["trade"],
  "subscribe_filter_symbol_id": [
    "BITSTAMP_SPOT_BTC_USD$"
  ]
}
```

This example subscribes to real-time BTC/USD trades from Bitstamp.

The normalized symbol:

```
BITSTAMP_SPOT_BTC_USD
```

identifies:

- BITSTAMP — exchange
- SPOT — market type
- BTC — base asset
- USD — quote asset

The $ suffix requests an exact symbol match rather than a prefix match.

#### 3. Receive Live Trade Events

Incoming trade messages follow a consistent structure:

```
{
  "type": "trade",
  "symbol_id": "BITSTAMP_SPOT_BTC_USD",
  "sequence": 2323346,
  "time_exchange": "2013-09-28T22:40:50.0000000Z",
  "time_coinapi": "2017-03-18T22:42:21.3763342Z",
  "uuid": "770C7A3B-7258-4441-8182-83740F3E2457",
  "price": 770.000000000,
  "size": 0.050000000,
  "taker_side": "BUY"
}
```

The event identifies the market and includes the exchange timestamp, CoinAPI timestamp, execution price, size, sequence, trade identifier, and taker side.

WebSocket subscriptions can also be filtered by exchange, symbol, asset, and supported data type.

- [Explore WebSocket Documentation](/products/market-data-api/docs/websocket)

_Event streams_

## How Real-Time Crypto Streaming Works

Real-time crypto feeds are driven by market events rather than periodic page refreshes. Different streams behave differently depending on what is happening on the underlying exchange.

#### Live Trades

A trade event is produced when an execution occurs. The stream can include the market, price, size, timestamps, sequence information, and aggressor side where available.

#### Real-Time Quotes

Quote messages represent changes to the best bid and ask. They are useful for monitoring current executable prices, spreads, and top-of-book liquidity.

#### Real-Time Order Books

Full order book feeds use snapshots and subsequent updates to represent changing market depth. For full L2 books, CoinAPI provides snapshots and subsequent incremental updates where supported. Depth-limited feeds such as book5, book20, and book50 provide top-level L2 book snapshots as a lighter alternative when the entire book is not required.

#### OHLCV Updates

Live WebSocket OHLCV streams update the current candle as new market activity occurs for supported short periods, including 1SEC to 1MIN. These are useful when applications need continuously changing chart or indicator data without processing every individual trade themselves.

The amount of data produced therefore depends on both the dataset and market activity. Highly active cryptocurrency markets can generate substantially more events than quieter instruments.

_Access methods_

## REST vs. WebSocket vs. WebSocket DS for Real-Time Crypto Data

There is no single delivery method for every real-time application.

| Access Method | Best For | Typical Workloads |
| --- | --- | --- |
| REST API | On-demand market data | Latest data, metadata, snapshots, exchange rates |
| WebSocket V1 | Continuous normalized streaming | Trades, quotes, books, OHLCV, dashboards |
| WebSocket DS | Lower-latency direct-source streaming | Trading, market making, latency-sensitive systems |
| FIX API | Institutional infrastructure | Market data and trading workflows |

### REST API

REST works well when an application needs current information periodically rather than continuously. It is useful for targeted requests, market snapshots, metadata, and applications that do not need to maintain a persistent connection.

### WebSocket V1

WebSocket V1 is designed for continuous normalized crypto market data streaming. Applications can subscribe to supported trades, quotes, order books, OHLCV updates, exchange-rate updates, and metadata feeds such as assets, exchanges, and symbols through a persistent connection.

### WebSocket DS

WebSocket DS is designed for direct-source, lower-latency cryptocurrency market data from individual exchange sources, primarily trades, quotes, and order book feeds. It is better suited to applications where the path between the exchange source and the consuming system matters more than accessing the broadest normalized dataset through one stream.

### FIX

FIX provides a standardized interface for organizations already operating institutional financial and trading infrastructure.

_WebSocket options_

## WebSocket V1 vs. WebSocket DS

CoinAPI provides two WebSocket approaches for different real-time market data requirements.

| ​ | WebSocket V1 | WebSocket DS |
| --- | --- | --- |
| Primary model | Normalized streaming | Direct-source streaming |
| Best for | Applications consuming broader CoinAPI datasets | Latency-sensitive market infrastructure |
| Typical data | Trades, quotes, order books, OHLCV and additional supported streams | Trades, quotes and order book data from individual sources |
| Priority | Breadth and normalized access | Lower-latency source delivery |

## Choose WebSocket V1 when

You want a standardized streaming interface for applications such as market dashboards, trading platforms, analytics systems, pricing applications, or multi-exchange monitoring.

## Choose WebSocket DS when

You need a more direct market-data path for latency-sensitive trading, market making, or infrastructure where source-level delivery speed is especially important.

_Order books_

## Real-Time Crypto Order Book Streaming

Order books require different handling from a simple cryptocurrency price feed. A price can be represented by a single number. An order book represents continuously changing liquidity across bid and ask levels.

CoinAPI supports multiple real-time order book views depending on the level of detail required:

- Quotes / L1 for best bid and ask
- L2 for aggregated market depth by price level
- L3 for order-level data where supported
- Depth-limited books for selected top levels

For full L2 books, messages distinguish between snapshots and incremental updates. Applications can therefore reconstruct changing market depth instead of repeatedly requesting an entirely new book.

This makes real-time order book data useful for:

- Liquidity analysis
- Spread monitoring
- Market making
- Execution modelling
- Trading algorithms
- Market microstructure research

- [Explore Crypto Order Book API](/datasets/crypto-order-book-l2-data)

_Production_

## Keeping Real-Time Connections Reliable

A production crypto WebSocket integration needs to handle more than the first successful connection.

CoinAPI supports heartbeat messages that can help applications detect connection problems.

When heartbeat is enabled, applications can monitor the connection and reconnect when expected heartbeat messages stop arriving.

WebSocket subscriptions can also be adjusted dynamically with subscribe and unsubscribe messages, allowing applications to change their active data scope without rebuilding every subscription from scratch.

Connection limits depend on the selected subscription plan, so production integrations should also account for expected connection count, subscribed markets, and message volume.

_Enterprise_

## Enterprise Infrastructure for Real-Time Crypto Feeds

Real-time cryptocurrency markets operate continuously. For exchanges, trading firms, funds, fintechs, and institutional applications, streaming infrastructure may need more than standard public API connectivity.

CoinAPI enterprise capabilities include:

- Distributed infrastructure designed for continuous 24/7 operation
- GeoDNS routing to the nearest available region
- Low-latency streaming architecture
- Persistent WebSocket connectivity
- AWS Direct Connect
- VPC Peering
- Cross-Connect
- Dedicated enterprise environments
- Managed exchange integrations through Exchange Link
- Public internet and private network deployment options

This gives organizations additional options when throughput, latency, availability, or networking requirements become more demanding.

- [Explore Enterprise Solutions](/enterprise)

## Real-Time Crypto Data API FAQ

### What is a real-time crypto data API?

A real-time crypto data API gives applications access to cryptocurrency market information as new activity occurs.

This can include live trades, bid and ask quotes, order book changes, OHLCV updates, exchange rates, indexes, and market metadata.

### How can I get real-time crypto data?

CoinAPI provides real-time cryptocurrency market data through REST, WebSocket, WebSocket DS, and FIX depending on the workflow.

WebSocket is designed for applications that need continuous updates, while REST works better for on-demand requests.

### Does CoinAPI provide a crypto WebSocket API?

Yes.

CoinAPI WebSocket V1 provides continuous cryptocurrency market data streaming through a persistent connection.

Applications can subscribe to supported datasets and filter streams by symbols, exchanges, assets, and other available parameters.

### What is a crypto streaming API?

A crypto streaming API continuously pushes new cryptocurrency market events to an application instead of requiring the application to repeatedly request the latest state.

WebSocket is commonly used for this type of real-time market data delivery.

### What is the difference between REST and WebSocket for crypto data?

REST uses separate requests and responses.

WebSocket maintains a persistent connection and continuously delivers new market events, making it better suited to live trading applications, dashboards, market monitoring, and other real-time workflows.

### What is the difference between WebSocket V1 and WebSocket DS?

WebSocket V1 focuses on normalized market data streaming across the CoinAPI ecosystem.

WebSocket DS provides more direct access to individual market data sources and is designed for lower-latency delivery.

### Can I stream real-time crypto trades?

Yes.

CoinAPI can stream individual trade events containing information such as symbol, price, size, timestamps, sequence, and taker side where available.

### Can I stream real-time crypto order books?

Yes.

CoinAPI supports real-time quotes and multiple L2 order book data types, including full books and depth-limited feeds such as book5, book20, and book50, subject to exchange and instrument coverage.

### Are real-time crypto order books updated at fixed intervals?

Not necessarily.

Full order book feeds are driven by changes in market depth and use snapshots and updates to represent the current market state. Depth-limited snapshot feeds can follow their own update behavior.

### Can I stream data from multiple cryptocurrency exchanges?

Yes.

CoinAPI provides access to real-time market data across hundreds of integrated cryptocurrency exchanges. Available markets and data types depend on the underlying source and selected interface.

## Start Streaming Real-Time Crypto Data

Access live crypto trades, quotes, order books, OHLCV updates, exchange rates, indexes, and market metadata through CoinAPI.

Use WebSocket V1 for normalized real-time cryptocurrency data, WebSocket DS for lower-latency direct-source delivery, REST for on-demand requests, or FIX for institutional infrastructure.

- [Get Your API Key](https://console.apibricks.io/?link=/apikeys/create)
- [View Pricing](/products/market-data-api/pricing)
- [Contact Sales](/contact-us)