DYORLearn hubBlog
Home / Learn hub / Order book

COIN B&A DIFF SMART: demand and supply at different depths

7 min · DYOR Education
FreeCOIN · Order book
Goal

Compare demand and supply at different distances from price: what to take on the left, what on the right, and how to combine them.

COIN B&A DIFF SMART on BTC/USDT, default setup: BID 1.5% − ASK 1.5%
COIN B&A DIFF SMART on BTC/USDT, default setup: BID 1.5% − ASK 1.5%
What it shows

Your own expression built from the two sides of the order book. You put it together from three parts:

  1. what to take on the left — ASK, BID or DIFF (bid − ask), and at what depth;
  2. the operation — subtract or divide;
  3. what to take on the right — side and depth.
  • Default: bids at 1.5% minus asks at 1.5%, in millions of dollars.
  • One line, colored by sign.
  • With division the result is taken as an absolute value: the line is always positive and the color doesn't change.
bidsasksleft part: bids 1.5%$60Mright part: asks 8%$120MBID 1.5% − ASK 8% = 60 − 120 = −60three parts: side and depth on the left · operation · side and depth on the right
Any sides and depths. Here it's near bids against far asks: demand at price is smaller than supply further out.
What it's for

Compare demand and supply at different distances from price. B&A and DIFF can't do this: there both sides are taken at the same depth.

For example.

  • Setup BID 1.5% − ASK 8%, value above zero.
  • There are more buy orders right next to price, within 1.5%, than sell orders in the whole band up to +8%.
  • That's an anomaly: an 8%-wide band usually holds several times more money than a 1.5% band.
  • To push price down 1.5% you have to sell more than you'd have to buy to lift it 8%. The same money moves price up more than down.

The default setup is BID 1.5% − ASK 1.5%. Both sides at the same depth, which is the same as COIN B&A DIFF at 1.5%. A division example: BID 3% ÷ ASK 8% = 0.6 — near bids are 60% of far asks. With division the line is always positive.

Where to find it
Indicators›COIN›Order book›COIN B&A DIFF SMART
Settings
FieldOptionsDefaultWhat it changes
MarketSPOT
Futures
SPOTWhose order book to count: the spot or the futures market.
SPOT or FUTURES in the pane legend.
- Want orders from people buying the coin itself — SPOT.
- Want orders from people trading with leverage — FUTURES.
On Coinbase, Hyperliquid and Deribit the switch does nothing: Coinbase is spot only, Hyperliquid and Deribit are futures only, the value is set by the exchange itself.
Ask Bid Type (left)ASK
BID
DIFF
BIDWhat to take on the left: asks, bids or their difference.
- Want to compare the skew of one depth with the skew of another — DIFF on both sides.
Percentage (left)1.5 · 3 · 5 · 8 · 15 · 30 · 60%1.5%Depth for the left side.
Near depths (1.5–5%) — orders right at price, they get filled first.
Far depths (15–60%) — how much money is waiting in the whole band.
Operation−
/
−Subtract the right part from the left, or divide.
With division the result is an absolute value — always positive.
- Want to know how many dollars bigger one side is — “−”.
- Want how many times, regardless of coin size — “/”.
Ask Bid Type (right)ASK
BID
DIFF
ASKWhat to take on the right: asks, bids or their difference.
Percentage (right)1.5 · 3 · 5 · 8 · 15 · 30 · 60%1.5%Depth for the right side.
BTC pairsALL
USDT only
ALLWorks only on Binance and only for BTC.
ALL or USDT ONLY in the legend.
ALL — the sum of three pairs: BTCUSDT + BTCUSDC + BTCFDUSD.
USDT only — only the BTCUSDT pair.
For other Binance coins the data is always for the USDT pair; the parameter changes nothing.
Does nothing on Coinbase and Hyperliquid: Bitcoin has one pair there.
On Deribit too: the two BTC contracts are not added together.
- Want all of Binance's Bitcoin — ALL.
- Want to compare with a source that counts only BTCUSDT — USDT ONLY.
ExchangeChart
Binance
Coinbase
Hyperliquid
Deribit
ChartWhich exchange to take data from: Chart — the same one as the chart.
Binance — spot and futures, USDT pairs.
Coinbase — spot only, USD pairs.

Hyperliquid and Deribit — perpetual futures only, USDC pairs.
The list holds only exchanges where the coin trades.
Without a subscription there is no field.
- Want to compare one coin across exchanges — add the indicator several times and pick a different exchange in each.
In alerts

Metric COIN B&A DIFF SMART. Condition fields:

ExchangeMarket TypeCoinBTC pairsTimeframeAsk/Bid/Diff Type (left)Delta Percentage (left)Operation TypeAsk/Bid/Diff Type (right)Delta Percentage (right)

The same six settings as on the chart. “BTC pairs” appears only when the coin is BTC.

TOTAL

TOTAL B&A DIFF SMART — the same summed over the whole market. The “Total Type” field is added.

Try it yourself
  1. Turn on COIN B&A DIFF SMART. In the inputs, build: BID 1.5% − ASK 8%.
  2. Check the sign of the line over the last 24 hours.
What you should get. You've built your own expression. Minus — supply further out outweighs demand at price.
Takeaway

DIFF SMART compares the two sides of the order book at different depths. You choose what to take on the left and right (ASK, BID or DIFF), at what depth, and the operation: subtract or divide. Demand at price bigger than supply far above it is an anomaly: the same money moves price up more than down. The alert has the same six fields.

Quick check

Setup BID 3% ÷ ASK 8% gives…

Show answer

Correct answer: Bids within 3% divided by asks within 8%

← Previous lesson Next lesson →
See these concepts live on real Binance data — the DYOR workspace is free to start.
Open DYOR Platform