Datasets:
action uint8 | side uint8 | price_raw int64 | price_prec uint8 | size_raw uint64 | size_prec uint8 | order_id uint64 | flags uint8 | sequence uint64 | ts_event int64 | ts_init int64 |
|---|---|---|---|---|---|---|---|---|---|---|
4 | 0 | 0 | 0 | 0 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,119 | 6 | 6,211,944 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,118 | 6 | 912,244 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,117 | 6 | 4,332,947 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,115 | 6 | 1,623,163 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,114 | 6 | 6,169,883 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,113 | 6 | 3,327,244 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,111 | 6 | 5,768 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,108 | 6 | 12,770,708 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,106 | 6 | 9,662,431 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,104 | 6 | 12,830,714 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,101 | 6 | 9,019,803 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,100 | 6 | 12,830,714 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,099 | 6 | 2,304,240 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,096 | 6 | 12,718,974 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,095 | 6 | 17,978,279 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,092 | 6 | 12,733,153 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,088 | 6 | 12,748,776 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,084 | 6 | 12,765,923 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,080 | 6 | 12,788,147 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,076 | 6 | 12,806,105 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,072 | 6 | 12,815,041 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,071 | 6 | 107,640 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,059 | 6 | 8,948,649 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 3,039 | 6 | 140,980 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 2,999 | 6 | 140,940 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 2,971 | 6 | 140,860 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 1 | 1,946 | 6 | 23,488 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,122 | 6 | 1,056,936 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,123 | 6 | 2,619,390 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,125 | 6 | 1,181,213 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,127 | 6 | 2,102,711 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,128 | 6 | 5,730,156 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,129 | 6 | 10,198,539 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,133 | 6 | 800,488 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,134 | 6 | 5,765 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,139 | 6 | 10,477,877 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,140 | 6 | 12,802,932 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,144 | 6 | 12,802,932 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,147 | 6 | 9,005,101 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,148 | 6 | 12,802,932 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,152 | 6 | 12,764,349 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,156 | 6 | 15,071,499 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,160 | 6 | 12,764,349 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,164 | 6 | 30,746,380 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,168 | 6 | 12,802,932 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,172 | 6 | 12,800,351 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,176 | 6 | 12,776,745 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,185 | 6 | 107,660 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,206 | 6 | 8,925,583 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,215 | 6 | 140,970 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,252 | 6 | 140,970 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,283 | 6 | 140,950 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 3,745 | 6 | 431,896 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,171 | 6 | 3,420 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,249 | 6 | 3,382 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,334 | 6 | 3,349 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,409 | 6 | 3,310 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,440 | 6 | 400,000 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,497 | 6 | 3,273 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,575 | 6 | 3,237 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,660 | 6 | 3,195 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,700 | 6 | 400,000 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,735 | 6 | 3,150 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,815 | 6 | 3,116 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,868 | 6 | 3,082 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,929 | 6 | 3,044 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 4,991 | 6 | 3,007 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 5,052 | 6 | 2,970 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 5,100 | 6 | 200,000 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 5,130 | 6 | 2,925 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 5,530 | 6 | 5,517 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 5,784 | 6 | 4,515 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 6,400 | 6 | 5,000 | 0 | 0 | 32 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
1 | 2 | 11,674 | 6 | 23,488 | 0 | 0 | 160 | 17,139,954,902 | 1,784,323,880,052,000,000 | 1,784,323,880,424,858,400 |
2 | 1 | 3,115 | 6 | 1,623,168 | 0 | 0 | 0 | 17,139,955,151 | 1,784,323,880,262,000,000 | 1,784,323,886,008,233,200 |
2 | 2 | 3,123 | 6 | 2,619,395 | 0 | 0 | 128 | 17,139,955,151 | 1,784,323,880,262,000,000 | 1,784,323,886,008,233,200 |
2 | 1 | 3,118 | 6 | 2,535,412 | 0 | 0 | 0 | 17,139,955,558 | 1,784,323,880,808,000,000 | 1,784,323,891,107,939,600 |
3 | 1 | 3,115 | 6 | 0 | 0 | 0 | 128 | 17,139,955,558 | 1,784,323,880,808,000,000 | 1,784,323,891,107,939,600 |
2 | 1 | 3,118 | 6 | 1,929,445 | 0 | 0 | 0 | 17,139,955,834 | 1,784,323,881,260,000,000 | 1,784,323,891,707,519,200 |
3 | 2 | 3,122 | 6 | 0 | 0 | 0 | 0 | 17,139,955,834 | 1,784,323,881,260,000,000 | 1,784,323,891,707,519,200 |
2 | 2 | 3,123 | 6 | 1,389,371 | 0 | 0 | 0 | 17,139,955,834 | 1,784,323,881,260,000,000 | 1,784,323,891,707,519,200 |
2 | 2 | 3,124 | 6 | 1,681,797 | 0 | 0 | 128 | 17,139,955,834 | 1,784,323,881,260,000,000 | 1,784,323,891,707,519,200 |
2 | 1 | 3,120 | 6 | 294,101 | 0 | 0 | 0 | 17,139,955,862 | 1,784,323,881,309,000,000 | 1,784,323,891,707,618,300 |
2 | 1 | 3,119 | 6 | 6,816,944 | 0 | 0 | 0 | 17,139,955,862 | 1,784,323,881,309,000,000 | 1,784,323,891,707,618,300 |
2 | 1 | 3,118 | 6 | 1,622,628 | 0 | 0 | 0 | 17,139,955,862 | 1,784,323,881,309,000,000 | 1,784,323,891,707,618,300 |
2 | 2 | 3,123 | 6 | 332,631 | 0 | 0 | 0 | 17,139,955,862 | 1,784,323,881,309,000,000 | 1,784,323,891,707,618,300 |
2 | 2 | 3,124 | 6 | 1,056,409 | 0 | 0 | 0 | 17,139,955,862 | 1,784,323,881,309,000,000 | 1,784,323,891,707,618,300 |
2 | 2 | 3,125 | 6 | 2,862,937 | 0 | 0 | 128 | 17,139,955,862 | 1,784,323,881,309,000,000 | 1,784,323,891,707,618,300 |
2 | 1 | 3,118 | 6 | 1,622,625 | 0 | 0 | 0 | 17,139,955,904 | 1,784,323,881,364,000,000 | 1,784,323,891,707,730,000 |
2 | 2 | 3,124 | 6 | 604,000 | 0 | 0 | 0 | 17,139,955,904 | 1,784,323,881,364,000,000 | 1,784,323,891,707,730,000 |
2 | 2 | 3,125 | 6 | 3,919,081 | 0 | 0 | 128 | 17,139,955,904 | 1,784,323,881,364,000,000 | 1,784,323,891,707,730,000 |
3 | 1 | 3,118 | 6 | 0 | 0 | 0 | 0 | 17,139,955,964 | 1,784,323,881,458,000,000 | 1,784,323,891,707,870,700 |
2 | 1 | 3,115 | 6 | 1,622,646 | 0 | 0 | 0 | 17,139,955,964 | 1,784,323,881,458,000,000 | 1,784,323,891,707,870,700 |
2 | 2 | 3,124 | 6 | 1,660,198 | 0 | 0 | 0 | 17,139,955,964 | 1,784,323,881,458,000,000 | 1,784,323,891,707,870,700 |
2 | 2 | 3,125 | 6 | 2,862,955 | 0 | 0 | 128 | 17,139,955,964 | 1,784,323,881,458,000,000 | 1,784,323,891,707,870,700 |
2 | 1 | 3,119 | 6 | 6,211,944 | 0 | 0 | 0 | 17,139,956,039 | 1,784,323,881,609,000,000 | 1,784,323,892,007,739,600 |
2 | 2 | 3,123 | 6 | 937,131 | 0 | 0 | 0 | 17,139,956,039 | 1,784,323,881,609,000,000 | 1,784,323,892,007,739,600 |
2 | 2 | 3,124 | 6 | 1,056,198 | 0 | 0 | 128 | 17,139,956,039 | 1,784,323,881,609,000,000 | 1,784,323,892,007,739,600 |
3 | 1 | 3,120 | 6 | 0 | 0 | 0 | 0 | 17,139,956,077 | 1,784,323,881,659,000,000 | 1,784,323,892,007,791,400 |
LIGHTER USDT Perpetual — L2 Order-Book Deltas + Trades (2026)
Raw market-microstructure tick data for LIGHTER USDT-margined perpetual
futures: full-depth L2 order-book deltas and trades, as zstd-compressed
Parquet. Recorded by the goldmine market-data recorder; converted losslessly from
its internal GMKT v1 format.
This repo holds year 2026. Data is sharded one repo per exchange per year
(mktdata-lighter-<year>) to keep per-repo file counts and size bounded.
⚠️ Under construction / growing — this is a live recording, extended over time.
What's here
- Deltas = incremental order-book updates (add / update / delete / clear).
- Trades = individual executions.
- Snapshots are inside the delta stream: every ~60s a full-book snapshot is
spliced in as a burst of delta rows flagged
F_SNAPSHOT. There is no separate snapshot table — filterflags & 32to find them.
Layout
{SYMBOL}/{YYYY-MM}/{SYMBOL}_{YYYYMMDD}_deltas.parquet
{SYMBOL}/{YYYY-MM}/{SYMBOL}_{YYYYMMDD}_trades.parquet
{SYMBOL}/{YYYY-MM}/{SYMBOL}_{YYYYMMDD}_control.jsonl (only when gaps/reconnects occurred)
One {SYMBOL} folder per instrument; one file per UTC day.
Two HF subsets (viewer dropdown / load_dataset config): orderbook = the
*_deltas.parquet files, trades = the *_trades.parquet files.
Schema
deltas.parquet — one row per order-book update:
| column | type | meaning |
|---|---|---|
action |
uint8 | 1=add · 2=update · 3=delete · 4/5=clear |
side |
uint8 | 1=bid · 2=ask |
price_raw / price_prec |
int64 / uint8 | fixed-point; price = price_raw · 10^-price_prec |
size_raw / size_prec |
uint64 / uint8 | fixed-point; size = size_raw · 10^-size_prec |
order_id |
uint64 | |
flags |
uint8 | bit 5 (value 32) = F_SNAPSHOT → row belongs to a periodic full-book snapshot burst |
sequence |
uint64 | |
ts_event / ts_init |
int64 | exchange event time / local receive time, UTC nanoseconds |
trades.parquet — one row per trade: price_raw/price_prec, size_raw/size_prec,
aggressor (1=buy 2=sell), trade_id (string), ts_event, ts_init (UTC ns).
Price/size are stored as lossless fixed-point (
raw+prec). Reconstruct a real value withraw * 10.0 ** -prec.
Usage
# whole subset via datasets
from datasets import load_dataset
ob = load_dataset("rogerdehe/mktdata-lighter-2026", "orderbook") # or "trades"
# or a single file
from huggingface_hub import hf_hub_download
import pandas as pd
p = hf_hub_download("rogerdehe/mktdata-lighter-2026",
"BTCUSDT-PERP/2026-07/BTCUSDT-PERP_20260716_deltas.parquet",
repo_type="dataset")
df = pd.read_parquet(p)
df["price"] = df["price_raw"] * 10.0 ** -df["price_prec"]
snapshots = df[df["flags"] & 32 != 0] # periodic full-book snapshots
Reconstruct the book at any time t: take the last snapshot burst before t
(a CLEAR flagged F_SNAPSHOT, then its ADD rows) and replay deltas up to t.
Notes
- Timestamps are UTC nanoseconds. The dataset viewer works via the two
configs above (
orderbook/trades); you can also load files directly. - Data provided as-is for research; no warranty of accuracy or completeness.
- Downloads last month
- 47