A Python library to efficiently and concurrently download historical data files from bybit. Supports all asset types (spot, USDT Perpetual, Inverse Perpetual & Inverse Futures).
pip install git https://github.com/aoki-h-jp/bybit-bulk-downloader
from bybit_bulk_downloader.downloader import BybitBulkDownloader
downloader = BybitBulkDownloader(data_type='kline_for_metatrader4')
downloader.run_download()
from bybit_bulk_downloader.downloader import BybitBulkDownloader
downloader = BybitBulkDownloader(data_type='premium_index')
downloader.run_download()
from bybit_bulk_downloader.downloader import BybitBulkDownloader
downloader = BybitBulkDownloader(data_type='spot_index')
downloader.run_download()
from bybit_bulk_downloader.downloader import BybitBulkDownloader
downloader = BybitBulkDownloader(data_type='trading')
downloader.run_download()
from bybit_bulk_downloader.downloader import BybitBulkDownloader
downloader = BybitBulkDownloader(data_type='fundingRate')
downloader.run_download()
from bybit_bulk_downloader.downloader import BybitBulkDownloader
downloader = BybitBulkDownloader(data_type='klines')
downloader.run_download(interval='1')
python -m pytest
✅: Implemented and tested. ❌: Not available on bybit.
data_type | spot | futures |
---|---|---|
kline_for_metatrader4 | ✅ | ❌ |
premium_index | ❌ | ✅ |
spot_index | ✅ | ❌ |
trading | ❌ | ✅ |
fundingRate | ❌ | ✅ |
klines | 🚧 | ✅ |
Please create an issue on this repository!
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.