From 177874217ded1d7ced687b3143b48221177551ad Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Wed, 21 Apr 2021 11:41:38 +0200 Subject: [PATCH] Increase request timeout https://support.kraken.com/hc/en-us/articles/360000914386-How-can-I-avoid-excessive-timeouts- --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a37667b..0375381 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ const validate = process.argv.includes('--validate') || process.env['KRAKEN_DRY_ ;(async () => { try { const [apiKey, secret] = getEnv('KRAKEN_API_KEY', 'KRAKEN_API_SECRET') - const kraken = new Kraken(apiKey, secret) + const kraken = new Kraken(apiKey, secret, { timeout: 30000 }) const cmd = require(`./commands/${command}`) await cmd(kraken, validate, { getEnv, getEnvOpt })