# Spread Data

Spread data refers to the real-time and historical difference between the best ask price (lowest sell order) and the best bid price (highest buy order) on a crypto exchange.

### Spread Data

**Spread data** refers to the real-time and historical difference between the **best ask price (lowest sell order)** and the **best bid price (highest buy order)** on a crypto exchange. It is one of the most important measures of market liquidity, transaction cost, and execution quality.

Spread = **Ask Price – Bid Price**

A smaller spread indicates higher liquidity and lower friction. A larger spread signals thin markets, higher risk, or market stress.

## What Does Spread Data Include?

Spread data typically consists of:

* **Best bid price**
* **Best bid size**
* **Best ask price**
* **Best ask size**
* **Spread value** (ask – bid)
* **Spread percentage** (spread/mid-price)
* **Timestamped updates** whenever top-of-book changes

In normalized datasets (like CoinAPI), spreads are consistent across exchanges and trading pairs, no matter the venue’s native schema or field naming.

## Why Spread Data Matters

Spread data is a foundational signal in trading, risk management, and market structure analysis. It helps you understand:

* **Liquidity** - narrow spreads = deep markets
* **Trading costs** - wider spreads = higher cost to enter/exit
* **Volatility** - spreads often widen during market stress
* **Market efficiency** - thin or manipulated markets show abnormal spreads
* **Execution quality** - used by brokers, exchanges, and compliance teams

For most active traders and automated systems, spread data directly affects:

* profitability
* slippage
* fill probability
* latency-sensitive strategies

## How Traders and Quants Use Spread Data

Spread data is essential for:

### **1. Market Making**

Setting bid/ask quotes and managing inventory requires precise spread monitoring.

### **2. Arbitrage Strategies**

Spread anomalies across exchanges reveal cross-market inefficiencies.

### **3. Backtesting & Execution Simulation**

Accurate spreads are required to estimate true transaction costs.

### **4. High-Frequency Trading (HFT)**

Microsecond-level spread changes impact order placement and cancellation logic.

### **5. AI & Machine Learning Models**

Spread width, spread volatility, and spread skew are key predictive features.

### **6. Liquidity & Microstructure Analysis**

Used to measure market depth, imbalance, and market resiliency.

## How CoinAPI Provides Spread Data

CoinAPI delivers spread data through normalized **quote data** (best bid/ask) and full **order book** streams:

* **Real-time spreads** via WebSocket, FIX, and REST
* **Historical spread data** via normalized Quote Flat Files
* **Unified definitions** across 380+ exchanges
* **Consistent timestamps** for accurate reconstruction
* **Full microstructure context** with Level 2/3 order book data

You can compute spreads directly from:

`bid_px`, `bid_sx`, `ask_px`, `ask_sx`

CoinAPI avoids symbol mismatches or exchange schema inconsistencies—every trading pair is mapped correctly across venues.

## Spread Data FAQ

**Q: Does CoinAPI send the spread directly?**

No. CoinAPI delivers the raw best bid and best ask exactly as the exchange provides them.

The spread is computed client-side:

`spread = ask_price – bid_price`.

**Q: Can CoinAPI modify or “tighten” the spread?**

No. Spreads reflect the real market on each exchange. CoinAPI does not alter or synthesize prices.

**Q: Are spreads fixed?**

No. Spreads constantly change based on real-time liquidity, volatility, and order book depth.

## Things to Remember

* Spreads measure **market liquidity** and **execution cost**.
* Wider spreads = higher slippage and more trading risk.
* Spread dynamics often predict volatility, regime shifts, and order flow.
* CoinAPI provides clean, normalized spread data across 400+ exchanges.
* Both real-time and historical spread datasets are available.

## Further Reading

* [Level 1 vs Level 2 vs Level 3 Market Data: How to Read the Crypto Order Book](https://www.coinapi.io/blog/level-1-vs-level-2-vs-level-3-market-data-how-to-read-the-crypto-order-book)
* [Tick Data vs Order Book Snapshots: Complete Guide for Crypto Trading Systems](https://www.notion.so/Spread-data-2b2369733b2e807886a1d923bef92a0c?pvs=21)
* [Real-Time Crypto Data: Why Multiple Updates Beat Single Responses](https://www.coinapi.io/blog/real-time-crypto-data-multiple-updates-vs-single-responses)