Aperiodic
MarketsLive
Pricing
Get Started

Metrics library · Derivatives

Derivative price

Get the data
BTC-USDT perpetual on Binance, 5m bars, 1 to 31 May 2025, from the free preview. The free delayed feed doesn't carry this dataset; paid plans stream it in real time.
How it's builtBTC, May 2025FieldsDownloadFAQ

Last trade, index and mark price for each contract. Venues set margin and liquidations on the mark.

Snapshot of mark, index, and last trade prices with interval percentage changes and pairwise divergence ratios.

Built from
Derivatives
Fields
9
Intervals
1m to 1d
Plan
Pro
Venues
Binance, OKX, Hyperliquid
Live
Real time on paid plans

How it's built

One real 5-minute bar from the free preview, field by field.

The 5m bar from 14:00 to 14:05 UTC on 14 May 2025, Binance BTC-USDT perpetual, from the free preview.

  1. Step 1

    Three prices from the ticker

    The plain fields are each price's last value in the bar. At every close in the hour, mark and last were within $15 of each other and the index was above both.

    $104,252.8$103,563.3
    13:0514:00
    indexmarklast (dashed)

    Closing value of each 5-minute bar, over the hour up to this one.

  2. Step 2

    Change over the bar

    mark_price_pct_change=(last mark − first mark) / first mark × 100=-0.0930%
    index_price_pct_change=the same for the index=-0.0911%
    last-0.0930%
    mark-0.0930%
    index-0.0911%
  3. Step 3

    Compare the moves

    mark_index_pct_change_ratio=mark move / index move=1.0200
    index_last_pct_change_ratio=index move / last move=0.9804

    Above 1, the mark moved more than the index, here by about 2%. The ratios become very large when the denominator is near zero, so use them only on bars that moved.

  4. Step 4

    The bar

    last_price
    $103,817.2
    mark_price
    $103,817.2
    index_price
    $103,859.74
    last_price_pct_change
    -0.0930%
    mark_index_pct_change_ratio
    1.0200
    mark_last_pct_change_ratio
    1.0000

How far BTC's last price strayed from its mark

BTC's last price closed a median 0.097 bps from its mark in May. On the widest bar the gap was 12.7 bps.

BTC-USDT perpetual on Binance, 5m bars, 1 to 31 May 2025, from the free preview.

Median gap between last and mark price
0.010
0.057
0.029
0.046
0.070
0.092
0.099
0.146
0.232
0.407
12345678910

Bars by high-low range, calmest tenth to wildest tenth. Basis points.

The median gap between last and mark at a bar's close was 0.097 bps, 1 bar in 100 saw more than 2.71 bps, and the widest was 12.7 bps. Sorted by the bar's high-low range, the calmest tenth had 0.010 bps and the most volatile tenth 0.41 bps.

Liquidations trigger on the mark price. A stop set on the last price triggers on trades. The two are furthest apart on the most volatile bars.

How to read it

last_price is the last trade, index_price the venue's spot index, mark_price the venue's price for margin. Each _pct_change field is its move over the interval.

The _ratio fields divide one move by another. mark_last_pct_change_ratio near 1 means the mark followed the trades. Far from 1 means the venue smoothed the move out.

The ratios grow very large when the move in the denominator is near zero. Filter on the size of the move before you read them.

last_price
Last traded price observed in the interval
index_price
Last index price observed in the interval
mark_price
Last mark price observed in the interval
last_price_pct_change
Percentage change from the first last price to the final last price in the interval
index_price_pct_change
Percentage change from the first index price to the final index price in the interval
mark_price_pct_change
Percentage change from the first mark price to the final mark price in the interval
mark_index_pct_change_ratio
Mark-price return divided by index-price return over the interval
mark_last_pct_change_ratio
Mark-price return divided by last-price return over the interval
All 9 fieldsFewer fields
index_last_pct_change_ratio
Index-price return divided by last-price return over the interval
The research behind itHide the research

Crypto perpetual exchanges use a mark price — a smoothed, manipulation-resistant reference — to calculate unrealized P&L and trigger liquidations. The underlying feed is the index price, typically a volume-weighted average of spot prices across major exchanges. The gap between mark, index, and last trade price is not just a data quality metric — it's a window into the mechanics of the liquidation engine.

Why the mark price exists

The mark price was designed to prevent price manipulation of liquidation triggers. Without smoothing, a single large trade on one exchange could trigger liquidations of positions sized many multiples larger. This is a real attack vector: Aitken, Cumming & Zhan (2015) documented end-of-day price manipulation in equity markets, and the incentive structure in crypto (where triggering a liquidation can be directly profitable through the resulting cascade) makes it even more relevant.

The smoothing algorithm (typically an EMA of the index price with exchange-specific parameters) creates a deliberate lag between market reality and the reference price used for liquidation calculations. This lag is a feature, not a bug — but it has observable consequences.

What the divergences reveal

Mark price > last trade price: The official reference is above current market reality. Longs are being credited higher unrealized P&L than their actual position would fetch. Shorts face the inverse. This configuration delays long liquidations while accelerating short liquidations — an asymmetric effect that can suppress natural deleveraging during a downturn.

Last trade price > mark price: The market has moved up faster than the smoothing can track. During rapid upward moves, this creates a temporary safe harbor for shorts: their liquidation price hasn't caught up to reality yet. When the mark finally converges, a burst of liquidations hits — the "catch-up cascade."

Mark-index divergence: When the exchange's mark price persistently deviates from the index, it signals either a calculation methodology issue or deliberate exchange behavior. Monitoring this helps identify periods where the liquidation mechanism is operating with unusual latency.

The price change ratio

We compute how synchronously mark and index prices move. During calm periods, the ratio is near 1.0 — both prices track each other closely. During fast markets, the ratio deviates, and the magnitude of deviation reveals the liquidation engine's effective lag. This is when watching the mark-trade divergence is equivalent to watching the liquidation engine's processing delay in real time.

When the gap closes rapidly after a period of divergence, a wave of liquidations either just executed or is imminent. This has the flavor of the "endogenous" liquidity crises described by Danielsson, Shin & Zigrand (2012): the system's own risk management rules amplify the initial shock.


References:

  • Aitken, M., Cumming, D. & Zhan, F. (2015). "Exchange Trading Rules, Surveillance and Suspected Insider Trading." Journal of Corporate Finance, 34, 311–330.
  • Danielsson, J., Shin, H.S. & Zigrand, J.-P. (2012). "Endogenous and Systemic Risk." In Quantifying Systemic Risk, University of Chicago Press, 73–94.

Download the same month

No account needed. Pro adds every venue and perp, at 1-minute to daily bars.
# 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"

# Free preview — no API key required
aperiodic derivative_price --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"

Questions

Related

BasisPerp price against its index, in bpsFundingWhat longs pay shorts, every perpCandlesticksCandles and volume, built from every trade
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
  • Metrics library
  • Data Catalog
  • Live markets dashboard
  • Global Liquidity
  • Unusual activity
  • Order Flow
  • L1 & L2
  • 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