Skip to content

Instantly share code, notes, and snippets.

@so1tsuda
so1tsuda / bybit_get_historical_kline.py
Last active March 11, 2024 22:50
Bybit get historical OHLCV data
# this code is based on get_historical_data() from python-binance module
# https://github.com/sammchardy/python-binance
# it also requires pybybit.py available from this page
# https://note.mu/mtkn1/n/n9ef3460e4085
# (where pandas & websocket-client are needed)
import time
import dateparser
import pytz
import json