sammchardy / python-kucoin

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

Unable to auth API #35

Closed noixez closed 5 years ago

noixez commented 6 years ago

Hey Guys,

My bot has worked for a long time; however, in the past few weeks I haven't used it, ran it again and received an auth error, I've also updated my API key without success.

Anyone have any idea whether there has been an update with the Kucoin API causing issues?

raceback (most recent call last): File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\tradingbot.py", line 34, in option1.getbalance() File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\option1.py", line 12, in getbalance pprint.pprint(client.get_coin_balance('DENT')) File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\kucoin\client.py", line 944, in get_coin_balance return self._get('account/{}/balance'.format(coin), True) File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\kucoin\client.py", line 177, in _get return self._request('get', path, signed, **kwargs) File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\kucoin\client.py", line 147, in _request return self._handle_response(response) File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\kucoin\client.py", line 161, in _handle_response raise KucoinAPIException(response) kucoin.exceptions.KucoinAPIException: KucoinAPIException UNAUTH: Invalid API Key Press any key to continue . . .

Regards Chris

sirspoon commented 6 years ago

I think there's some tickboxes for permissions on kucoin for the keys. My boy had a similar issue until I enabled all the tickboxes.

On Sun, 1 Jul 2018, 15:53 noixez, notifications@github.com wrote:

Hey Guys,

My bot has worked for a long time; however, in the past few weeks I haven't used it, ran it again and received an auth error, I've also updated my API key without success.

Anyone have any idea whether there has been an update with the Kucoin API causing issues?

raceback (most recent call last): File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\tradingbot.py", line 34, in option1.getbalance() File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\option1.py", line 12, in getbalance pprint.pprint(client.get_coin_balance('DENT')) File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\kucoin\client.py", line 944, in get_coin_balance return self._get('account/{}/balance'.format(coin), True) File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\kucoin\client.py", line 177, in _get return self._request('get', path, signed, **kwargs) File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\kucoin\client.py", line 147, in _request return self._handle_response(response) File "Z:\06. Programming Projects\00_02_CryptoBots\python-kucoin-develop\kucoin\client.py", line 161, in _handle_response raise KucoinAPIException(response) kucoin.exceptions.KucoinAPIException: KucoinAPIException UNAUTH: Invalid API Key Press any key to continue . . .

Regards Chris

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sammchardy/python-kucoin/issues/35, or mute the thread https://github.com/notifications/unsubscribe-auth/AWOMN7mz2zIl-O2xlkp-Td-FEwnT77Piks5uCOJVgaJpZM4U-Wiu .

noixez commented 6 years ago

Interesting, I've ticked everything and changed a few keys now, still no luck, strange! What about IP white list? I had mine set on "No Limit"

I'm so confuised

noixez commented 6 years ago

Feel free to close, what's the issue?

My main .py file declared api_key and api_secret; however, I also included .py forms whereby I also declared the keys which overwrote my original.

Just a new programmer here, sorry guys!

sammchardy commented 5 years ago

Closing because of new API version