make cryptocurrency configurable

This commit is contained in:
william
2020-11-20 10:13:48 +01:00
parent e133d56072
commit 57435f0de6

View File

@@ -1,8 +1,7 @@
module.exports = async (kraken, validate, getEnv) => { 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 // https://www.kraken.com/features/api
const crypto = 'XBT'
const pair = `${crypto}${fiat}` const pair = `${crypto}${fiat}`
// Fetch and display information // Fetch and display information