You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromkucoin.clientimportClientapi_key='xxxxxxxxxxxxxxxxxxxxxxxx'api_secret='xxxxxxxxxxxxxxxxxxxxxxxx'api_passphrase='xxxxxxxxxxxxxxxxxxxxxxxx'client=Client(api_key, api_secret, api_passphrase)
# client = Client(api_key, api_secret, api_passphrase, sandbox=True)# get currenciescurrencies=client.get_currencies()
print(currencies)
# open a new orderorder=client.create_market_order('KCS', Client.SIDE_BUY, size=5)
print(order)
Error
Traceback (most recent call last):
File "C:\Users\MAX\Documents\trade.py", line 15, in <module>
order = client.create_market_order('KCS', Client.SIDE_BUY, size=5)
File "C:\Users\MAX\AppData\Local\Programs\Python\Python310\lib\site-packages\kucoin\client.py", line 942, in create_market_order
return self._post('orders', True, data=data)
File "C:\Users\MAX\AppData\Local\Programs\Python\Python310\lib\site-packages\kucoin\client.py", line 192, in _post
return self._request('post', path, signed, api_version, **kwargs)
File "C:\Users\MAX\AppData\Local\Programs\Python\Python310\lib\site-packages\kucoin\client.py", line 160, in _request
return self._handle_response(response)
File "C:\Users\MAX\AppData\Local\Programs\Python\Python310\lib\site-packages\kucoin\client.py", line 170, in _handle_response
raise KucoinAPIException(response)
kucoin.exceptions.KucoinAPIException: KucoinAPIException 400003: KC-API-KEY not exists
Why it's not possible to open a new order?
Thank you for any kind of help in advance.
The text was updated successfully, but these errors were encountered:
Error
Why it's not possible to open a new order?
Thank you for any kind of help in advance.
The text was updated successfully, but these errors were encountered: