ryu878 / bybit_scalp_bot_v2

Simple bybit scalp bot v2 (with binance data to check moving averages)
https://aadresearch.xyz
GNU General Public License v3.0
47 stars 18 forks source link

ImportError: cannot import name 'usdt_perpetual' from 'pybit #3

Open Ed-shrooma opened 1 year ago

Ed-shrooma commented 1 year ago

pybit installed 5.0.0

cyberjunky commented 1 year ago
python3 -m venv .env
source .env/bin/activate
pip3 install -r requirements.txt

requirements.txt:

pybit==2.4.1
colorama
pandas
ta
python-binance
ccxt==2.0.90
KageRyo commented 5 months ago

This problem may be caused by changes in the functions of Bybit API updated to 5.0. Please refer to https://bybit-exchange.github.io/docs/zh-TW/v5/market/kline for changes. Please note that BybitAPI v3 timestamps are in seconds, and in BybitAPI v5 they are even milliseconds.