Use Cases
Use average and instantaneous spread metrics to quantify market-making costs and estimate fill quality across instruments.
Measure aggregate bid and ask depth at multiple levels to understand resilience and liquidity beyond the top-of-book.
Detect directional pressure from top-of-book imbalance dynamics and build predictive features from multi-level imbalance ratios that capture it more robustly.
Detect large resting orders by monitoring depth anomalies and imbalance dynamics across book levels over time.
Quantify how quickly liquidity replenishes after consumption by analyzing depth averages and their variability.
Identify quote stuffing patterns and measure market-maker activity intensity using update frequency metrics.
Compare execution fills against bid/ask VWAP and TWAP to measure adverse selection in your order flow.
Combine weighted mid-price, imbalance averages, and bid/ask depth at 5, 10, 20, 25 levels into composite signals for HFT, market-making, and ML-based alpha strategies.
Get started in minutes
pip install aperiodicfrom datetime import date
from aperiodic import get_metrics
df = get_metrics(
api_key="your-api-key",
metric="flow",
timestamp="exchange",
interval="1h",
exchange="binance-futures",
symbol="perpetual-BTC-USDT:USDT",
start_date=date(2024, 1, 1),
end_date=date(2024, 1, 31),
)
print(df.head())Get access to our full catalog of market microstructure data.