Bybit Bulk Downloader
A Python library to efficiently and concurrently download historical data files from bybit. Supports all asset types (spot, USDT Perpetual, Inverse Perpetual & Inverse Futures).
Install / Use
npx skills add aoki-h-jp/bybit-bulk-downloaderInstalls into whichever agent you are using.
README
bybit-bulk-downloader
Python library for bulk downloading bybit historical data
A Python library to efficiently and concurrently download historical data files from bybit. Supports all asset types (spot, USDT Perpetual, Inverse Perpetual & Inverse Futures).
Installation
pip install bybit-bulk-downloader
Usage
Download all kline_for_metatrader4 data
from bybit_bulk_downloader.downloader import BybitBulkDownloader
downloader = BybitBulkDownloader(data_type='kline_for_metatrader4')
downloader.run_download()
Download all premium_index data
from bybit_bulk_downloader.downloader import BybitBulkDownloader
downloader = BybitBulkDownloader(data_type='premium_index')
downloader.run_download()
Download all spot_index data
from bybit_bulk_downloader.downloader import BybitBulkDownloader
downloader = BybitBulkDownloader(data_type='spot_index')
downloader.run_download()
Download all spot data
from bybit_bulk_downloader.downloader import BybitBulkDownloader
downloader = BybitBulkDownloader(data_type='spot')
downloader.run_download()
Download specific trading pair data
from bybit_bulk_downloader.downloader import BybitBulkDownloader
# Download BTCUSDT trading data
downloader = BybitBulkDownloader(data_type='trading')
downloader.download_symbol('BTCUSDT')
Download all available trading pairs
from bybit_bulk_downloader.downloader import BybitBulkDownloader
# Download all trading pairs data
downloader = BybitBulkDownloader(data_type='trading')
downloader.run_download() # This will download all available trading pairs
pytest
python -m pytest
Available data types
✅: Implemented and tested. ❌: Not available on bybit.
by data_type
| data_type | spot | futures | | :-------------------- | :--: | :--: | | kline_for_metatrader4 | ❌ | ✅ | | premium_index | ✅ | ❌ | | spot | ✅ | ❌ | | spot_index | ✅ | ❌ | | trading | ❌ | ✅ |
If you want to report a bug or request a feature
Please create an issue on this repository!
Disclaimer
This project is for educational purposes only. You should not construe any such information or other material as legal, tax, investment, financial, or other advice. Nothing contained here constitutes a solicitation, recommendation, endorsement, or offer by me or any third party service provider to buy or sell any securities or other financial instruments in this or in any other jurisdiction in which such solicitation or offer would be unlawful under the securities laws of such jurisdiction.
Under no circumstances will I be held responsible or liable in any way for any claims, damages, losses, expenses, costs, or liabilities whatsoever, including, without limitation, any direct or indirect damages for loss of profits.
Related Skills
gortex
1.1kHigh-performance code-intelligence engine for AI agents and IDE, supports 257 languages, multi repositories, based on graph, with access via CLI, MCP Server, and API. AI coding agents teammate - expose only needed information, cutting token usage up to 50x. 100% local.
techrogue
TechRogue – Roguelike technical quiz for engineers. Usage: /techrogue | /techrogue build | /techrogue settings
cc-switch
125.6kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io
cc-switch
125.6kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io
