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.

"Nonce must be greater" problem in Poloniex

See original GitHub issue

Hi, first of all, amazing project, thanks 😃

It seems that Poloniex is failing somehow, I wrote the following supersimple code:

import ccxt
polo   = ccxt.poloniex({
    'apiKey': 'MYKEY',
    'secret': 'MYSECRET',
})
print(polo.fetch_balance())

And it gives this error:

$ python bot.py 
Traceback (most recent call last):
  File "bot.py", line 36, in <module>
    print(polo.fetch_balance())
  File "/Library/Python/2.7/site-packages/ccxt/exchanges.py", line 15845, in fetch_balance
    'account': 'all',
  File "/Library/Python/2.7/site-packages/ccxt/exchanges.py", line 16134, in request
    response = self.fetch2(path, api, method, params, headers, body)
  File "/Library/Python/2.7/site-packages/ccxt/exchange.py", line 228, in fetch2
    return self.fetch(request['url'], request['method'], request['headers'], request['body'])
  File "/Library/Python/2.7/site-packages/ccxt/exchange.py", line 266, in fetch
    self.handle_rest_errors(e, e.code, text, url, method)
  File "/Library/Python/2.7/site-packages/ccxt/exchange.py", line 314, in handle_rest_errors
    self.raise_error(error, url, method, exception if exception else str(http_status_code), details)
  File "/Library/Python/2.7/site-packages/ccxt/exchange.py", line 213, in raise_error
    details,
ccxt.errors.ExchangeNotAvailable: poloniex POST https://poloniex.com/tradingApi 422   {"error":"Nonce must be greater than 150619298582500. You provided 1507295961."}

It is working correctly with other exchanges, so I guess my setup is correct.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
werewerecommented, Oct 7, 2017

Ok, thanks for your help, is solved now 😃

0reactions
dancjucommented, Mar 12, 2018

@kroitor thank you for replying! I found another solution: put all coroutines into one single thread.

May I ask another question? I only create one event loop in one thread. Why do I see multiple process with different pids?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Poloniex returns "Nonce must be greater than ..." #6335 - GitHub
This happens with about 5~10% chance, I have seen this error for several months. Today I noticed there are some updates on ccxt.js.poloniex, ......
Read more >
Nonce must be greater than error Poloniex : Cryptohopper
Hi there, Hoppers! Hopping on Poloniex? If you see the following error in your hoppers output: Could not get open orders: Nonce must...
Read more >
Poloniex API Reference: Introduction
The nonce parameter is an integer which must always be greater than the previous nonce used and does not need to increase by...
Read more >
Solutions For Nonce Error Caused By Threaded API Calls?
I just re-made these hung calls checking for a "Nonce must be greater than " prefix on error string. You can see the...
Read more >
How To Convert Bitcoin To Usd In Poloniex Bitcoin Original Stock ...
Poloniex Reduces To Zero Trading Fees For Bitcoin/USD Coin (BTC/USDC) ... an integer nonce must be chosen that is greater than the previous...
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