sammchardy / python-kucoin

Kucoin REST and Websocket API python implementation
https://python-kucoin.readthedocs.io/en/latest/
MIT License
350 stars 148 forks source link

Did i install wrong? #91

Closed D1tzy closed 2 years ago

D1tzy commented 2 years ago

I'm on mac and ran 'pip3 install python-kucoin', but im having trouble accessing the package now. just to make sure im getting data properly, im trying to print the klines for btc-usdt.

`from kucoin.client import Client

BASE_URL = 'https://api.kucoin.com'

client = Client(url = BASE_URL)

bars = client.get_kline_data('BTC-USDT', '1min') print(bars)`

but the error i get when im running this is 'No module named 'kucoin.client'; 'kucoin' is not a package', which im pretty sure means its not detecting the package i installed. but when i try to run 'pip3 install python-kucoin' again it says 'Requirement already satisfied: python-kucoin in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (2.1.2)'. what am i doing wrong.

this is all the code i have in my project besides pycache with my kucoin.cpython-39.pyc file.