Anyone who trades BTC on a short horizon will eventually run into two kinds of data that move “faster than the candle”:
- Basis: the gap between the contract price and the spot index.
- Order-flow imbalance: which side, bids or offers, is larger or more urgent.
They are often described as tools for “seeing money flow early,” especially on a very short interval such as 5 minutes. This article first makes the concepts and formulas clear, then tests a set of real data: can they actually predict BTC’s next 5-minute direction?
The data come from OKX’s public API and were collected on 23 November 2026 (UTC). The instruments are the BTC-USDT perpetual and BTC-USD dated futures. This is an explanatory article. It is not investment advice.
1. Basis: how much richer the contract is than spot
Basis = contract price − spot index price. A contract trading above spot is in “contango” (a premium); one trading below is in “backwardation” (a discount).
In crypto, basis is commonly looked at in three ways:
| Measure | Formula | This snapshot |
|---|---|---|
| Perpetual premium | (mark price ÷ index price − 1) | Mark 60,849.4, index 60,880.2, premium about −0.05% (−5.06 basis points) |
| Funding rate | Settled by the exchange every 8 hours | Latest 0.0015%; average of the last 100 periods 0.0053%; 82% of periods were positive; annualized about 5.78% |
| Annualized basis on dated futures | Basis rate × 365 ÷ days remaining | See the chart below, about 4.4%–5.6% |
The full term structure of BTC-USD dated futures, measured against an index of $60,819.9:
| Expiry | Days remaining | Contract price | Basis rate | Annualized basis |
|---|---|---|---|---|
| 2026-11-27 | 4.2 | 60,519.0 | −0.50% | −42.96% (near expiry; distorted) |
| 2026-12-25 | 32.2 | 61,056.7 | +0.39% | +4.41% |
| 2027-03-26 | 123.2 | 61,854.7 | +1.70% | +5.04% |
| 2027-06-25 | 214.2 | 62,404.9 | +2.61% | +4.44% |
| 2027-09-24 | 305.2 | 63,294.9 | +4.07% | +4.87% |
| 2027-12-31 | 403.2 | 64,607.2 | +6.23% | +5.64% |
How to read the table:
- Longer-dated contracts are generally in premium, annualizing to 4%–6%. That is roughly the funding cost the market is willing to pay to “hold BTC in the future,” and it sits at the same level as funding annualized at about 5.8%, which means there is no obvious cash-and-carry gap between the futures and spot markets.
- The contract with 4 days left, annualizing to −43%, should not be taken at face value. When little time remains, a small price gap divided by a very short number of days is blown up into an exaggerated annualized figure.
- Basis answers “sentiment and funding cost,” not “the next candle.” In a bull market, basis and funding often run high, which points to a crowded long side; in a bear market or a panic they can flip to a discount. Basis is useful for judging the state of the market, and it usually changes over days and weeks.
2. Order-book imbalance: which side of the book is thicker
Order-book imbalance (OBI) = (bid size − ask size) ÷ (bid size + ask size)
The value sits between −1 and +1. A positive number means the bid side is thicker; a negative number means the ask side is thicker. In a BTC-USDT perpetual book snapshot at 2026-11-23 03:07:41 (UTC), the best bid was 60,851.1 and the best ask was 60,851.2, a $0.1 spread:
| Depth | Bids (contracts) | Asks (contracts) | Imbalance | Price range covered |
|---|---|---|---|---|
| Top 5 levels | 44 | 1,342 | −0.94 | Bid $0.7 / ask $0.4 |
| Top 20 levels | 101 | 1,833 | −0.90 | Bid $2.8 / ask $4.3 |
| Top 100 levels | 1,971 | 5,745 | −0.49 | Bid $13.2 / ask $15.7 |
(Each contract is 0.01 BTC.)
The snapshot looks like “extremely heavy sell pressure,” but three caveats matter:
- It only covers a little more than ten dollars around the best prices. Relative to a $60,000 price, that is a range of about 0.02%. A large order that steps out a few levels can change the imbalance completely.
- Quotes can be cancelled at any time. A large size on the book will not necessarily trade; it may also be there only to influence how others read the market.
- The top 5 levels and the top 100 levels already differ by about half. Looking at a single depth can easily produce an overconfident conclusion.
So order-book imbalance should generally be watched continuously, compared across several depths, and read together with actual trades — not judged from a single snapshot.
3. Taker buy/sell imbalance: the direction that actually traded
More “real” than resting quotes is aggressive flow: the side that lifts or hits the other side’s quotes with a market order.
Taker buy/sell imbalance = (taker buy volume − taker sell volume) ÷ (taker buy volume + taker sell volume)
At the time of collection, the most recent 500 perpetual trades covered about 21 seconds: 618 contracts were taker buys and 977 were taker sells, an imbalance of about −0.23, meaning sellers were more urgent in that moment.
4. The test: can it predict the next 5-minute candle?
We take 99 BTC-USDT perpetual 5-minute candles from 2026-11-22 18:50 through 11-23 03:05 (UTC), compute the taker imbalance during each candle, and then look at how it relates to the return of the same candle and the next candle:
| Group (imbalance split into thirds, low to high) | Average imbalance | Average same-candle return | Average next-candle return |
|---|---|---|---|
| Taker sells dominate | −0.314 | −8.3 bps | +3.4 bps |
| Roughly balanced | −0.003 | −0.4 bps | −3.0 bps |
| Taker buys dominate | +0.360 | +10.0 bps | +0.2 bps |
- Versus the same candle: correlation 0.44. Periods with more taker buying saw price rise; periods with more taker selling saw price fall. That matches intuition: price is being pushed by aggressive trades in the first place.
- Versus the next candle: correlation −0.10, and the direction agrees only 45.5% of the time. In the “taker sells dominate” group, the next candle actually rose 3.4 basis points on average, a mild mean-reversion flavour, but the size is far smaller than fees.
In one sentence: order flow explains “why it just moved” very well, and does a poor job of telling you in advance “how the next 5 minutes will go.” The reason is that the BTC derivatives market is full of market makers and high-frequency traders. A short-lived imbalance that could be exploited is often absorbed within a few seconds to a few tens of seconds.
A trap you have to watch for: a shifted timestamp
When we first ran this test, we treated the timestamp as the “end” of the bar. The accuracy of “imbalance predicts the next candle” came out as high as 69%. After checking, that was only the same candle being treated as the next one: shift the data by one bar, and you manufacture a forecast signal that looks strong.
That is exactly where many “high win-rate order-flow strategies” go wrong. When you validate any indicator, confirm that the data used to make the forecast already existed at the moment of the forecast.
5. How these data should be used
- Basis and funding: judge the state of the market. Persistently high readings point to crowded longs and a greater risk of long liquidations; a flip to a discount points to fearful sentiment. These are best watched on a daily horizon.
- Order-book imbalance: read it together with trades. Watch whether large size near a key level actually gets taken, not the resting size itself.
- Taker imbalance: confirm the quality of a breakout. If taker buying clearly expands as price breaks out, the breakout is more believable; a breakout with no trade confirmation is more likely to fail. For volume-price confirmation at the candle level, see How to read crypto volume.
- Do not use it on its own as a 5-minute direction forecast. In our test it had almost no predictive power for the next candle, and P&L still has to net out fees and slippage. To see a model’s combined short-horizon view, compare it with BTC 15-minute prediction.
Coinpred’s Signal Lab reads the order book, funding, a liquidation map, and other data together, then blends them with trend, momentum, and other algorithms to output a direction and a confidence score. For the broader framework of short-horizon calls, start with How to predict whether Bitcoin goes up or down.
FAQ
How are perpetual basis and the funding rate related?
Perpetuals have no expiry, so the exchange uses the funding rate to pull the contract price back toward spot: when the contract is richer than spot, longs pay shorts; when it is cheaper, the payment flips. Funding can therefore be seen as the “basis cost” of a perpetual. In this dataset, funding annualizes to about 5.8%, roughly in line with the 4%–6% annualized basis on dated futures.
Can order-flow imbalance predict BTC’s 5-minute move?
Our test shows that taker imbalance has a correlation of about 0.44 with the same 5-minute candle, and only −0.10 with the next one, with the direction agreeing 45.5% of the time. It is better used to explain and confirm a move, not on its own to forecast the next 5 minutes.
If there is a lot of size on one side of the book, will price go that way?
Not necessarily. Quotes can be cancelled at any time, and the book only covers a very narrow range around the current price. In this snapshot, imbalance in the top 5 levels was −0.94, and in the top 100 levels it became −0.49. Compare several depths and read them with actual trades.
How is annualized basis on dated futures calculated?
Annualized basis = (contract price ÷ index price − 1) × 365 ÷ days remaining. For example, the contract expiring on 2027-03-26 was priced at 61,854.7 against an index of 60,819.9, a basis rate of about 1.70%, with 123.2 days left, annualizing to about 5.04%. For contracts close to expiry, the annualized number is badly inflated and should not be used as a reference.
Data and notes
- Source: OKX public API, including BTC-USDT perpetual mark, index, funding (the last 100 periods, 2026-10-21 through 11-23), a 100-level book, the most recent 500 trades, 5-minute taker volume, and BTC-USD dated futures prices. Collected on 2026-11-23 (UTC).
- The book and trades are a single-moment, single-exchange snapshot, used only to illustrate the calculation. The 5-minute test sample is 99 candles, which is small; the conclusion only represents this window.
- This article is for learning only and is not investment advice. Derivatives trading is extremely risky and can result in the loss of your entire principal.
