Aperiodic
Metrics
MarketsLive
DocsPricing
Get the data

For quants

220 microstructure features. One point-in-time schema.

Order flow, trade-size buckets, L1/L2 book imbalance and depth, impact, slippage, funding, basis and OI, precomputed from every trade and quote on Binance, OKX and Hyperliquid perps. Join on the bar index, stack across contracts and spend your time on labels, CV and IC, not on rebuilding order books.
Run the alpha notebookBrowse all 220

Order flow112

flow36
trade_size24
updownticks14
slippage10
range10
run_structure7
returns6
impact5

L1 & L2 order book76

l2_imbalance24
l2_liquidity16
l1_liquidity14
l1_price12
l1_imbalance10

Derivatives32

derivative_price9
basis8
ohlcv6
open_interest4
funding3
vtwap2

flow.flow_toxicity_scorePro

Past-normalized signed notional flow multiplied by past-normalized short-horizon realized volatility

Shown: every feature, one tile per parquet columnProPrime

Machine learning

Predictive features, ready for research and live

Fit on years of point-in-time history, then serve the same columns from the live stream. One feature definition from backtest to production, so there is no training/serving skew to debug.

219

of the 220 features stream live over WebSocket with the names and units you trained on. Streaming comes with a Live plan.

  • Alpha-bearing microstructure signals, precomputed

    Order-flow and book imbalance across 5 to 25 levels, flow toxicity, trade-size buckets, run persistence, impact, funding and basis: the inputs short-horizon models are built on, one row per bar.

  • The same schema in research and live

    REST history and the WebSocket stream emit identical column names and units on every bar size from 1m to 1d, so the vector you trained on is the vector you predict on.

  • Labels that line up

    Train on timestamp="true" bars, which hold only what was observable at the close, the same information a live bar carries when it is published.

research_to_live.py
# pip install "aperiodic[pandas,stream]" scikit-learn
from datetime import date

import pandas as pd
from aperiodic import get_metrics, get_ohlcv, stream
from sklearn.linear_model import Ridge
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler

X = ["volume_delta_notional", "taker_buy_sell_ratio", "flow_toxicity_score"]
bars = dict(exchange="binance-futures", symbol="perpetual-BTC-USDT:USDT",
            interval="1h", timestamp="true", output="pandas",
            start_date=date(2026, 7, 1), end_date=date(2026, 9, 30))

# Research: fit on point-in-time history
x = get_metrics(metric="flow", **bars).set_index("time")[X]
y = get_ohlcv(**bars).set_index("time")["close"].pct_change().shift(-1)
train = x.join(y.rename("y")).dropna()
model = make_pipeline(StandardScaler(), Ridge()).fit(train[X], train["y"])

# Live: the same columns, one row per closed bar
for msg in stream(dataset="flow", exchange="binance-futures", interval="1h",
                  symbols=[bars["symbol"]]):
    print(msg.data["time"], model.predict(pd.DataFrame([msg.data])[X])[0])

Feature set

Look up any column before you write a line

220 features in 19 datasets, each a parquet column with the same name, units and bar semantics on every venue. Search by what you want to model.
220 of 220 features
FeatureMeasuresPlan
flow.volume_deltaBuy-side traded quantity minus sell-side traded quantityBuy-side traded quantity minus sell-side traded quantityPro
l2_imbalance.imbalance_5Last top-5 bid quantity minus top-5 ask quantityLast top-5 bid quantity minus top-5 ask quantityPrime
derivative_price.last_priceLast traded price observed in the intervalLast traded price observed in the intervalPro
trade_size.large_order_volumeTotal traded notional from large trades of at least $1,000Total traded notional from large trades of at least $1,000Pro
l2_liquidity.ask_agg_10Last total ask quantity across the top 10 levelsLast total ask quantity across the top 10 levelsPrime
basis.basisLast mark price minus index price in the intervalLast mark price minus index price in the intervalPro
updownticks.uptick_volumeTotal traded quantity on upticksTotal traded quantity on upticksPro
l1_liquidity.spread_bpsLast bid-ask spread in basis points of the midpriceLast bid-ask spread in basis points of the midpricePrime
ohlcv.openFirst trade price in the intervalFirst trade price in the intervalPro
slippage.slippage_bps_meanAverage slippage in basis points versus the prevailing quoteAverage slippage in basis points versus the prevailing quotePro
l1_price.midpriceMidpoint between the last best bid and ask pricesMidpoint between the last best bid and ask pricesPro
open_interest.open_interestLast open interest value in the intervalLast open interest value in the intervalPro

Training sets

Built so the backtest doesn’t lie

Bars from every trade and quote, for crypto and 600+ real-world asset perps on Binance, OKX and Hyperliquid, with the leakage handled upstream.

Point-in-time bars

With timestamp="true", each bar is built on when every event reached our collectors next to the exchange, so it holds only what a live strategy could have seen by its close. No look-ahead from late prints or venue clock skew.

Survivorship-free universe

Delisted contracts keep their history up to their last bar, so a cross-sectional backtest trades the universe as it was, not the one that survived.

One schema, three venues

Same column names, units and Atlas symbology on Binance, OKX and Hyperliquid. Stack contracts into an asset × time panel for cross-sectional models without per-venue adapters.

Small enough to iterate

Precomputed features are 100–1000x smaller than the L2 data they replace. Years of minute bars for hundreds of contracts fit in RAM, so a hyperparameter sweep is not I/O-bound.

Workflow

From raw columns to rank IC in 30 lines

Pull three datasets for three perps, align them on the bar index, label the next-bar return and rank every feature by its information coefficient. A free key covers every metric for Q3 2026 on BTC, ETH and SOL, so it runs as pasted.
  1. 01

    Fetch

    One call per dataset returns a DataFrame keyed on bar open time: flow, l2_imbalance and funding here.

  2. 02

    Align

    Concatenate on the time index and forward-fill the sparse series. Every column shares the bar grid, so there is no as-of join to get wrong.

  3. 03

    Label

    The next-bar return from the same bars. Shift the label, never the features.

  4. 04

    Score

    Spearman rank IC per feature and asset, averaged. Then walk forward, with a purge gap of one label horizon between train and test folds.

rank_ic.py
# pip install "aperiodic[pandas]", then export APERIODIC_API_KEY=...
from datetime import date

import pandas as pd
from aperiodic import get_derivative_metrics, get_metrics, get_ohlcv

bars = dict(exchange="binance-futures", interval="1h", timestamp="true",
            start_date=date(2026, 7, 1), end_date=date(2026, 9, 30),
            output="pandas", show_progress=False)


def features(symbol: str) -> pd.DataFrame:
    def get(fetch, metric):
        return fetch(metric=metric, symbol=symbol, **bars).set_index("time")

    x = pd.concat([get(get_metrics, "flow"),
                   get(get_metrics, "l2_imbalance"),
                   get(get_derivative_metrics, "funding")], axis=1)
    x = x.select_dtypes("number").ffill()  # funding updates sparsely
    close = get_ohlcv(symbol=symbol, **bars).set_index("time")["close"]
    x["fwd_ret"] = close.pct_change().shift(-1)  # label: next-bar return
    return x


panel = pd.concat({coin: features(f"perpetual-{coin}-USDT:USDT")
                   for coin in ("BTC", "ETH", "SOL")}, names=["asset", "time"])

# Time-series rank IC: Spearman corr of each feature with the next-bar return
ic = (panel.groupby(level="asset").corr(method="spearman")["fwd_ret"]
      .unstack("asset").drop("fwd_ret"))
print(ic.mean(axis=1).sort_values(key=abs).tail(10))

Research

Two notebooks that go further

Signal construction, parameter search and cost-aware backtests on the same features. Both run on preview data with no key; widen the dates once you have one.

alpha-discovery.py

Alpha discovery

A grid search over features, rolling-rank windows and smoothing. Each candidate gets a direction from its correlation with the next-bar return and a cost-aware long/short backtest, ranked by Sharpe with decile returns and robustness across windows.

Open notebook →

most-predictive.py

The most predictive microstructure metric

L2 book imbalance at 5, 10, 20 and 25 levels, turned into percentile-rank signals and backtested on 5m BTC bars.

Open notebook →

Prime + Raw adds the inputs behind the features: every trade, top-of-book quotes, mark and index price and funding, as parquet on the same symbols and timestamps. Full-depth L2 books are not for sale.

See the raw datasets

FAQ

What quants ask first

Terms in plain English on the licensing page.

Agents

Train a machine learning model

Hand this prompt to ChatGPT or Claude. It installs the aperiodic client, pulls the free window for BTC, ETH and SOL, labels next-bar returns and fits a walk-forward model with a purged CV.
train_a_model.prompt
Act as my quant research assistant. Train a machine learning model that predicts the next-bar return of crypto perpetuals from Aperiodic's point-in-time microstructure features (docs: https://aperiodic.io/start.md).

1. Install the Python client with pip install "aperiodic[pandas]" and read my key from the APERIODIC_API_KEY environment variable.
2. For BTC, ETH and SOL on binance-futures (symbols like perpetual-BTC-USDT:USDT), fetch 1h bars from 2026-07-01 to 2026-09-30 with timestamp="true" and output="pandas": the flow, l2_imbalance and trade_size metrics with get_metrics, funding and basis with get_derivative_metrics, and close prices with get_ohlcv.
3. Join everything on the bar time into one asset × time panel, forward-fill the sparse series only, and label each row with the next-bar return. Shift the label, never the features.
4. Train a LightGBM regressor with walk-forward cross-validation and a purge gap of one label horizon between train and test folds. Compare it to a ridge baseline.
5. Report out-of-sample rank IC per fold and per asset, the top 15 features by importance, and a cost-aware long/short backtest of the predictions at 5 bps per side.

Explain each step briefly and keep the code in one runnable script. Tell me what to change to run it on more symbols and longer history once I upgrade.
Open in ChatGPTOpen in Claude
Open in ChatGPTOpen in Claude

Get a key and fit something

Every metric for Q3 2026 on BTC, ETH, SOL and 10 RWA perps, free. Upgrade for the full universe, history and bar sizes.

Get a free keyTalk to us

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.

Data
  • Metrics library
  • Order Flow
  • L1 & L2
  • Derivatives
  • Raw Data
  • Data Catalog
  • Free data
  • Pricing
Use Cases
  • Improve your backtest
  • Find new alpha
  • Execute smarter
  • For quants
Indices
  • All indices
  • Flow indices
  • Pressure Index
  • Conviction Index
  • Positioning indices
  • OI Divergence Index
  • Leverage Index
  • Crowding Index
  • Liquidity indices
  • Cost Index
  • Depth Index
  • Impact Index
Tokenized markets
  • All real-world assets
  • Commodity perps
  • Tokenized stock perps
  • Stock index perps
  • Tokenized ETF perps
  • Pre-IPO perps
  • FX perps
  • Hyperliquid HIP-3
Live markets
  • Live markets dashboard
  • Every perp, A–Z
  • Real-world asset board
  • Global Liquidity
  • Unusual activity
  • Live funding rates
Developers
  • Docs
  • API Docs
  • MCP Server
  • For AI Agents
  • Pre-flight
  • Notebooks
  • Integrations
  • Atlas Security Master
  • TParquet
  • llms.txt
Learn
  • Markets from First Principles
  • Microstructure Guide
  • Replays
  • Architecture
  • Research Blog
  • FAQ
Company
  • Team
  • Contact
  • Book a call
  • Changelog
  • Roadmap
Compare
  • All vendors
  • Pricing compared
  • vs. Tardis
  • vs. CoinGlass
  • vs. Kaiko
  • vs. Amberdata
  • vs. Crypto Lake
  • vs. Laevitas
  • vs. Coinalyze
Exchange data
  • Binance archive
  • Hyperliquid data
  • Binance OI history API
  • OKX history APIs

© Copyright 2026 Aperiodic. All Rights Reserved.

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