Aperiodic
MarketsLive
Pricing
Get Started

L1 — Top of Book

Millisecond-resolution best bid/ask analytics.

Top-of-book quote data distilled into interval aggregates: spread, depth, imbalance, mid-price dynamics, and update frequencies — enabling high-resolution microstructure research without raw tick storage.
Browse catalogAPI documentation

Shown: the median perpetual’s dollar depth at the top of the book, as a share of its 20:00–20:45 average, per venue, 18:00–01:00 UTC on 10 Oct 2025; minutes under half of normal take the strong tone, and the lowest of all, OKX’s 26.1% at 22:33, is orange · built with l1_liquidity 1m

L1 — Top of Book Datasets

L1 Price

Pro

Best bid and ask prices with quantities, midprice, quantity-weighted midprice, time/volume-weighted averages, and quote update frequency.

  • Mid Price·
  • Weighted Mid Price·
  • Bid Price TWAP·
  • Ask Price VWAP

L1 Imbalance

Prime

Bid/ask imbalance, ratio, percentages — both instantaneous (last) and averaged over the interval.

  • Imbalance·
  • Imbalance Ratio·
  • Bid/Ask Ratio·
  • Avg Imbalance

L1 Liquidity

Prime

Spread (absolute and bps), depth, dollar depth — instantaneous and interval-averaged.

  • Spread (bps)·
  • Total Depth·
  • Total Dollar Depth·
  • Avg Spread (bps)

Highlighted Metrics

midprice

Mid Price

Mid Price is the center of the best bid and best ask, making it the cleanest instantaneous fair-value proxy at the top of book.

Because it strips out half-spread noise, it is widely used for microstructure research, marking, and short-horizon return calculations.

weighted_midprice

Weighted Mid Price

Weighted Mid Price tilts the simple midpoint by the relative size resting at the best bid and ask.

That gives it a predictive flavor because it incorporates which side of the top of book is showing more immediate depth.

quote_update_frequency

Quote Update Frequency

Quote Update Frequency measures how actively the top of book was refreshing during the interval.

A high reading often means the market was competitive, reactive, or unstable enough to force frequent repricing.

avg_update_interval

Avg Update Interval

Average Update Interval is the time counterpart to quote frequency, showing how quickly the best quotes changed on average.

Shorter intervals imply a faster and more responsive book, while longer intervals suggest a calmer or less actively managed top of book.

bid_price_vwap

Bid Price VWAP

Bid Price VWAP summarizes where the best bid spent its time with volume-sensitive weighting.

It offers a richer picture than a single snapshot because it reflects how quoted buying interest evolved across the bar.

imbalance

Imbalance

Imbalance measures the raw difference between bid-side and ask-side top-of-book size.

It is one of the fastest ways to see which side is presenting more immediate resting interest at the best quotes.

imbalance_ratio

Imbalance Ratio

Imbalance Ratio scales the raw difference into a relative measure that is easier to compare across symbols and market states.

Because it normalizes for total top-of-book size, it often gives a cleaner signal than the raw imbalance alone.

bid_ask_ratio

Bid/Ask Ratio

Bid/Ask Ratio directly compares the best-bid size with the best-ask size.

It is intuitive, portable, and useful when you want to know whether displayed buying depth materially outweighed displayed selling depth.

bid_percentage_avg

Avg Bid %

Average Bid % shows the mean share of top-level liquidity that sat on the bid across the interval.

This smooths through flicker and highlights the prevailing balance of displayed interest instead of a single instant.

ask_percentage_avg

Avg Ask %

Average Ask % is the complementary view, capturing how much of top-level liquidity tended to sit on the ask side.

Monitoring the bid and ask averages together helps reveal whether one side dominated persistently or whether the book spent the interval near equilibrium.

spread_bps

Spread (bps)

Spread in basis points measures the instantaneous cost of crossing from the best bid to the best ask on a normalized scale.

It is one of the most direct and actionable summaries of top-of-book trading conditions.

spread_depth_ratio

Spread/Depth Ratio

Spread/Depth Ratio combines price width and displayed size into a single liquidity efficiency measure.

A market with tight spreads but little size can still be fragile, and this ratio helps expose that weakness.

total_dollar_depth

Total Dollar Depth

Total Dollar Depth aggregates the top-level bid and ask liquidity in value terms.

This gives a more practical view of executable size than raw units, especially across instruments with different prices.

dollar_depth_bid_avg

Avg Bid Dollar Depth

Average Bid Dollar Depth tracks the mean value resting on the bid at the top of book throughout the interval.

It helps answer whether supportive displayed buying liquidity was consistently present or only flashed briefly.

dollar_depth_ask_avg

Avg Ask Dollar Depth

Average Ask Dollar Depth provides the matching view for displayed sell-side liquidity at the best offer.

Comparing it with the bid average helps reveal whether one side of the book was structurally thinner or thicker during the bar.

Market Microstructure Context

Spread and top-of-book liquidity

BID DEPTHASK DEPTHSPREAD

The spread is the price of immediacy — what the market maker charges to bear adverse selection risk right now. Huang & Stoll (1997) decomposed it into adverse selection, inventory, and order processing costs, which is why a widening spread is diagnostic, not just expensive. But the average hides the regime change: a bar with mean spread of 2 bps that was 0.5 bps for 55 seconds and 8 bps for 5 seconds tells a fundamentally different story than a steady 2 bps. Bollerslev & Melvin (1994) showed spread volatility itself predicts future return volatility — the instability of the spread matters as much as its level.

  • Quoted spread — The gap between best ask and best bid. The sticker price of trading — what you see, not necessarily what you get once real size hits the book.
  • Spread in basis points — Price-normalized spread for cross-asset comparison. A 1-cent spread means something very different on a $10 asset versus a $50,000 one.
  • Top-of-book depth — How much size sits at the best prices. A 1 bps spread on 50k of depth is a different market than 1 bps on 500k. This tells you the cost of the first fill — not whether the market survives the second.
  • Spread/depth ratio — The honesty check on tight spreads. Low ratio means genuinely cheap liquidity. High ratio means the narrow quote is decorative — it will not survive contact with real flow.
Intro to Aperiodic L1 Price Metrics
Interactive notebook

Use Cases

Spread-based execution cost modelling

Use average and instantaneous spread metrics to quantify market-making costs and estimate fill quality across instruments.

Informed trader detection via imbalance

Detect directional pressure from bid/ask imbalance and imbalance ratio dynamics before price moves occur.

Quote update frequency analysis

Identify quote stuffing patterns and measure market-maker activity intensity using update frequency metrics.

VWAP/TWAP quote benchmarking

Compare execution fills against bid/ask VWAP and TWAP to measure adverse selection in your order flow.

High-frequency strategy feature engineering

Use weighted mid-price, imbalance averages, and depth to build predictive features for HFT and MM strategies.

Get started in minutes

curl -fsSL https://raw.githubusercontent.com/aperiodic-io/cli/main/install.sh | bash
github ↗
terminal
# Install the Aperiodic CLI into ~/.local/bin
mkdir -p "$HOME/.local/bin"
curl -fsSL https://raw.githubusercontent.com/aperiodic-io/cli/main/install.sh | INSTALL_DIR="$HOME/.local/bin" bash
export PATH="$HOME/.local/bin:$PATH"

# Fetch the preview slice as Parquet into ./data — no API key needed
aperiodic flow --preview \
  --exchange binance-futures \
  --symbol perpetual-BTC-USDT:USDT \
  --interval 5m \
  --timestamp exchange \
  --start-date 2025-05-01 \
  --end-date 2025-05-31 \
  --output-dir ./data && echo "Saved to $PWD/data"
Preview · binance-futures · perpetual-BTC-USDT:USDT · 1h · 2024-01-01 → 2024-01-31
df.head() · 5 × 37
#timetaker_buy_volumetaker_sell_volumetaker_buy_counttaker_sell_countvolume_deltavolume_delta_notionalflow_entropyflow_toxicity_scoretaker_buy_sell_ratiotaker_buy_sell_count_ratiotaker_buy_sell_percentagetaker_buy_sell_count_percentagetaker_buy_small_order_volumetaker_buy_small_order_counttaker_buy_medium_order_volumetaker_buy_medium_order_counttaker_buy_large_order_volumetaker_buy_large_order_counttaker_sell_small_order_volumetaker_sell_small_order_counttaker_sell_medium_order_volumetaker_sell_medium_order_counttaker_sell_large_order_volumetaker_sell_large_order_counttaker_buy_small_order_percentagetaker_buy_medium_order_percentagetaker_buy_large_order_percentagetaker_sell_small_order_percentagetaker_sell_medium_order_percentagetaker_sell_large_order_percentagetaker_buy_small_order_count_percentagetaker_buy_medium_order_count_percentagetaker_buy_large_order_count_percentagetaker_sell_small_order_count_percentagetaker_sell_medium_order_count_percentagetaker_sell_large_order_count_percentage
12024-01-01 00:00:004687.976074218753771.50097656254650041778916.4749755859375388712680.68726718425750731.24300014972686771.11302602291107180.55416858196258540.526745080947876138008.609375268497904352641818910536017398117024.32812518978532792241711515127201571029.4388465881347662088.414062540338.3789062531.0285816192626952262.43920898437540173.05468750.0577204301953315730.56812900304794310.37415054440498350.045406673103570940.5785580873489380.37603524327278137
22024-01-01 01:00:004783.8378906254259.57324218754938640965524.2650146484375223910960.6914658546447754-0.51.12307918071746831.20556569099426270.52898597717285160.5466015934944153140995.4375283810853161283161931864321823277478.26562512409094397236051726176161612029.4732894897460942268.71411132812540383.148437518.1892089843752135.04882812540524.6250.0574656799435615540.57336086034774780.369173437356948850.0302697420120239260.5762236118316650.39350664615631104
32024-01-01 02:00:002141.2590332031252511.808105468752448528065-370.54901123046875-157790900.68997293710708620.94617903232574460.85247713327407840.87243896722793580.4601822495460510.4659371972084045481757.617187515945058392.51306686080624982542772.0781256856032806.5165781009242881080238.1820297241210942362.34497070312540200.937517.028402328491212401.778320312540179.93750.065101079642772670.53363281488418580.401266068220138550.0244076251983642580.59070014953613280.38489222526550293
42024-01-01 03:00:003501.1320800781254618.7480468753615748188-1117.615966796875-474773440.683644711971283-0.170257717370986940.75802618265151980.75033205747604370.431180268526077270.42867982387542725109771.179687521607630267.5201431407325121385478518.9765625125310414373292961854570081763931.3530521392822272179.3715820312540196.289062517.000055313110352254.8041992187540153.089843750.059739470481872560.55709820985794070.383162319660186770.0260023251175880430.60795217752456670.3660454750061035
52024-01-01 04:00:003155.4318847656253201.104003906253664031386-45.672000885009766-1877300.750.69312137365341190.0265556294471025470.985732376575471.1673995256423950.49640744924545290.5386176109313965150556.92187530427435109201351260489201346359707.238281259466590907187841288612721165647.713569641113282356.28881835937539946.6445312518.6520767211914062058.94799804687540255.25781250.083024017512798310.54953604936599730.367439955472946170.0301408264786005020.59848338365554810.37137576937675476

Ready to start building?

Get access to our full catalog of market microstructure data.

Get started free

Shown: minute lows of the 465 Binance perpetuals, 20:40–22:00 UTC on 10 Oct 2025, with BTC’s path traced · built with ohlcv 1m

Aperiodic

Built from hundreds of terabytes of raw data and distilled into point-in-time metrics you can pull as parquet files. Plus the raw trades, quotes and derivatives data behind them.

Use Cases
  • Improve your backtest
  • Find new alpha
  • Execute smarter
Indices
  • All indices
  • Aperiodic Cost Index
  • Aperiodic Depth Index
  • Aperiodic Impact Index
Metrics
  • Full Catalog
  • Live markets dashboard
  • Global Liquidity
  • Unusual activity
  • Order Flow
  • L1 — Top of Book
  • L2 — Order Book
  • Market Data
  • Derivatives
  • RWA
  • Raw Data
Developers
  • API Docs
  • Live WebSocket Feed
  • MCP Server
  • Notebooks
  • For AI Agents
  • Atlas Security Master
  • Pre-flight
  • Changelog
  • Roadmap
  • llms.txt
Learn
  • Replays
  • Microstructure Guide
  • Architecture
  • Research Blog
  • FAQ
Compare
  • All vendors
  • vs. Tardis
  • vs. CoinGlass
  • vs. Kaiko
  • vs. Amberdata
Company
  • Pricing
  • Contact
  • Book a call
  • Terms of Service
  • Privacy Policy
  • Licensing
  • SLA

© Copyright 2026 Aperiodic. All Rights Reserved.

Aperiodic Limited · Registered in Ireland · Company No. 815273 ·
136 Capel Street, Dublin D01 T2C9, Ireland

Shown: minute closes of 847 perpetuals, 20:30–22:30 UTC on 10 Oct 2025, IOTX in orange · built with ohlcv 1m