Merge pull request #1237 from chaotixkilla/fix-increase-kraken-exchange-nonce-precision

Increase Kraken API request nonce precision
This commit is contained in:
Rafael Taranto 2022-05-24 09:50:33 +01:00 committed by GitHub
commit ac2b3f1d80

View file

@ -16,7 +16,12 @@ const loadConfig = (account) => {
'privateKey': 'secret'
}
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' })