From 57435f0de6de95c268dc109bd753fe910d8ea005 Mon Sep 17 00:00:00 2001 From: william Date: Fri, 20 Nov 2020 10:13:48 +0100 Subject: [PATCH] make cryptocurrency configurable --- commands/stack.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/stack.js b/commands/stack.js index 7d223c6..8dca565 100644 --- a/commands/stack.js +++ b/commands/stack.js @@ -1,8 +1,7 @@ module.exports = async (kraken, validate, getEnv) => { - const [fiat, amount] = getEnv('KRAKEN_API_FIAT', 'KRAKEN_BUY_AMOUNT') + const [crypto, fiat, amount] = getEnv('KRAKEN_API_CRYPTO', 'KRAKEN_API_FIAT', 'KRAKEN_BUY_AMOUNT') // https://www.kraken.com/features/api - const crypto = 'XBT' const pair = `${crypto}${fiat}` // Fetch and display information