"Nonce must be greater" problem in Poloniex
See original GitHub issueHi, 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:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, thanks for your help, is solved now 😃
@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?