From 2d096e2956eedc29bfc2ea6652c78276307a2152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Mon, 23 May 2022 12:20:26 +0100 Subject: [PATCH] fix: increase kraken nonce precision --- lib/plugins/exchange/kraken.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/plugins/exchange/kraken.js b/lib/plugins/exchange/kraken.js index b3f226fe..3b5e2032 100644 --- a/lib/plugins/exchange/kraken.js +++ b/lib/plugins/exchange/kraken.js @@ -16,7 +16,12 @@ const loadConfig = (account) => { 'privateKey': 'secret' } const mapped = _.mapKeys(key => mapper[key] ? mapper[key] : key)(account) - return { ...mapped, timeout: 3000 } + + return { + ...mapped, + timeout: 3000, + nonce: function () { return this.microseconds() } + } } const loadOptions = () => ({ expiretm: '+60' })