fix: increase kraken nonce precision

This commit is contained in:
Sérgio Salgado 2022-05-23 12:20:26 +01:00
parent 8480658bd2
commit 2d096e2956

View file

@ -16,7 +16,12 @@ const loadConfig = (account) => {
'privateKey': 'secret' 'privateKey': 'secret'
} }
const mapped = _.mapKeys(key => mapper[key] ? mapper[key] : key)(account) const mapped = _.mapKeys(key => mapper[key] ? mapper[key] : key)(account)
return { ...mapped, timeout: 3000 }
return {
...mapped,
timeout: 3000,
nonce: function () { return this.microseconds() }
}
} }
const loadOptions = () => ({ expiretm: '+60' }) const loadOptions = () => ({ expiretm: '+60' })