-
Notifications
You must be signed in to change notification settings - Fork 2k
Nonce must be greater than x you provided y #1084
Comments
Just received it again.. i've also setup NTC without any improvement. |
Update: tried to setup a SC-BTC bot which actually trade and has no errors. LTC-USDT continues to do though. Edit: SC-BTC also reports same error now... What could be the cause? |
Update, for fun I tried to create everything on my remote server at scaleway, same error occurs. |
@Gudui I see this on poloniex too. I think the issue is that zenbot makes two instances of the poloniex API connection here: and here: Specifically, the problem isn't two instances, but two instances using the same API key. I've seen other systems use two API keys for poloniex, one for querying public APIs and the other for the private calls. Curious if this might fix this issue for good with zenbot too. |
@tiagosiebler |
Update @DeviaVir I've made a bugfix and recompiled. I'll let you know and create a PR if it solves the issue. |
@DeviaVir my fix by using the public_client variable for both calls, didn't work.. I cannot resolve this :). |
@Gudui try creating a second API key & secret in polo, then use that in the conf.js, e.g c.poloniex.key2 & c.poloniex.secret2. Lastly, edit the second instance to use the c.poloniex.key2 & c.poloniex.secret2 respectively: Can't try it out right now, but that's the idea I meant behind getting this fixed. This way the bot will use a different API key for the public and the private clients, avoiding what I think is causing an overlap in request timings. |
@tiagosiebler I'll recompile and try :-). |
Hi @tiagosiebler , I experience the same issue and I tried your suggestion but doesn't seem to fix the issue. Is it possible that it has something to do with the responsiveness of the Poloniex server itself? Greetings, |
@tiagosiebler and @DeviaVir It does not fix it as @FredericMa mentioned. Still getting the error |
I had this problem, and finally resolved it writing this code. It triggers the error, plucks the necessary nonce out of the error message, adds unix epoc time to it for good measure, and sets the new nonce. It's not pretty but it's solid. Note - this is for Python3.x . For safety you can call set_nonce() prior to executing any sell/buy. So far this has been bullet-proof for me.
|
I change nonce function and work for me. Install microtime packagenpm install microtime #Change the file "node_modules/poloniex.js/lib/poloniex.js"this code for this code
|
System information
Describe the problem
Receiving the following error when live trading.
{ error: 'Nonce must be greater than 151542773919200. You provided 151542773906900.' }
I've search in older issues and found several suggestions, e.g. new API key, etc, however, none of them solved my issue, and because of that, I'm not able to sell and buy.
Thanks in advance.
The text was updated successfully, but these errors were encountered: