Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
timestamp_ms
int64
bid_price
float64
bid_qty
float64
ask_price
float64
ask_qty
float64
1,777,474,581,640
76,592.5
8.551
76,592.6
1.936
1,777,474,581,734
76,592.5
8.551
76,592.6
1.939
1,777,474,581,736
76,592.5
8.551
76,592.6
1.267
1,777,474,581,758
76,592.5
8.551
76,592.6
1.263
1,777,474,581,767
76,592.5
8.561
76,592.6
1.263
1,777,474,581,767
76,592.5
8.562
76,592.6
1.263
1,777,474,581,868
76,592.5
8.817
76,592.6
1.263
1,777,474,581,870
76,592.5
8.817
76,592.6
0.244
1,777,474,581,873
76,592.5
11.086
76,592.6
0.244
1,777,474,581,874
76,592.5
11.087
76,592.6
0.244
1,777,474,581,875
76,592.5
11.152
76,592.6
0.244
1,777,474,581,875
76,592.5
11.153
76,592.6
0.244
1,777,474,581,875
76,592.5
11.998
76,592.6
0.244
1,777,474,581,875
76,592.5
12.239
76,592.6
0.244
1,777,474,581,876
76,592.5
12.24
76,592.6
0.244
1,777,474,581,877
76,592.5
12.239
76,592.6
0.244
1,777,474,581,879
76,592.5
11.998
76,592.6
0.244
1,777,474,581,879
76,592.5
12.239
76,592.6
0.244
1,777,474,581,879
76,592.5
11.394
76,592.6
0.244
1,777,474,581,880
76,592.5
12.239
76,592.6
0.244
1,777,474,581,881
76,592.5
12.238
76,592.6
0.244
1,777,474,581,882
76,592.5
12.239
76,592.6
0.244
1,777,474,581,884
76,592.5
11.394
76,592.6
0.244
1,777,474,581,884
76,592.5
11.153
76,592.6
0.244
1,777,474,581,884
76,592.5
12.003
76,592.6
0.244
1,777,474,581,884
76,592.5
12.239
76,592.6
0.244
1,777,474,581,930
76,592.5
12.239
76,592.6
0.241
1,777,474,581,937
76,592.5
11.389
76,592.6
0.241
1,777,474,581,937
76,592.5
11.153
76,592.6
0.241
1,777,474,581,956
76,592.5
11.153
76,592.6
0.123
1,777,474,581,958
76,592.5
11.153
76,592.6
0.124
1,777,474,581,958
76,592.5
13.422
76,592.6
0.124
1,777,474,581,958
76,592.5
14.281
76,592.6
0.124
1,777,474,581,958
76,592.5
14.508
76,592.6
0.124
1,777,474,581,960
76,592.5
14.509
76,592.6
0.124
1,777,474,581,961
76,592.5
14.51
76,592.6
0.124
1,777,474,581,963
76,592.5
14.283
76,592.6
0.124
1,777,474,581,963
76,592.5
14.51
76,592.6
0.124
1,777,474,581,963
76,592.5
13.651
76,592.6
0.124
1,777,474,581,963
76,592.5
14.51
76,592.6
0.124
1,777,474,581,964
76,592.5
14.512
76,592.6
0.124
1,777,474,581,966
76,592.5
14.285
76,592.6
0.124
1,777,474,581,966
76,592.5
14.512
76,592.6
0.124
1,777,474,581,966
76,592.5
13.653
76,592.6
0.124
1,777,474,581,966
76,592.5
14.504
76,592.6
0.124
1,777,474,581,966
76,592.5
14.512
76,592.6
0.124
1,777,474,581,969
76,592.5
14.511
76,592.6
0.124
1,777,474,581,979
76,595.6
1.045
76,595.7
1.143
1,777,474,581,979
76,595.6
1.082
76,595.7
1.143
1,777,474,581,979
76,595.6
1.938
76,595.7
1.143
1,777,474,581,979
76,595.6
2.168
76,595.7
1.143
1,777,474,581,979
76,595.6
2.203
76,595.7
1.143
1,777,474,581,979
76,595.6
2.274
76,595.7
1.143
1,777,474,581,979
76,595.6
2.307
76,595.7
1.143
1,777,474,581,979
76,595.6
2.324
76,595.7
1.143
1,777,474,581,979
76,595.6
2.341
76,595.7
1.143
1,777,474,581,979
76,595.6
2.904
76,595.7
1.143
1,777,474,581,979
76,595.6
3.552
76,595.7
1.143
1,777,474,581,979
76,595.6
4.336
76,595.7
1.143
1,777,474,581,980
76,595.6
4.336
76,595.7
1.142
1,777,474,581,980
76,595.6
4.338
76,595.7
1.142
1,777,474,581,980
76,595.6
4.371
76,595.7
1.142
1,777,474,581,980
76,595.6
5.018
76,595.7
1.142
1,777,474,581,980
76,595.6
5.053
76,595.7
1.142
1,777,474,581,980
76,595.6
5.669
76,595.7
1.142
1,777,474,581,980
76,595.6
5.677
76,595.7
1.142
1,777,474,581,980
76,595.6
5.695
76,595.7
1.142
1,777,474,581,980
76,595.6
5.703
76,595.7
1.142
1,777,474,581,980
76,595.6
5.719
76,595.7
1.142
1,777,474,581,980
76,595.6
5.838
76,595.7
1.142
1,777,474,581,980
76,595.6
5.908
76,595.7
1.142
1,777,474,581,980
76,595.6
6.048
76,595.7
1.142
1,777,474,581,980
76,595.6
6.118
76,595.7
1.142
1,777,474,581,980
76,595.6
6.127
76,595.7
1.142
1,777,474,581,980
76,595.6
6.144
76,595.7
1.142
1,777,474,581,980
76,595.6
7.749
76,595.7
1.142
1,777,474,581,980
76,595.6
7.799
76,595.7
1.142
1,777,474,581,980
76,595.6
8.135
76,595.7
1.142
1,777,474,581,980
76,595.6
8.143
76,595.7
1.142
1,777,474,581,980
76,595.6
8.271
76,595.7
1.142
1,777,474,581,980
76,595.6
8.39
76,595.7
1.142
1,777,474,581,980
76,595.6
8.632
76,595.7
1.142
1,777,474,581,980
76,595.6
8.968
76,595.7
1.142
1,777,474,581,981
76,595.6
9.087
76,595.7
1.142
1,777,474,581,981
76,595.6
9.329
76,595.7
1.142
1,777,474,581,981
76,595.6
9.665
76,595.7
1.142
1,777,474,581,981
76,595.6
10.001
76,595.7
1.142
1,777,474,581,981
76,595.6
10.002
76,595.7
1.142
1,777,474,581,981
76,595.6
10.13
76,595.7
1.142
1,777,474,581,981
76,595.6
10.372
76,595.7
1.142
1,777,474,581,981
76,595.6
10.708
76,595.7
1.142
1,777,474,581,981
76,595.6
11.044
76,595.7
1.142
1,777,474,581,981
76,595.6
11.38
76,595.7
1.142
1,777,474,581,981
76,595.6
11.716
76,595.7
1.142
1,777,474,581,981
76,595.6
11.919
76,595.7
1.142
1,777,474,581,981
76,595.6
12.038
76,595.7
1.142
1,777,474,581,981
76,595.6
12.157
76,595.7
1.142
1,777,474,581,981
76,595.6
12.493
76,595.7
1.142
1,777,474,581,981
76,595.6
12.696
76,595.7
1.142
1,777,474,581,981
76,595.6
12.899
76,595.7
1.142
End of preview. Expand in Data Studio

BTCUSDT Microbar v2

Sub-candle microstructure data for Binance USD-M Futures BTCUSDT, collected continuously over six WebSocket streams. Successor to Torch-Trade/btcusdt-microbar.

A standard OHLCV candle compresses thousands of trades into 6 numbers. This dataset preserves the raw event-level data — every individual trade, every best bid/ask change, every depth snapshot — so the underlying microstructure features can be reconstructed at any timeframe.

Why v2?

In April 2026 we discovered that the v1 collector had a silent routing bug. Binance USD-M Futures split market data across two WebSocket routing paths (/public and /market) — the legacy unified endpoint silently delivered streams that mapped to /public and dropped the rest without error.

Concretely, in v1:

Stream v1 status v2 status
trade working working
bookTicker working working
depth5@500ms partial (missing during routing migration) working
markPrice broken (subscriptions silently dropped) fixed
miniTicker broken (subscriptions silently dropped) fixed
forceOrder broken (subscriptions silently dropped) fixed

If you only need trades and book_ticks, the v1 dataset remains usable. If you need funding rate, mark price, 24h stats, liquidations, or full depth — use v2. We renamed the repo (rather than appending) so consumers get a clean discontinuity instead of a silent quality jump.

The fix is in binance-microbar collector commit f88a52a (group streams by routing path and open one WebSocket per group).

Layout

data/btcusdt/
├── trades/<YYYY-MM-DD>/<HHMMSS>.parquet          # individual trades
├── book_ticks/<YYYY-MM-DD>/<HHMMSS>.parquet      # best bid/ask updates
├── depth/<YYYY-MM-DD>/<HHMMSS>.parquet           # top-5 order book snapshots
├── liquidations/<YYYY-MM-DD>/<HHMMSS>.parquet    # forced liquidations
├── mark_price/<YYYY-MM-DD>/<HHMMSS>.parquet      # mark price + funding
└── mini_ticker/<YYYY-MM-DD>/<HHMMSS>.parquet     # 24h rolling stats

Files are flushed to disk every 60 seconds. Each row carries a timestamp_ms (exchange clock, UTC) which is the only safe key for joins — wall-clock arrival times are not preserved.

Schemas

trades/

column type description
timestamp_ms int64 exchange trade time, ms since epoch UTC
price float64 trade price (USDT)
quantity float64 trade quantity (BTC)
is_buyer_maker bool True = aggressive sell, False = aggressive buy

Volume: ~50 trades/sec → ~4M rows/day.

book_ticks/

column type description
timestamp_ms int64 exchange event time
bid_price float64 best bid price
bid_qty float64 best bid quantity
ask_price float64 best ask price
ask_qty float64 best ask quantity

Volume: ~100 updates/sec → ~8M rows/day.

depth/

Top 5 order book levels. Columns: timestamp_ms, bid_price_0..4, bid_qty_0..4, ask_price_0..4, ask_qty_0..4. Snapshots arrive every 500 ms → ~170k rows/day.

liquidations/

column type description
timestamp_ms int64 liquidation time
price float64 average fill price
quantity float64 liquidated size
side string "BUY" = short squeezed (bullish), "SELL" = long liquidated (bearish)

Sparse — bursts during volatile moves.

mark_price/

Updates every 3 seconds. Columns: timestamp_ms, mark_price, index_price, funding_rate, next_funding_time_ms. Funding rate is the most predictive macro signal in crypto futures.

mini_ticker/

Updates every second. Columns: timestamp_ms, open_24h, high_24h, low_24h, close, volume_24h, quote_volume_24h. Distance from 24h high/low is a support/resistance signal.

Loading

from huggingface_hub import snapshot_download
import pandas as pd
from pathlib import Path

local = snapshot_download(
    "Torch-Trade/btcusdt-microbar-v2",
    repo_type="dataset",
    allow_patterns=["trades/2026-04-29/*.parquet"],
)

trades = pd.concat(
    pd.read_parquet(f) for f in sorted(Path(local, "trades/2026-04-29").glob("*.parquet"))
)

To compute aggregated microstructure features over arbitrary timeframes, use the binance-microbar library — examples/build_feature_dataset.py rebuilds 54-feature ML-ready datasets directly from these raw streams.

Collection

  • Source: Binance USD-M Futures public WebSocket streams (no auth required)
  • Collector: binance-microbar at commit f88a52a or later
  • Host: continuous collection on a Raspberry Pi 5 (colony1), uploads daily at 03:00 UTC
  • Coverage: starts 2026-04-29; the immediate prior period (2026-04-28 → 2026-04-29) is missing because the collector was offline for the routing-fix deployment

License

MIT. Market data is sourced from Binance's public WebSocket streams and is provided as-is. No financial advice; not affiliated with Binance.

Downloads last month
66