kucoin-python-sdk icon indicating copy to clipboard operation
kucoin-python-sdk copied to clipboard

Import Error

Open mahdiciven opened this issue 1 year ago • 1 comments

Following is my whole code: from kucoin.client import Market client = Market(url='https://api.kucoin.com')

klines = client.get_kline('BTC-USDT','1min') print(klines)

and it gives this error: ImportError: cannot import name 'Market' from 'kucoin.client'

apparently 'kucoin.client' doesn't have 'Market'

mahdiciven avatar May 25 '23 08:05 mahdiciven

@mahdiciven apparently the class is MarketData

DavidEBrumbaugh avatar Jun 01 '23 02:06 DavidEBrumbaugh

Please try updating to the latest version of the SDK and modify your code to try again. If you encounter any issues, feel free to provide feedback.

ISAAC-XXYYZZ avatar Jul 29 '24 08:07 ISAAC-XXYYZZ