question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Python][Kucoin] Got an exception while calling fetch_balance of kucoin.

See original GitHub issue
  • OS: win7
  • Programming Language: python
  • CCXT version: 1.10.631
  • Exchange: Kucoin
  • Method: fetch_balance
kucoin = ccxt.kucoin()
kucoin.apiKey = KUCOIN_KEY
kucoin.secret = KUCOIN_SECRET
balance = kucoin.fetch_balance()

Traceback (most recent call last): File “E:/workspace/python/crypto-arbitrage/check_balance.py”, line 15, in <module> balance = kucoin.fetch_balance() File “E:\workspace\python\envs\py2env\lib\site-packages\ccxt\kucoin.py”, line 261, in fetch_balance }, params)) File “E:\workspace\python\envs\py2env\lib\site-packages\ccxt\kucoin.py”, line 562, in request response = self.fetch2(path, api, method, params, headers, body) File “E:\workspace\python\envs\py2env\lib\site-packages\ccxt\base\exchange.py”, line 296, in fetch2 return self.fetch(request[‘url’], request[‘method’], request[‘headers’], request[‘body’]) File “E:\workspace\python\envs\py2env\lib\site-packages\ccxt\base\exchange.py”, line 361, in fetch self.handle_errors(response.status_code, response.reason, url, method, None, self.last_http_response) File “E:\workspace\python\envs\py2env\lib\site-packages\ccxt\kucoin.py”, line 557, in handle_errors self.throw_exception_or_error_code(response) File “E:\workspace\python\envs\py2env\lib\site-packages\ccxt\kucoin.py”, line 547, in throw_exception_or_error_code raise InvalidNonce(self.id + ’ ’ + message) ccxt.base.errors.InvalidNonce: kucoin Invalid nonce

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
kroitorcommented, Jan 11, 2018

@HiddenFox ok, this is most likely due to clock unsynchronization or a different timezone. Can you set your system clock to UTC and synchronize it with an online timeserver, then retry again?

2reactions
kroitorcommented, Jan 11, 2018

Yep, wrote that simultaneously )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exceptions — python-kucoin 0.2.0 documentation
On an API call error a kucoin.exceptions.KucoinAPIException will be raised. The exception provides access to the. status_code - response status code ...
Read more >
Kucoin API wallet balance - python - Stack Overflow
I am trying to check my Spot account balance using the Kucoin API, get_accounts().(Github: Link) And although on github and API ...
Read more >
python-kucoin Documentation - Read the Docs
This is an unofficial Python wrapper for the Kucoin exchanges REST and Websocket API v2. I am in no way affiliated.
Read more >
KuCoin API - An Introductory Guide - AlgoTrading101 Blog
Yes, setting up an account on KuCoin is free, easy, and fast. ... kucoin-python. Have in mind that the API request limit is...
Read more >
KuCoin API Python Tutorial (2022) - Analyzing Alpha
You need an API Key to make interface calls to Python Kucoin Client API. ... and you may get a timeout exception while...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found