refactor: simplify filter function and remove unnecessary comments

This commit is contained in:
José Oliveira 2021-08-09 01:01:53 +01:00
parent 99177c01bb
commit 46116feb60
4 changed files with 1 additions and 8 deletions

View file

@ -15,6 +15,4 @@ const loadConfig = (account) => {
return { ...mapped, timeout: 3000 }
}
// Documentation mentions a mandatory field 'time', not sure how ccxt handles this, probably works if we send this via options
module.exports = { loadConfig, REQUIRED_CONFIG_FIELDS, CRYPTO, FIAT, ORDER_TYPE }

View file

@ -15,7 +15,4 @@ const loadConfig = (account) => {
return { ...mapped, timeout: 3000 }
}
// Documentation mentions a field 'nonce', doesn't specify if it's mandatory
// or not but we should pay attention to this when testing
module.exports = { loadConfig, REQUIRED_CONFIG_FIELDS, CRYPTO, FIAT, ORDER_TYPE }

View file

@ -6,7 +6,6 @@ const { ORDER_TYPES } = require('./consts')
const ORDER_TYPE = ORDER_TYPES.MARKET
const { BTC, BCH, ETH, LTC, USDT } = COINS
const CRYPTO = [BTC, ETH, LTC, BCH, USDT]
// ftx supports EUR as well but only for certain cryptos: ETH, BTC
const FIAT = ['USD']
const REQUIRED_CONFIG_FIELDS = ['apiKey', 'privateKey']