askmike / bitstamp

Bitstamp REST API wrapper
81 stars 54 forks source link

Fix the "invalid nonce" problem #17

Closed gmelika closed 8 years ago

gmelika commented 10 years ago

the nonce calculation depends on Date.getMilliseconds() which returns a number that's between 1-3 digits long. I added zero-padding to make sure nonce is always increasing

kenany commented 9 years ago

I don't think this is needed anymore after https://github.com/askmike/bitstamp/commit/158289c44eabaec9936a9f9c8a5e0477c1aedad2. Also, this PR seems to do a lot more than just fix the nonce (whitespace removal, semicolon addition, moving variable declarations, etc.).