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 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,190 | 7 | 79,391 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,180 | 7 | 943,490 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,170 | 7 | 1,118,671 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,160 | 7 | 913,100 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,150 | 7 | 1,950,304 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,140 | 7 | 1,284,520 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,130 | 7 | 1,356,936 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,120 | 7 | 2,018,946 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,110 | 7 | 3,547,823 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,100 | 7 | 2,544,305 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,090 | 7 | 2,377,900 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,080 | 7 | 2,106,122 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,070 | 7 | 1,264,445 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,060 | 7 | 1,155,090 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,050 | 7 | 2,817,848 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,040 | 7 | 1,650,555 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,030 | 7 | 2,857,553 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,020 | 7 | 2,486,237 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,010 | 7 | 1,083,050 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 1 | 37,000 | 7 | 3,169,565 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,200 | 7 | 968,995 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,210 | 7 | 1,976,754 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,220 | 7 | 1,163,619 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,230 | 7 | 515,310 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,240 | 7 | 932,336 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,250 | 7 | 1,099,974 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,260 | 7 | 2,012,312 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,270 | 7 | 2,807,341 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,280 | 7 | 2,303,863 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,290 | 7 | 2,374,376 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,300 | 7 | 1,955,921 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,310 | 7 | 2,881,147 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,320 | 7 | 3,634,027 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,330 | 7 | 1,768,990 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,340 | 7 | 1,084,021 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,350 | 7 | 2,091,199 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,360 | 7 | 2,901,063 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,370 | 7 | 5,218,594 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,380 | 7 | 807,348 | 0 | 0 | 0 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
1 | 2 | 37,390 | 7 | 2,130,908 | 0 | 0 | 128 | 11,056,753,934,318 | 1,784,150,449,683,000,000 | 1,784,150,450,018,680,800 |
2 | 1 | 36,790 | 7 | 1,679,631 | 0 | 0 | 128 | 11,056,753,950,056 | 1,784,150,450,027,000,000 | 1,784,150,450,088,647,000 |
2 | 2 | 37,230 | 7 | 648,696 | 0 | 0 | 0 | 11,056,753,957,785 | 1,784,150,450,159,000,000 | 1,784,150,450,214,297,000 |
2 | 2 | 37,240 | 7 | 1,065,722 | 0 | 0 | 0 | 11,056,753,957,785 | 1,784,150,450,159,000,000 | 1,784,150,450,214,297,000 |
2 | 2 | 37,260 | 7 | 2,282,553 | 0 | 0 | 0 | 11,056,753,957,785 | 1,784,150,450,159,000,000 | 1,784,150,450,214,297,000 |
2 | 2 | 37,280 | 7 | 2,037,091 | 0 | 0 | 128 | 11,056,753,957,785 | 1,784,150,450,159,000,000 | 1,784,150,450,214,297,000 |
2 | 2 | 48,350 | 7 | 1,861 | 0 | 0 | 128 | 11,056,753,959,125 | 1,784,150,450,190,000,000 | 1,784,150,450,252,254,700 |
2 | 1 | 36,860 | 7 | 5,037,576 | 0 | 0 | 128 | 11,056,753,980,432 | 1,784,150,450,640,000,000 | 1,784,150,450,702,484,000 |
3 | 1 | 36,310 | 7 | 0 | 0 | 0 | 0 | 11,056,753,981,488 | 1,784,150,450,668,000,000 | 1,784,150,450,730,644,200 |
2 | 1 | 36,670 | 7 | 723,812 | 0 | 0 | 128 | 11,056,753,981,488 | 1,784,150,450,668,000,000 | 1,784,150,450,730,644,200 |
2 | 2 | 37,680 | 7 | 1,342,635 | 0 | 0 | 128 | 11,056,753,987,197 | 1,784,150,450,788,000,000 | 1,784,150,450,850,707,000 |
2 | 2 | 37,220 | 7 | 1,297,005 | 0 | 0 | 0 | 11,056,753,997,990 | 1,784,150,451,050,000,000 | 1,784,150,451,106,230,000 |
2 | 2 | 37,260 | 7 | 2,149,167 | 0 | 0 | 0 | 11,056,753,997,990 | 1,784,150,451,050,000,000 | 1,784,150,451,106,230,000 |
2 | 2 | 37,600 | 7 | 398,153 | 0 | 0 | 128 | 11,056,753,997,990 | 1,784,150,451,050,000,000 | 1,784,150,451,106,230,000 |
2 | 1 | 33,660 | 7 | 1,188,354 | 0 | 0 | 128 | 11,056,754,002,343 | 1,784,150,451,139,000,000 | 1,784,150,451,200,524,000 |
2 | 1 | 37,170 | 7 | 1,018,823 | 0 | 0 | 128 | 11,056,754,004,946 | 1,784,150,451,200,000,000 | 1,784,150,451,262,153,500 |
2 | 1 | 37,040 | 7 | 1,742,460 | 0 | 0 | 0 | 11,056,754,013,782 | 1,784,150,451,407,000,000 | 1,784,150,451,464,396,000 |
2 | 2 | 37,200 | 7 | 971,370 | 0 | 0 | 0 | 11,056,754,013,782 | 1,784,150,451,407,000,000 | 1,784,150,451,464,396,000 |
2 | 2 | 37,220 | 7 | 1,160,419 | 0 | 0 | 0 | 11,056,754,013,782 | 1,784,150,451,407,000,000 | 1,784,150,451,464,396,000 |
2 | 2 | 37,230 | 7 | 515,310 | 0 | 0 | 0 | 11,056,754,013,782 | 1,784,150,451,407,000,000 | 1,784,150,451,464,396,000 |
2 | 2 | 37,240 | 7 | 932,336 | 0 | 0 | 0 | 11,056,754,013,782 | 1,784,150,451,407,000,000 | 1,784,150,451,464,396,000 |
2 | 2 | 37,280 | 7 | 2,170,477 | 0 | 0 | 0 | 11,056,754,013,782 | 1,784,150,451,407,000,000 | 1,784,150,451,464,396,000 |
2 | 2 | 37,290 | 7 | 2,507,762 | 0 | 0 | 0 | 11,056,754,013,782 | 1,784,150,451,407,000,000 | 1,784,150,451,464,396,000 |
2 | 2 | 37,300 | 7 | 2,089,307 | 0 | 0 | 128 | 11,056,754,013,782 | 1,784,150,451,407,000,000 | 1,784,150,451,464,396,000 |
2 | 1 | 36,890 | 7 | 3,859,336 | 0 | 0 | 0 | 11,056,754,014,728 | 1,784,150,451,430,000,000 | 1,784,150,451,492,568,000 |
2 | 1 | 37,040 | 7 | 1,650,555 | 0 | 0 | 128 | 11,056,754,014,728 | 1,784,150,451,430,000,000 | 1,784,150,451,492,568,000 |
2 | 1 | 36,890 | 7 | 3,850,462 | 0 | 0 | 128 | 11,056,754,015,802 | 1,784,150,451,458,000,000 | 1,784,150,451,520,227,800 |
2 | 2 | 38,120 | 7 | 23,567,265 | 0 | 0 | 0 | 11,056,754,021,743 | 1,784,150,451,588,000,000 | 1,784,150,451,626,349,800 |
2 | 2 | 38,220 | 7 | 2,618,695 | 0 | 0 | 128 | 11,056,754,021,743 | 1,784,150,451,588,000,000 | 1,784,150,451,626,349,800 |
2 | 1 | 36,560 | 7 | 825,927 | 0 | 0 | 0 | 11,056,754,023,063 | 1,784,150,451,613,000,000 | 1,784,150,451,652,269,600 |
2 | 2 | 38,120 | 7 | 34,564,284 | 0 | 0 | 0 | 11,056,754,023,063 | 1,784,150,451,613,000,000 | 1,784,150,451,652,269,600 |
2 | 2 | 38,220 | 7 | 5,235,125 | 0 | 0 | 128 | 11,056,754,023,063 | 1,784,150,451,613,000,000 | 1,784,150,451,652,269,600 |
2 | 2 | 38,120 | 7 | 39,643,030 | 0 | 0 | 0 | 11,056,754,024,071 | 1,784,150,451,635,000,000 | 1,784,150,451,678,737,700 |
2 | 2 | 38,220 | 7 | 6,543,340 | 0 | 0 | 128 | 11,056,754,024,071 | 1,784,150,451,635,000,000 | 1,784,150,451,678,737,700 |
2 | 1 | 36,700 | 7 | 4,322,501 | 0 | 0 | 128 | 11,056,754,024,972 | 1,784,150,451,656,000,000 | 1,784,150,451,718,199,800 |
2 | 2 | 37,990 | 7 | 207,427 | 0 | 0 | 128 | 11,056,754,041,748 | 1,784,150,452,021,000,000 | 1,784,150,452,082,401,800 |
2 | 1 | 37,190 | 7 | 89,391 | 0 | 0 | 128 | 11,056,754,042,997 | 1,784,150,452,050,000,000 | 1,784,150,452,112,226,000 |
3 | 1 | 33,660 | 7 | 0 | 0 | 0 | 128 | 11,056,754,052,847 | 1,784,150,452,253,000,000 | 1,784,150,452,314,190,600 |
2 | 1 | 36,870 | 7 | 4,761,613 | 0 | 0 | 128 | 11,056,754,054,491 | 1,784,150,452,290,000,000 | 1,784,150,452,352,482,800 |
2 | 2 | 37,650 | 7 | 3,004,260 | 0 | 0 | 128 | 11,056,754,057,835 | 1,784,150,452,365,000,000 | 1,784,150,452,426,411,800 |
2 | 1 | 36,870 | 7 | 4,626,002 | 0 | 0 | 128 | 11,056,754,065,289 | 1,784,150,452,541,000,000 | 1,784,150,452,604,313,300 |
2 | 1 | 37,190 | 7 | 79,391 | 0 | 0 | 128 | 11,056,754,070,196 | 1,784,150,452,665,000,000 | 1,784,150,452,726,184,700 |
2 | 1 | 36,910 | 7 | 1,065,505 | 0 | 0 | 128 | 11,056,754,076,466 | 1,784,150,452,809,000,000 | 1,784,150,452,870,262,500 |
2 | 1 | 36,870 | 7 | 3,866,578 | 0 | 0 | 128 | 11,056,754,077,442 | 1,784,150,452,836,000,000 | 1,784,150,452,896,283,400 |
2 | 1 | 37,040 | 7 | 1,650,555 | 0 | 0 | 0 | 11,056,754,099,040 | 1,784,150,453,182,000,000 | 1,784,150,453,240,165,400 |
2 | 2 | 37,200 | 7 | 971,259 | 0 | 0 | 128 | 11,056,754,099,040 | 1,784,150,453,182,000,000 | 1,784,150,453,240,165,400 |
3 | 1 | 33,480 | 7 | 0 | 0 | 0 | 0 | 11,056,754,129,076 | 1,784,150,453,652,000,000 | 1,784,150,453,714,775,000 |
2 | 1 | 37,190 | 7 | 89,391 | 0 | 0 | 128 | 11,056,754,129,076 | 1,784,150,453,652,000,000 | 1,784,150,453,714,775,000 |
2 | 1 | 37,180 | 7 | 925,017 | 0 | 0 | 128 | 11,056,754,131,160 | 1,784,150,453,682,000,000 | 1,784,150,453,744,780,500 |
2 | 2 | 37,960 | 7 | 3,217,725 | 0 | 0 | 128 | 11,056,754,135,644 | 1,784,150,453,785,000,000 | 1,784,150,453,846,367,000 |
2 | 1 | 33,670 | 7 | 1,193,996 | 0 | 0 | 128 | 11,056,754,160,972 | 1,784,150,454,155,000,000 | 1,784,150,454,218,173,000 |
2 | 1 | 36,390 | 7 | 3,508,265 | 0 | 0 | 128 | 11,056,754,174,665 | 1,784,150,454,361,000,000 | 1,784,150,454,422,217,200 |
2 | 1 | 37,070 | 7 | 1,533,298 | 0 | 0 | 0 | 11,056,754,194,178 | 1,784,150,454,700,000,000 | 1,784,150,454,748,584,200 |
2 | 1 | 37,190 | 7 | 48,325 | 0 | 0 | 0 | 11,056,754,194,178 | 1,784,150,454,700,000,000 | 1,784,150,454,748,584,200 |
2 | 2 | 37,240 | 7 | 1,065,722 | 0 | 0 | 0 | 11,056,754,194,178 | 1,784,150,454,700,000,000 | 1,784,150,454,748,584,200 |
2 | 2 | 37,250 | 7 | 1,233,360 | 0 | 0 | 0 | 11,056,754,194,178 | 1,784,150,454,700,000,000 | 1,784,150,454,748,584,200 |
2 | 2 | 37,290 | 7 | 2,374,376 | 0 | 0 | 0 | 11,056,754,194,178 | 1,784,150,454,700,000,000 | 1,784,150,454,748,584,200 |
2 | 2 | 37,300 | 7 | 1,955,921 | 0 | 0 | 128 | 11,056,754,194,178 | 1,784,150,454,700,000,000 | 1,784,150,454,748,584,200 |
2 | 1 | 37,040 | 7 | 1,742,322 | 0 | 0 | 0 | 11,056,754,202,849 | 1,784,150,454,840,000,000 | 1,784,150,454,898,815,000 |
2 | 1 | 37,190 | 7 | 58,325 | 0 | 0 | 128 | 11,056,754,202,849 | 1,784,150,454,840,000,000 | 1,784,150,454,898,815,000 |
BINANCE USDT Perpetual — L2 Order-Book Deltas + Trades (2026)
Raw market-microstructure tick data for BINANCE 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-binance-<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-binance-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-binance-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
- 68