From 70b5a215a5f9727fb2cce9eb9023d86a6276d46e Mon Sep 17 00:00:00 2001 From: Charles De Groote Date: Thu, 10 Mar 2022 23:33:09 +0200 Subject: [PATCH] Update the nonce generation to avoid nonce error To avoid `{"error"=>["EAPI:Invalid nonce"]}` --- lib/kraken_ruby_client/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kraken_ruby_client/client.rb b/lib/kraken_ruby_client/client.rb index fa6bb16..e2ba0ef 100755 --- a/lib/kraken_ruby_client/client.rb +++ b/lib/kraken_ruby_client/client.rb @@ -587,7 +587,7 @@ def parse_response(http) # current Unix Time. # def generate_nonce - (Time.now.to_f * 1_000_000).to_i + ((Time.now.to_f * 1_000_000).to_i << 10).to_s end def auth_url(method, nonce, params)