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.

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 DataWhat It ShowsTypical Uses
TradesExecuted transactions, prices, sizes and timestampsTick analysis, execution monitoring, trading models
QuotesCurrent best bid and ask prices and sizesSpread analysis, pricing, market monitoring
Order BooksBids, asks, liquidity and market depthMarket making, liquidity analysis, execution models
OHLCV UpdatesCurrent candle activity over supported periodsCharts, technical analysis, dashboards
Exchange RatesCrypto-to-crypto and crypto-to-fiat reference ratesValuation, payments, treasury, accounting
IndexesCryptocurrency benchmark and reference pricesNAV, reporting, benchmarking
MetadataExchanges, assets, symbols and instrumentsMarket 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.

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 TradesA 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 QuotesQuote 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 BooksFull 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 UpdatesLive 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 MethodBest ForTypical Workloads
REST APIOn-demand market dataLatest data, metadata, snapshots, exchange rates
WebSocket V1Continuous normalized streamingTrades, quotes, books, OHLCV, dashboards
WebSocket DSLower-latency direct-source streamingTrading, market making, latency-sensitive systems
FIX APIInstitutional infrastructureMarket data and trading workflows
REST APIREST 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 V1WebSocket 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 DSWebSocket 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.
FIXFIX 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 V1WebSocket DS
Primary modelNormalized streamingDirect-source streaming
Best forApplications consuming broader CoinAPI datasetsLatency-sensitive market infrastructure
Typical dataTrades, quotes, order books, OHLCV and additional supported streamsTrades, quotes and order book data from individual sources
PriorityBreadth and normalized accessLower-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
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.

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.