From a69dfb3eb296b9c795cfa48dd31edcdc1b3d5398 Mon Sep 17 00:00:00 2001 From: Mike van Rossum Date: Tue, 4 Sep 2018 10:46:28 +0800 Subject: [PATCH] always overwrite nonce --- kraken.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kraken.js b/kraken.js index 4cedb7f..88d8cc1 100644 --- a/kraken.js +++ b/kraken.js @@ -148,9 +148,7 @@ class KrakenClient { const path = '/' + this.config.version + '/private/' + method; const url = this.config.url + path; - if(!params.nonce) { - params.nonce = new Date() * 1000; // spoof microsecond - } + params.nonce = new Date() * 1000; // spoof microsecond if(this.config.otp !== undefined) { params.otp = this.config.otp;