Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ed-shrooma opened this issue Apr 4, 2023 · 2 comments
Open

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

Ed-shrooma opened this issue Apr 4, 2023 · 2 comments

Comments

@Ed-shrooma
Copy link

pybit installed 5.0.0

@cyberjunky
Copy link

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
Copy link

KageRyo commented Mar 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants