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 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,836 | 4 | 251,121 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,835 | 4 | 618,844 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,834 | 4 | 666,722 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,833 | 4 | 443,134 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,832 | 4 | 489,759 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,831 | 4 | 589,705 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,830 | 4 | 478,544 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,829 | 4 | 736,036 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,828 | 4 | 654,152 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,827 | 4 | 339,536 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,826 | 4 | 3,060,243 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,825 | 4 | 1,359,181 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,824 | 4 | 620,510 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,823 | 4 | 666,554 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,822 | 4 | 971,539 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,821 | 4 | 519,234 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,820 | 4 | 1,110,670 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,819 | 4 | 1,573,520 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,818 | 4 | 1,810,846 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,817 | 4 | 1,646,388 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,816 | 4 | 764,307 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,815 | 4 | 764,262 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,814 | 4 | 764,262 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,813 | 4 | 765,086 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 1 | 1,812 | 4 | 764,262 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,837 | 4 | 519,077 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,838 | 4 | 1,622,726 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,839 | 4 | 494,053 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,840 | 4 | 671,515 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,841 | 4 | 659,020 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,842 | 4 | 592,543 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,843 | 4 | 359,432 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,844 | 4 | 582,898 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,845 | 4 | 407,006 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,846 | 4 | 448,472 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,847 | 4 | 3,078,475 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,848 | 4 | 265,431 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,849 | 4 | 525,148 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,850 | 4 | 393,205 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,851 | 4 | 428,325 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,852 | 4 | 263,283 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,853 | 4 | 215,625 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,854 | 4 | 740,969 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,855 | 4 | 1,193,452 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,856 | 4 | 268,630 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,857 | 4 | 757,298 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,858 | 4 | 515,740 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,859 | 4 | 522,046 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,860 | 4 | 515,740 | 0 | 0 | 32 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
1 | 2 | 1,861 | 4 | 515,740 | 0 | 0 | 160 | 0 | 1,785,742,906,362,000,000 | 1,785,742,906,389,510,100 |
4 | 0 | 0 | 0 | 0 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,836 | 4 | 251,121 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,835 | 4 | 618,844 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,834 | 4 | 495,912 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,833 | 4 | 443,134 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,832 | 4 | 489,759 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,831 | 4 | 589,705 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,830 | 4 | 478,544 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,829 | 4 | 736,036 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,828 | 4 | 654,152 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,827 | 4 | 339,536 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,826 | 4 | 3,060,243 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,825 | 4 | 1,359,181 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,824 | 4 | 620,510 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,823 | 4 | 666,554 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,822 | 4 | 971,539 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,821 | 4 | 519,234 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,820 | 4 | 1,110,670 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,819 | 4 | 1,573,520 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,818 | 4 | 1,810,846 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,817 | 4 | 1,646,388 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,816 | 4 | 764,307 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,815 | 4 | 764,262 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,814 | 4 | 764,262 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,813 | 4 | 765,086 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 1 | 1,812 | 4 | 764,262 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,837 | 4 | 519,077 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,838 | 4 | 1,622,726 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,839 | 4 | 494,053 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,840 | 4 | 671,515 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,841 | 4 | 659,020 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,842 | 4 | 592,543 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,843 | 4 | 359,432 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,844 | 4 | 582,898 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,845 | 4 | 407,006 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,846 | 4 | 448,472 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,847 | 4 | 3,078,475 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,848 | 4 | 265,431 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,849 | 4 | 525,148 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,850 | 4 | 393,205 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,851 | 4 | 428,325 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,852 | 4 | 263,283 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,853 | 4 | 215,625 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,854 | 4 | 740,969 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,855 | 4 | 1,193,452 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,856 | 4 | 268,630 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,857 | 4 | 757,298 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,858 | 4 | 515,740 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
1 | 2 | 1,859 | 4 | 522,046 | 0 | 0 | 32 | 0 | 1,785,742,906,366,000,000 | 1,785,742,906,393,341,700 |
LBANK USDT Perpetual — L2 Order-Book Deltas + Trades (2026)
Raw market-microstructure tick data for LBANK 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-lbank-<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.
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
from huggingface_hub import hf_hub_download
import pandas as pd
p = hf_hub_download("rogerdehe/mktdata-lbank-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 HF dataset viewer is disabled (custom per-symbol layout); load files directly.
- Data provided as-is for research; no warranty of accuracy or completeness.
- Downloads last month
- 654