klines-bybit
收藏资源简介:
Bybit USDT永续合约OHLCV K线数据集提供了Bybit交易所USDT保证金永续期货合约的历史OHLCV(开盘价、最高价、最低价、收盘价、成交量)蜡烛图数据。该数据集旨在支持无幸存者偏差的回测和研究,特别包含了已下架的交易对。数据以zstd压缩的Parquet格式存储,覆盖约617个交易对(含已下架),时间帧包括15分钟、1小时、4小时、1日、5分钟和3分钟(1分钟数据即将添加)。历史数据从每个合约的上市时间(大多始于2020年至2021年)持续至今。对于大多数交易对,数据集还额外提供了标记价格序列和资金费率序列。文件按futures/{时间帧}/{交易对}.parquet的结构组织,其中交易对命名格式为BASE_USDT_USDT。每个OHLCV文件包含以下列:date(UTC时间戳,表示蜡烛开盘时间)、open、high、low、close、volume。数据集适用于时间序列预测、加密货币金融分析、量化交易策略回测等任务。请注意,数据集正在积极构建中,不同交易对的数据覆盖范围可能因上市时间而异,且HuggingFace数据集查看器已禁用,建议直接加载文件使用。数据按现状提供,不保证其准确性或完整性。
The Bybit USDT Perpetual Contract OHLCV Candlestick Dataset provides historical OHLCV (Open, High, Low, Close, Volume) candlestick data for USDT-margined perpetual futures contracts on the Bybit exchange. This dataset is designed to support backtesting and research without survivor bias, specifically including delisted trading pairs. The data is stored in zstd-compressed Parquet format, covering approximately 617 trading pairs (including delisted ones), with timeframes including 15 minutes, 1 hour, 4 hours, 1 day, 5 minutes, and 3 minutes (1-minute data to be added soon). Historical data spans from each contracts listing time (mostly starting from 2020 to 2021) to the present. For most trading pairs, the dataset additionally provides mark price series and funding rate series. Files are organized in the structure futures/{timeframe}/{trading_pair}.parquet, where the trading pair naming format is BASE_USDT_USDT. Each OHLCV file contains the following columns: date (UTC timestamp, indicating the candle open time), open, high, low, close, volume. The dataset is suitable for tasks such as time series forecasting, cryptocurrency financial analysis, and quantitative trading strategy backtesting. Please note that the dataset is actively being constructed, data coverage may vary by listing time for different trading pairs, and the HuggingFace dataset viewer is disabled; it is recommended to load files directly. The data is provided as-is, with no guarantees of accuracy or completeness.
数据集概述
- 数据集名称:Bybit USDT Perpetual OHLCV Klines
- 许可证:MIT
- 任务类型:时间序列预测
- 语言:英语
- 标签:加密货币、金融、OHLCV、K线、Bybit、永续期货、交易
- 数据集规模:10亿至100亿行
数据内容
该数据集包含 Bybit 交易所 USDT保证金永续期货 的历史OHLCV K线数据,存储为 zstd 压缩的 Parquet 格式。涵盖已下架的交易对,可用于无幸存者偏差的回测。
覆盖范围(正在建设中)
| 项目 | 详情 |
|---|---|
| 交易对 | 约617个(含已下架) |
| 时间周期 | 15分钟、1小时、4小时、1天、5分钟、3分钟已存在;1分钟即将添加 |
| 历史范围 | 从每个合约上市起(大多为2020-2021年至今)至当前 |
| 附加数据 | 大部分交易对包含 mark 价格和 funding_rate 序列 |
文件结构
futures/{timeframe}/{PAIR}.parquet
- 示例:
futures/1d/BTC_USDT_USDT.parquet(OHLCV数据)futures/1h/BTC_USDT_USDT-mark.parquet(标记价格)futures/8h/BTC_USDT_USDT-funding_rate.parquet(资金费率)
交易对命名格式为 BASE_USDT_USDT(USDT保证金永续)。每个OHLCV Parquet文件包含以下列:date(UTC蜡烛图开盘时间)、open、high、low、close、volume。
使用示例
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)
注意事项
- 时间戳为UTC。不同交易对的历史长度不同(新上市的交易对历史较短)。
- Hugging Face 数据集查看器已禁用(因采用自定义每交易对布局),请直接加载文件。
- 数据按原样提供,仅供研究使用,不保证准确性和完整性。




