Aperiodic
Metrics
MarketsLive
DocsPricing
Get Started
/

Get started

  • Overview
  • History over REST
  • Live over WebSocket

Datasets

Each with its history over REST and its live channel

  • Flow Metrics
  • Trade Size
    • Fields
    • History over REST
    • Live over WebSocket
  • Price Range & Distribution
  • Impact Metrics
  • Up / Down Tick Metrics
  • Trade Run Structure
  • Returns & Volatility
  • Slippage

Reference

  • MetadataREST
  • Raw dataREST

Download the spec

OpenAPIRESTAsyncAPIWS
Trade Size
Datasets · Trades

Trade Size

Trade notional split into small (< $100), medium ($100–$1,000), and large (≥ $1,000) segments, with summary statistics for individual trade sizes. The same rows over both transports, under the same names.

History over RESTREST

Endpoint
GET /api/v1/data/trade_size
Returns
Parquet files for a date range
Plan
Pro and above
Request, parameters and Try it ↓

Live over WebSocketWebSocket

Channel
trade_size.<exchange>.<interval>
Sends
Each row as its bar closes
Plan
Pro and above; 15s and 30s on Institutional
Channel, intervals and code ↓

Exchanges: binance-futures, okx-perps, hyperliquid-perps · Intervals: 15s 30s 1m 5m 15m 30m 1h 4h 1d · Chart, sample rows and coverage in the catalog

Fields

24 fields, plus time

Every row carries time, the interval's start in milliseconds since the Unix epoch (UTC), and these fields. They are the Parquet columns over REST and the keys of data in a live frame.

FieldNameDescription
small_order_volumeSmall Order VolumeTotal traded notional from small trades under $100
small_order_countSmall Order CountNumber of trades under $100
medium_order_volumeMedium Order VolumeTotal traded notional from medium trades from $100 to under $1,000
medium_order_countMedium Order CountNumber of trades from $100 to under $1,000
large_order_volumeLarge Order VolumeTotal traded notional from large trades of at least $1,000
large_order_countLarge Order CountNumber of trades of at least $1,000
volumeTotal VolumeTotal traded notional in the interval
n_tradesTrade CountNumber of trades in the interval
small_order_percentageSmall Order %Ratio of small-trade notional to total traded notional
medium_order_percentageMedium Order %Ratio of medium-trade notional to total traded notional
large_order_percentageLarge Order %Ratio of large-trade notional to total traded notional
small_order_count_percentageSmall Order Count %Share of trades that were small trades
medium_order_count_percentageMedium Order Count %Share of trades that were medium trades
large_order_count_percentageLarge Order Count %Share of trades that were large trades
trade_amount_meanMean Trade SizeAverage trade notional
trade_amount_medianMedian Trade SizeMedian trade notional
trade_amount_stdTrade Size Std DevStandard deviation of trade notional
trade_amount_varianceTrade Size VarianceVariance of trade notional
trade_amount_skewnessTrade Size SkewnessSkewness of the trade-notional distribution
trade_amount_kurtosisTrade Size KurtosisKurtosis of the trade-notional distribution
trade_amount_minMin Trade SizeSmallest trade notional in the interval
trade_amount_maxMax Trade SizeLargest trade notional in the interval
trade_amount_range_ratioTrade Size Range RatioLargest trade notional divided by smallest trade notional
trade_amount_cvTrade Size CVCoefficient of variation of trade notional

History over REST

Parameters, files and errors for every dataset

One request returns download URLs for the Parquet files that cover your date range: a file per month for older history, a file per day from 2026-08-01. Request them again when they expire.

# 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 trade_size --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"

GET/api/v1/data/trade_size

Parameters

ParameterValuesMeaning
timestampquery · requiredexchangetrueTimestamp source. 'exchange' uses the exchange-reported timestamp, 'true' uses actual arrival time at our servers.
intervalquery · required15s30s1m5m15m30m1h4h1dAggregation time interval for the data. Sub-minute intervals (15s, 30s) require an Institutional plan.
exchangequery · requiredbinance-futuresokx-perpshyperliquid-perpsSource exchange for the data.
symbolquery · requiredstringTrading pair symbol in the format of Atlas' universal symbology: https://github.com/aperiodic-io/atlas
start_datequery · requireddateStart date for the data range (YYYY-MM-DD format). A metric series starts on the first day of the raw series it is computed from (see /metadata/raw); raw trades and quotes start binance-futures from 2020-01-01, okx-perps from 2019-09-01, hyperliquid-perps from 2025-01-01. Earlier days return no files. How far back you can go depends on the plan: 5 years on Pro, full history on Prime, Prime + Raw and Institutional. An earlier start_date than the plan reaches returns 403.
end_datequery · requireddateEnd date for the data range (YYYY-MM-DD format). Must be greater than or equal to start_date.

Responses

200 response
{
  "files": [
    {
      "year": 2026,
      "month": 6,
      "url": "https://ohlcv.aperiodic.io/binance-futures/1h/BTCUSDT/2026-06.parquet?X-Amz-Expires=300&..."
    },
    {
      "year": 2026,
      "month": 7,
      "url": "https://ohlcv.aperiodic.io/binance-futures/1h/BTCUSDT/2026-07.parquet?X-Amz-Expires=300&..."
    },
    {
      "year": 2026,
      "month": 8,
      "day": 1,
      "url": "https://ohlcv.aperiodic.io/binance-futures/1h/BTCUSDT/2026-08-01.parquet?X-Amz-Expires=300&..."
    },
    {
      "year": 2026,
      "month": 8,
      "day": 2,
      "url": "https://ohlcv.aperiodic.io/binance-futures/1h/BTCUSDT/2026-08-02.parquet?X-Amz-Expires=300&..."
    }
  ]
}
StatusMeaning
200Successful response with download URLs for every existing file covering the range from the series' published start — one per month before 2026-08-01, one per day from 2026-08-01 onwards
400Bad request - missing or invalid parameters
401Unauthorized - missing or invalid API key
403Forbidden - the subscription does not cover this request
404Unknown dataset
500Server error - failed to resolve the series start or generate download URLs

Try it

Prefilled with the shared DEMO-KEY and a free preview slice — send the request to see live data, no account required.

Suggestions shown — any valid value accepted
Suggestions shown — any valid value accepted
Suggestions shown — any valid value accepted
Authentication
GET/api/v1/data/preview/trade_size?timestamp=exchange&interval=5m&exchange=binance-futures&symbol=perpetual-BTC-USDT%3AUSDT&start_date=2025-05-01&end_date=2025-05-31
Response will appear here

Live over WebSocket

Connecting, replay and limits for every channel

Subscribe to trade_size.binance-futures.1m, or any exchange and interval below, and each row arrives as its bar closes. After a reconnect, add since to the subscribe to get the bars you missed first (replay).

Exchanges
binance-futures okx-perps hyperliquid-perps
Intervals
15s 30s 1m 5m 15m 30m 1h 4h 1d
pip install "aperiodic[stream]"
pypi ↗
import os

from aperiodic import stream

for message in stream(
    api_key=os.environ["APERIODIC_API_KEY"],
    dataset="trade_size",
    exchange="binance-futures",
    interval="1m",
    symbols=["perpetual-BTC-USDT:USDT"],  # omit for every symbol on your plan
):
    print(message.channel, message.snapshot, message.data)
Each row
{"channel":"trade_size.binance-futures.1m","data":{"time":…,"small_order_volume":…,"small_order_count":…,…}}

Your key is on Live Streams once you are on a plan that streams.

PreviousFlow MetricsNextPrice Range & Distribution
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
  • 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
  • Team
  • 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