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