What Does Buy or Sell Mean on the OKX Spot Trade Feed?

 / 
OKX
 / 
9

Every spot trade has a buyer and a seller. On the OKX public trades feed, a BTC-USDT row marked sell tells you which side took liquidity: the incoming seller traded against a resting buy order. The size tells you how much BTC changed hands. These two fields let you check a claim such as “most of the trades were buys” without confusing trade count with volume.

Read five consecutive BTC-USDT prints

The following five records were captured from the OKX public recent-trades feed. The live link rolls forward. The IDs below identify the saved example, shown oldest first. For this spot pair, the size is in BTC and the price is in USDT per BTC.

Trade IDTaker sidePrice (USDT)Size (BTC)
1096827810Buy50,494.90.00024896
1096827811Buy50,495.70.00001994
1096827812Buy50,496.50.00001501
1096827813Sell50,497.40.00000001
1096827814Sell50,497.40.00018999

Make two checks before calling this buying pressure

  1. Count the prints. Three of five were buy-initiated, so the share by count is 60%. The two sell prints have the same price and millisecond timestamp, but different trade IDs. Removing one as a duplicate would lose a real trade.
  2. Add the BTC on each side. The buys sum to 0.00028391 BTC and the sells to 0.00019000 BTC. The buyer-initiated share by size is 0.00028391 ÷ 0.00047391, about 59.91%. The 0.00000001 BTC print counts as one trade yet contributes only one satoshi to the size total.

What a sell at a higher price means

The first sell in this sample printed at 50,497.4, above the earlier buy at 50,496.5. A higher price than the previous print therefore cannot tell you which side initiated the trade. Read the reported side. These five trades cover less than half a second on one spot pair. They do not identify the owners of the accounts or show how much liquidity remained on the book.

To repeat the check, save the feed once, keep the instrument ID, and group that same set of trade IDs by side for both calculations. Derivatives use different size units. Check the instrument type before reusing a spot spreadsheet. OKX public trades field definitions.

OKX Exchange
A leading global cryptocurrency platform,suitable for both beginners and experienced traders.
New user benefit: 20% off trading fees upon registration!!