Skip to content

A Python library to efficiently and concurrently download historical data files from bybit. Supports all asset types (spot, USDT Perpetual, Inverse Perpetual & Inverse Futures).

License

Notifications You must be signed in to change notification settings

aoki-h-jp/bybit-bulk-downloader

Repository files navigation

bybit-bulk-downloader

Python 3.11 Format code Run pytest on all branches

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 git+https://github.com/aoki-h-jp/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 trading data

from bybit_bulk_downloader.downloader import BybitBulkDownloader

downloader = BybitBulkDownloader(data_type='trading')
downloader.run_download()

Download all fundingRate data

from bybit_bulk_downloader.downloader import BybitBulkDownloader

downloader = BybitBulkDownloader(data_type='fundingRate')
downloader.run_download()

Download all klines data

from bybit_bulk_downloader.downloader import BybitBulkDownloader

downloader = BybitBulkDownloader(data_type='klines')
downloader.run_download(interval='1')

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_index
trading
fundingRate
klines 🚧

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.

About

A Python library to efficiently and concurrently download historical data files from bybit. Supports all asset types (spot, USDT Perpetual, Inverse Perpetual & Inverse Futures).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages