feat: binance exchange support
This commit is contained in:
parent
81702e2132
commit
0fc7ffefb1
10 changed files with 77 additions and 7 deletions
|
|
@ -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 }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue