feat: binance exchange support

This commit is contained in:
José Oliveira 2022-05-10 11:28:21 +01:00
parent 81702e2132
commit 0fc7ffefb1
10 changed files with 77 additions and 7 deletions

View file

@ -10,7 +10,9 @@ const FIAT = ['USD']
const REQUIRED_CONFIG_FIELDS = ['apiKey', 'privateKey']
const loadConfig = (account) => {
const mapper = {}
const mapper = {
'privateKey': 'secret'
}
const mapped = _.mapKeys(key => mapper[key] ? mapper[key] : key)(account)
return { ...mapped, timeout: 3000 }
}