Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
timestamp
timestamp[ms]date
2023-05-16 11:49:00
2024-03-31 23:59:00
bt_spread_bps_close
float64
0.01
30.9
bt_spread_bps_twap
float64
0.01
7.47
bt_bid_qty_close
float64
0
1.13k
bt_ask_qty_close
float64
0
1.53k
bt_imbalance_close
float64
-1
1
bt_imbalance_twap
float64
-0.98
0.97
bt_microprice_close
float64
24.8k
73.9k
bt_microprice_premium_close
float64
-0
0
bt_update_rate
int64
36
122k
2023-05-16T11:49:00
0.036936
0.036973
1.19
29.352
-0.922075
0.135515
27,073.503896
-0.000002
2,689
2023-05-16T11:50:00
0.036937
0.037007
11.717
5.598
0.353393
0.018004
27,073.06767
0.000001
5,212
2023-05-16T11:51:00
0.036928
0.037025
8.01
2.361
0.544692
0.358171
27,079.477235
0.000001
4,123
2023-05-16T11:52:00
0.036948
0.037103
0.825
21.533
-0.926201
-0.463452
27,065.00369
-0.000002
7,678
2023-05-16T11:53:00
0.036968
0.037078
0.383
14.874
-0.949794
-0.512282
27,050.50251
-0.000002
11,908
2023-05-16T11:54:00
0.036982
0.037069
6.951
5.732
0.096113
-0.139467
27,040.054806
0
11,236
2023-05-16T11:55:00
0.036988
0.037246
5.517
30.612
-0.694594
0.164243
27,036.01527
-0.000001
7,325
2023-05-16T11:56:00
0.036978
0.037117
11.716
3.97
0.493816
-0.070961
27,043.474691
0.000001
5,658
2023-05-16T11:57:00
0.036961
0.03708
19.802
27.88
-0.169414
0.119824
27,055.741529
-0
7,342
2023-05-16T11:58:00
0.036974
0.037418
7.273
14.624
-0.335708
-0.272557
27,045.933215
-0.000001
6,652
2023-05-16T11:59:00
0.036969
0.037073
13.102
6.67
0.325309
0.001732
27,049.366265
0.000001
4,981
2023-05-16T12:00:00
0.036958
0.037119
9.937
5.353
0.299804
0.070109
27,057.96499
0.000001
5,942
2023-05-16T12:01:00
0.036968
0.037093
11.321
5.265
0.365127
-0.18074
27,050.768256
0.000001
5,168
2023-05-16T12:02:00
0.036971
0.037029
14.97
3.245
0.6437
-0.223081
27,047.982185
0.000001
5,220
2023-05-16T12:03:00
0.036964
0.037101
1.463
14.483
-0.816506
0.383076
27,053.309175
-0.000002
4,886
2023-05-16T12:04:00
0.036964
0.037488
31.241
0.811
0.949395
0.407632
27,053.39747
0.000002
4,271
2023-05-16T12:05:00
0.036982
0.037066
31.402
5.048
0.723018
-0.477488
27,039.986151
0.000001
10,113
2023-05-16T12:06:00
0.036997
0.037067
4.917
23.275
-0.651178
-0.394855
27,028.917441
-0.000001
7,982
2023-05-16T12:07:00
0.036977
0.039476
17.383
12.611
0.159098
-0.307039
27,043.557955
0
8,143
2023-05-16T12:08:00
0.036973
0.037121
5.696
14.339
-0.431395
0.108457
27,046.52843
-0.000001
7,323
2023-05-16T12:09:00
0.036972
0.037036
14.529
2.585
0.697908
0.179046
27,047.784895
0.000001
6,670
2023-05-16T12:10:00
0.036957
0.037139
5.477
12.326
-0.38471
0.177883
27,058.430764
-0.000001
7,907
2023-05-16T12:11:00
0.03695
0.037066
11.361
3.401
0.539222
0.394292
27,063.276961
0.000001
4,005
2023-05-16T12:12:00
0.036952
0.037133
11.826
5.877
0.336045
-0.254523
27,061.966802
0.000001
6,163
2023-05-16T12:13:00
0.036969
0.037235
4.893
10.529
-0.365452
-0.249702
27,049.831727
-0.000001
7,484
2023-05-16T12:14:00
0.036948
0.03698
21.723
1.077
0.905526
0.380229
27,064.795276
0.000002
7,602
2023-05-16T12:15:00
0.03695
0.03702
6.219
10.076
-0.236698
0.334908
27,063.238165
-0
7,805
2023-05-16T12:16:00
0.036935
0.036963
21.558
14.65
0.190787
0.695682
27,074.959539
0
5,213
2023-05-16T12:17:00
0.036887
0.037718
2.546
7.047
-0.469196
0.194427
27,109.92654
-0.000001
11,564
2023-05-16T12:18:00
0.036914
0.037095
7.651
12.011
-0.221748
-0.212821
27,090.038913
-0
10,974
2023-05-16T12:19:00
0.036923
0.037266
7.999
2.248
0.561237
-0.043055
27,083.078062
0.000001
7,563
2023-05-16T12:20:00
0.036948
0.037189
3.527
17.753
-0.668515
-0.339227
27,065.016574
-0.000001
8,790
2023-05-16T12:21:00
0.036944
0.037057
21.669
1.454
0.874238
-0.128816
27,068.193712
0.000002
7,135
2023-05-16T12:22:00
0.036943
0.036984
3.898
7.073
-0.289399
0.06586
27,069.03553
-0.000001
5,596
2023-05-16T12:23:00
0.036955
0.037268
32.332
17.957
0.285848
-0.514998
27,060.064292
0.000001
8,305
2023-05-16T12:24:00
0.036958
0.037076
9.369
8.289
0.061162
-0.163925
27,057.953058
0
6,441
2023-05-16T12:25:00
0.036989
0.037126
15.695
28.767
-0.294004
-0.40283
27,034.8353
-0.000001
9,978
2023-05-16T12:26:00
0.036998
0.037368
2.219
0.188
0.843789
-0.048079
27,028.192189
0.000002
10,079
2023-05-16T12:27:00
0.036985
0.037939
23.4
10.961
0.362009
0.131123
27,037.6681
0.000001
9,235
2023-05-16T12:28:00
0.036999
0.037097
1.983
17.843
-0.79996
-0.290957
27,027.910002
-0.000001
9,531
2023-05-16T12:29:00
0.037001
0.03721
10.076
0.614
0.885126
-0.141188
27,026.594256
0.000002
10,355
2023-05-16T12:30:00
0.036985
0.099196
1.715
3.809
-0.379073
0.039894
27,038.031046
-0.000001
14,727
2023-05-16T12:31:00
0.036955
0.037986
4.293
22.535
-0.679961
0.032538
27,059.916002
-0.000001
12,391
2023-05-16T12:32:00
0.036966
0.03796
9.504
1.186
0.77811
-0.077408
27,051.688906
0.000001
9,244
2023-05-16T12:33:00
0.036943
0.037814
2.168
3.71
-0.262334
0.102526
27,069.036883
-0
12,130
2023-05-16T12:34:00
0.036961
0.038105
21.751
0.507
0.954443
-0.096628
27,055.797722
0.000002
8,671
2023-05-16T12:35:00
0.036996
0.037242
11.649
2.496
0.647084
-0.091833
27,030.082354
0.000001
8,049
2023-05-16T12:36:00
0.03702
0.03761
23.123
4.22
0.691329
-0.178909
27,012.184566
0.000001
11,239
2023-05-16T12:37:00
0.037047
0.038248
29.364
1.622
0.895308
-0.045598
26,993.094765
0.000002
11,632
2023-05-16T12:38:00
0.037072
0.043378
16.497
0.797
0.907829
-0.053972
26,974.595391
0.000002
17,154
2023-05-16T12:39:00
0.037048
0.037901
31.212
0.534
0.966358
0.220481
26,992.098318
0.000002
12,112
2023-05-16T12:40:00
0.03699
0.037789
3.505
2.902
0.094116
0.119376
27,034.354706
0
12,517
2023-05-16T12:41:00
0.03695
0.037675
1.326
11.624
-0.795212
0.207826
27,063.610239
-0.000001
14,202
2023-05-16T12:42:00
0.036921
0.044329
0.081
3.518
-0.954987
0.052039
27,085.102251
-0.000002
19,725
2023-05-16T12:43:00
0.036879
0.040737
0.008
6.016
-0.997344
0.042762
27,115.900133
-0.000002
13,066
2023-05-16T12:44:00
0.03688
0.03874
1.905
14.302
-0.764916
-0.110219
27,115.011754
-0.000001
13,580
2023-05-16T12:45:00
0.036922
0.037207
9.495
1.148
0.784271
-0.292787
27,083.889214
0.000001
11,772
2023-05-16T12:46:00
0.036915
0.037194
2.251
16.955
-0.765594
-0.307721
27,089.01172
-0.000001
5,981
2023-05-16T12:47:00
0.036919
0.037335
14.916
5.762
0.442693
0.205769
27,086.572135
0.000001
9,665
2023-05-16T12:48:00
0.036927
0.03694
6.659
16.699
-0.429831
-0.372212
27,080.128508
-0.000001
4,243
2023-05-16T12:49:00
0.036932
0.037612
1.136
14.601
-0.855627
-0.146826
27,076.707219
-0.000002
8,538
2023-05-16T12:50:00
0.036944
0.037272
0.113
17.496
-0.987166
-0.327198
27,067.900642
-0.000002
6,388
2023-05-16T12:51:00
0.03694
0.037392
0.095
18.336
-0.989691
0.228619
27,070.900515
-0.000002
7,547
2023-05-16T12:52:00
0.036942
0.038161
1.745
7.217
-0.610578
-0.16915
27,069.719471
-0.000001
7,438
2023-05-16T12:53:00
0.036918
0.037785
6.25
6.986
-0.055606
-0.125981
27,087.04722
-0
9,682
2023-05-16T12:54:00
0.036951
0.038368
0.042
20.517
-0.995914
-0.187918
27,062.500204
-0.000002
7,879
2023-05-16T12:55:00
0.036958
0.03706
8.376
1.224
0.745
0.037071
27,057.78725
0.000001
5,975
2023-05-16T12:56:00
0.036963
0.03705
4.267
10.269
-0.412906
-0.051665
27,054.029355
-0.000001
6,168
2023-05-16T12:57:00
0.036968
0.037108
2.036
12.125
-0.71245
0.021842
27,050.714378
-0.000001
6,573
2023-05-16T12:58:00
0.036963
0.037107
22.943
0.209
0.981945
-0.077567
27,054.199097
0.000002
7,294
2023-05-16T12:59:00
0.036972
0.037092
0.26
33.868
-0.984763
0.006694
27,047.300762
-0.000002
6,023
2023-05-16T13:00:00
0.036964
0.037128
27.006
5.455
0.663904
0.014757
27,053.583195
0.000001
6,295
2023-05-16T13:01:00
0.03698
0.037497
16.723
7.16
0.40041
-0.233289
27,041.470021
0.000001
7,558
2023-05-16T13:02:00
0.036988
0.03736
7.894
2.064
0.585459
-0.251428
27,035.979273
0.000001
9,170
2023-05-16T13:03:00
0.037003
0.037488
0.553
16.242
-0.934147
-0.498581
27,025.003293
-0.000002
6,451
2023-05-16T13:04:00
0.037009
0.037259
8.937
2.834
0.518478
-0.263667
27,020.575924
0.000001
9,396
2023-05-16T13:05:00
0.037028
0.037285
0.071
9.428
-0.985051
-0.275485
27,006.900747
-0.000002
7,351
2023-05-16T13:06:00
0.036975
0.039984
28.182
0.141
0.990043
-0.194559
27,045.399502
0.000002
11,993
2023-05-16T13:07:00
0.036963
0.037184
2.937
9.808
-0.539113
0.217435
27,054.223044
-0.000001
8,854
2023-05-16T13:08:00
0.036959
0.037813
15.916
2.29
0.748435
-0.236903
27,056.687422
0.000001
7,987
2023-05-16T13:09:00
0.036981
0.037177
0.135
25.177
-0.989333
-0.294978
27,041.000533
-0.000002
7,761
2023-05-16T13:10:00
0.036959
0.037078
0.951
10.298
-0.830918
0.391058
27,056.708454
-0.000002
8,823
2023-05-16T13:11:00
0.036939
0.040838
19.035
0.049
0.994865
0.243899
27,071.999743
0.000002
8,139
2023-05-16T13:12:00
0.03695
0.037046
10.201
9.693
0.025535
-0.177279
27,063.551277
0
5,724
2023-05-16T13:13:00
0.036952
0.037462
8.501
6.939
0.101166
-0.08467
27,061.955058
0
7,351
2023-05-16T13:14:00
0.036942
0.03699
2.816
6.831
-0.416192
0.497809
27,069.52919
-0.000001
5,439
2023-05-16T13:15:00
0.036956
0.03711
10.195
16.192
-0.227271
-0.146296
27,058.938636
-0
6,493
2023-05-16T13:16:00
0.036978
0.037054
13.535
5.459
0.425187
-0.448821
27,043.071259
0.000001
5,611
2023-05-16T13:17:00
0.036965
0.037325
1.928
8.24
-0.620771
0.286606
27,052.418961
-0.000001
8,657
2023-05-16T13:18:00
0.036974
0.03721
1.289
23.673
-0.896723
0.01396
27,046.005164
-0.000002
6,681
2023-05-16T13:19:00
0.036982
0.036998
9.971
4.856
0.344979
-0.113869
27,039.967249
0.000001
4,356
2023-05-16T13:20:00
0.036962
0.037109
0.37
8.963
-0.920711
0.269029
27,054.403964
-0.000002
6,722
2023-05-16T13:21:00
0.036981
0.037166
5.199
17.205
-0.535886
-0.602818
27,041.023206
-0.000001
4,513
2023-05-16T13:22:00
0.036978
0.037302
2.3
11.304
-0.661864
-0.369164
27,043.116907
-0.000001
5,555
2023-05-16T13:23:00
0.036964
0.037084
9.754
4.079
0.410251
0.424286
27,053.570513
0.000001
4,514
2023-05-16T13:24:00
0.036962
0.037253
2.13
37.708
-0.893067
0.069354
27,054.705347
-0.000002
6,338
2023-05-16T13:25:00
0.03696
0.037188
8.316
13.213
-0.227461
-0.033361
27,056.338627
-0
4,853
2023-05-16T13:26:00
0.036951
0.036993
19.407
7.148
0.461646
0.603385
27,062.773082
0.000001
4,049
2023-05-16T13:27:00
0.036953
0.037117
6.335
17.853
-0.476187
0.003745
27,061.726191
-0.000001
6,457
2023-05-16T13:28:00
0.03695
0.037118
1.038
13.326
-0.855472
0.223818
27,063.407226
-0.000002
6,999
End of preview. Expand in Data Studio

BTCUSDT Perpetual Futures L1 BookTicker Features (1m)

1-minute aggregated features derived from Binance UM Futures bookTicker tick data (best bid/ask price + quantity updates). Captures spread, top-of-book imbalance, microprice, and quote update intensity — the level-1 microstructure layer.

Coverage

  • Range: 2023-05-16 11:49 → 2024-03-31 23:59 (UTC)
  • Cadence: 1 minute
  • Rows: 460,265
  • Completeness vs 1-min grid: 99.726%

⚠️ Temporal gap — Binance stopped publishing bookTicker historical dumps

Binance publishes bookTicker as monthly files at https://data.binance.vision/data/futures/um/monthly/bookTicker/BTCUSDT/. Available files cover 2023-05 through 2024-03 only (11 months). The 2024-04 file is published but is 0 bytes (corrupt). All files 2024-05 onwards return HTTP 404. No daily bookTicker files are published.

If you need bookTicker features for 2024-04 onwards, you must collect them live yourself from the Binance WebSocket @bookTicker stream. This dataset cannot cover that period.

Columns

Column Description
timestamp 1-min bar open time (UTC)
bt_spread_bps_close Spread at last tick of bar, in basis points: (ask − bid)/mid × 10000
bt_spread_bps_twap Mean spread across all ticks within the bar
bt_bid_qty_close Best bid quantity at last tick
bt_ask_qty_close Best ask quantity at last tick
bt_imbalance_close (bid_qty − ask_qty) / (bid_qty + ask_qty) at last tick. Range [-1, 1]
bt_imbalance_twap Mean imbalance across all ticks within the bar
bt_microprice_close (ask × bid_qty + bid × ask_qty) / (bid_qty + ask_qty) at last tick
bt_microprice_premium_close (microprice − mid) / mid — signed pressure proxy
bt_update_rate Count of bookTicker events within the bar (quote activity intensity)

Feature meaning

  • Imbalance > 0: more size on the bid; canonical short-term predictor of upward price drift (Cartea/Jaimungal/Penalva, Algorithmic and High-Frequency Trading, Cambridge 2015).
  • TWAP vs close: TWAP averages over the whole bar; close is the latest snapshot. Large divergence between TWAP and close indicates persistent vs transient imbalance.
  • Microprice premium: the microprice sits between bid and ask weighted by sizes. When positive, pressure favors upward moves; when negative, downward. Signed.
  • Update rate: more quote churn correlates with information arrival / elevated volatility.

Source

Binance publishes per-tick bookTicker events as monthly zips. This dataset is built by streaming each monthly file, computing per-minute aggregations, discarding the raw, and concatenating. Build script: scripts/build_datasets/build_bookticker.py in the torchtrade-experiments repo.

Usage

from datasets import load_dataset
import pandas as pd

ds = load_dataset("Torch-Trade/btcusdt_perp_bookticker_features_1m_05_2023_to_03_2024", split="train")
bt = ds.to_pandas().sort_values("timestamp").reset_index(drop=True)
print(bt.head())

Joining with 1-minute OHLCV

from datasets import load_dataset
import pandas as pd

ohlcv = load_dataset(
    "Torch-Trade/btcusdt_perp_1m_05_2021_to_02_2026", split="train"
).to_pandas()
bt = load_dataset("Torch-Trade/btcusdt_perp_bookticker_features_1m_05_2023_to_03_2024", split="train").to_pandas()

ohlcv["timestamp"] = pd.to_datetime(ohlcv["timestamp"])
bt["timestamp"] = pd.to_datetime(bt["timestamp"])

# Both are 1-min native — direct inner join on timestamp
joined = ohlcv.merge(bt, on="timestamp", how="inner")

Expected joined row count ≈ 482,000 across the 11-month overlap window.

Derived features at training time

  • imb_momentum = bt_imbalance_close.diff(5) — 5-min change in imbalance
  • spread_zscore = (bt_spread_bps_close - rolling_mean_60) / rolling_std_60
  • micro_prem_sign_persist — fraction of last N bars where microprice_premium had the same sign

License

Data © Binance. Redistributed under fair use for research purposes. See https://data.binance.vision/ for upstream licensing.

Downloads last month
109