make cryptocurrency configurable
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user