npm-kraken-api icon indicating copy to clipboard operation
npm-kraken-api copied to clipboard

Solve nonce issues

Open KeesCBakker opened this issue 3 years ago • 0 comments

I saw some nonce issues coming back with Error: API:Invalid nonce. I looked at the code and I saw some spoofing that influenced the resolution of the nonce. That's why I changed it to reflect the actual micro seconds.

  • Update nonce to ms (got it from https://stackoverflow.com/a/61211455/201482).
  • Changed new Buffer to Buffer.from, this fixed the deprecated warning.
  • Upgraded the packages.
  • Added some endpoint of other PRs: 'CancelAll', 'AddExport', 'ExportStatus', 'RetrieveExport', 'RemoveExport'

Did some local testing. Seems to work fine.

Merged PRS #73 #69 #63.

KeesCBakker avatar Aug 23 '21 17:08 KeesCBakker