Aperiodic/Markets from First Principles
Markets from First Principles/Part 2, Pushing and paying

Lesson 4 of 10

What the candle leaves out

What does a five-minute candle throw away?

DMBy Daniel and Mark
11 min

So far: Every trade is labelled by its taker, the side that crossed the spread. Taker buys minus taker sells is the volume delta, the price follows it, and long runs of one side point to a single large order (lesson 3).

Most price charts don't show trades. They show candles, one for every five minutes, or every hour, or every day, each a box with a line through it.

One candle, three stories

A candle keeps five numbers from a stretch of trading: the first price, called the open; the highest and the lowest, the high and the low; the last, the close; and how much traded, the volume. The box runs from the open to the close, and the line through it reaches up to the high and down to the low.

Five numbers can't hold everything that happened. Here are three toy tapes from the board you know, each with 60 sacks traded. Play them, and watch the price, who was buying and selling, and the candle each one leaves.

Step 1 of 3

Pick a tape and play it. Then play the other two, and compare the candle each one leaves.

44464850the trades inside this candlehigh 51open 50close 45low 44the candlesacks in each trade

Nothing played yet. Every tape here leaves this candle: open 50, high 51, low 44, close 45, 60 sacks. Play this one to see the trades inside it.

All three leave the same candle: open 50, high 51, low 44, close 45, 60 sacks. Yet in the slide, sellers kept coming, mostly one sack at a time, and the price stepped down a coin at a time. The jump had ten quiet trades, then one seller who took 24 sacks at 44 in a single trade. And in the tug of war, buyers and sellers took turns, three sacks at a time, while the price kept turning on its way down. Someone reading only the candle can't tell which of these happened.

What the tape keeps

Measures built from the trades themselves keep some of what the candle throws away. An ƒuptick is a trade at a higher price than the trade before it, and a downtick one at a lower price; the rest print at an unchanged price. Counting them says how the price got from the open to the close: in a few steps or many, and how often it turned back.

An uptick isn't the same as a taker buy. A taker buy that fills at the same price as the trade before is a buy and an unchanged tick. The side says who crossed the spread; the tick says whether the price moved.

ƒTrade sizes sort trades by the money in each: here, small under 100 coins, medium up to 1,000, and large from 1,000. The catalog uses the same cuts in dollars. And ƒflow entropy says how mixed the taking was. Take the share of the money that went through taker buys, and the share through taker sells: the entropy is 0 when one side did all the taking and 0.69 when they split it evenly.

Read each tape three ways: by its ticks, by the size of its trades, and by taker buys against taker sells.

Step 2 of 3

Pick a tape, then read it three ways: how the price stepped, how big the trades were, and who did the taking.

44464850high 51open 50close 45low 44the candlesacks in each trade
Live: A steady slide, by tick
Upticks
2
Downticks
7
Unchanged
22
Trades
32

The price moved 9 times, a coin at a time, nearly always down.

The slide had 7 downticks and only 2 upticks. The tug of war had 9 downticks and 4 upticks: the same distance travelled, with more turning back. In the jump, one large trade carried 38% of the money. And sellers did 88% of the taking in the slide, so its flow entropy is 0.36, while the jump and the tug of war, with both sides active, come to 0.63 and 0.67.

A jump or a slide

The candle can't say whether the fall from 50 to 44 came in one trade or in many. The ƒjump ratio can. It compares two ways of adding up how much the price moved from trade to trade.

The first is realised variance: square every move and add them up. Squaring makes big moves count much more than small ones. The second is bipower variation, which multiplies each move by the move before it instead, and scales the sum by π/2 so the two agree when the price moves in steady small steps. A big move next to small ones, or next to a trade at an unchanged price, adds little or nothing to it. The jump ratio is the share of realised variance that bipower variation leaves unexplained, the jump part.

Step 3 of 3

Move more of the six-coin fall into a single trade. Watch bipower variation fall behind realised variance.

44464850realisedbipowerjump partsix one-coin moves
none
Live: Jump ratio 0.21
Moves
6
Biggest move
1 coin
Bipower ÷ realised
79%
Jump ratio
0.21

Six one-coin moves, mostly in pairs. Bipower variation finds a partner for most of them, so the jump ratio stays low.

With the fall spread over six one-coin moves, the jump ratio is 0.21. Put four coins of it into one trade and it is 0.92; all six at once and it is 1. The three tapes from before score 0.14 for the slide, 0.93 for the jump and 0.13 for the tug of war.

Even six small moves score above zero. Wherever a trade at an unchanged price sits next to a move, that move loses a partner in bipower variation, so part of it counts toward the jump part. On a real tape, where most trades print at the price before them, that happens all the time, so read the jump ratio against other bars of the same market rather than against zero.

The maths

With pi the price of trade i, each move is a log return:

r_i = ln(p_i / p_(i−1))

realised variance RV = Σ r_i²

bipower variation BV = (π/2) · Σ |r_i| · |r_(i−1)|

jump ratio = (RV − BV) / RV

With p the share of the money that went through taker buys:

flow entropy = −p · ln p − (1 − p) · ln(1 − p)

In real data

One real candle, and what was inside it

From 14:38 to 14:39 UTC on 11 June 2025, Binance's bitcoin perpetual left this candle: it opened at 110,169.3 dollars, which was also its high, fell as low as 109,863.9 and closed at 109,927.0, with 846.5 bitcoin traded, worth $93.1 million.

What the candle keeps

Open and high
110,169.3
Low
109,863.9
Close
109,927.0
Volume
846.5 BTC, $93.1M

What its 11,692 trades show

Trades11,692
Upticks1,597
Downticks3,355
At an unchanged price6,739
Money in large trades97.9%
Jump ratio0.42
Flow entropy0.58

Inside it were 11,692 trades. 3,355 were downticks and 1,597 upticks, and 6,739, more than half, printed at the same price as the trade before. None was small by the catalog's cut, since the smallest was worth $109.86; the 4,812 large trades carried 97.9% of the money.

The jump ratio was 0.42: a good part of the minute's movement came in moves that stood out from the trades around them. The flow entropy was 0.58, short of an even split's 0.69, because takers sold 73% of the money. Every minute's counts are in ƒUp / Down Tick Metrics, ƒTrade Size, ƒReturns & Volatility and ƒFlow Metrics.

Binance BTC-USDT perpetual, the minute from 14:38 to 14:39 UTC on 11 June 2025: the pipeline's outputs for all 11,692 trades, from Aperiodic's raw trades. Prices in US dollars.

What you learned

Candle
The open, high, low, close and volume of a stretch of trading. Many different tapes leave the same one.
Upticks and downticks
Trades priced above or below the trade before. They count the steps the price took, and how often it turned back.
Trade sizes
Trades sorted by the money in each, small, medium or large. One large trade can carry much of the volume.
Jump ratio
The share of realised variance that bipower variation leaves unexplained. Near 1 when one move made up most of the movement.
Flow entropy
How mixed the taking was between buyers and sellers: 0 when one side did it all, about 0.69 for an even split.

Check yourself

  1. 1. Two five-minute candles are identical. Were the trades inside them the same?

  2. 2. A price falls six coins, four of them in a single trade. Is its jump ratio nearer 0 or nearer 1?

  3. 3. Taker buys took half the money in a minute and taker sells the other half. What is its flow entropy?

Lesson 4 of 10.

Next

Lesson 5: Walking the book

What does it cost to buy more than the best ask holds?

Read lesson 5All lessons

Your progress stays in this browser. A free account keeps it on any device and lets you pull the data behind these lessons yourself: every metric for 2025 on BTC, ETH, SOL and 10 RWA perps, on an API key of your own. Get the data

Read every lesson on one page

11 min left
  1. What the candle leaves out
  2. One candle, three stories
  3. What the tape keeps
  4. A jump or a slide
  5. In real data
  6. What you learned
  7. Check yourself
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
  • Free data
  • Live markets dashboard
  • Every perp, A–Z
  • Global Liquidity
  • Unusual activity
  • Order Flow
  • L1 & L2
  • Derivatives
  • RWA
  • Live funding rates
  • Raw Data
Developers
  • Docs
  • API Docs
  • MCP Server
  • Notebooks
  • Integrations
  • For AI Agents
  • Atlas Security Master
  • TParquet
  • Binance OI history API
  • OKX history APIs
  • Pre-flight
  • Changelog
  • Roadmap
  • llms.txt
Learn
  • Markets from First Principles
  • Replays
  • Microstructure Guide
  • Architecture
  • Research Blog
  • FAQ
Compare
  • All vendors
  • Pricing compared
  • vs. Tardis
  • vs. CoinGlass
  • vs. Kaiko
  • vs. Amberdata
  • vs. Crypto Lake
  • vs. Laevitas
  • vs. Coinalyze
  • vs. Binance public data
  • vs. Hyperliquid data
  • Binance archive
  • Hyperliquid data
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