fix: increase kraken nonce precision
This commit is contained in:
parent
8480658bd2
commit
2d096e2956
1 changed files with 6 additions and 1 deletions
|
|
@ -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' })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue