File size: 2,095 Bytes
f571ee6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
license: mit
task_categories:
  - time-series-forecasting
language:
  - en
tags:
  - crypto
  - cryptocurrency
  - finance
  - ohlcv
  - klines
  - bybit
  - futures
  - perpetual
  - trading
pretty_name: Bybit USDT Perpetual OHLCV Klines
size_categories:
  - 1B<n<10B
---

# Bybit USDT Perpetual OHLCV Klines

Historical OHLCV candlestick (kline) data for **Bybit** USDT-margined **perpetual
futures**, stored as zstd-compressed Parquet. Includes **delisted symbols**, so it
is usable for point-in-time / survivorship-bias-free backtests.

> ⚠️ **Under construction.** This dataset is being actively built. Coarser
> timeframes (15m · 1h · 4h · 1d) and 5m/3m are being uploaded first; **1m is
> still downloading** and will be added. Pair and timeframe coverage will grow.
> A per-file `COVERAGE.md` will be published once the build settles.

## Coverage (in progress)

| | futures (USDT perp) |
|---|---|
| **Pairs** | ~617 (incl. delisted) |
| **Timeframes** | 15m · 1h · 4h · 1d · 5m · 3m present; **1m coming** |
| **History** | from each contract's listing (mostly 2020–2021 onward) → present |
| **Extras** | `mark` price and `funding_rate` series for most pairs |

## File layout

```
futures/{timeframe}/{PAIR}.parquet
```

Examples:
- `futures/1d/BTC_USDT_USDT.parquet`
- `futures/1h/BTC_USDT_USDT-mark.parquet`          (mark price)
- `futures/8h/BTC_USDT_USDT-funding_rate.parquet`  (funding rate)

Pairs are `BASE_USDT_USDT` (USDT-margined perpetual). Each OHLCV Parquet has
columns `date` (UTC candle open), `open`, `high`, `low`, `close`, `volume`.

## Usage

```python
from huggingface_hub import hf_hub_download
import pandas as pd

path = hf_hub_download("rogerdehe/klines-bybit",
                       "futures/1d/BTC_USDT_USDT.parquet", repo_type="dataset")
df = pd.read_parquet(path)
```

## Notes

- Timestamps are UTC. Coverage varies per pair (newer listings have shorter history).
- The HF **dataset viewer is disabled** (custom per-pair layout); load files directly.
- Data provided **as-is** for research; no warranty of accuracy or completeness.