CodeReclaimers / btce-api

Python wrapper around the public and trading APIs of BTC-e.com
MIT License
191 stars 123 forks source link

Update Digit Truncation to Rounding #5

Closed g4nd41ph closed 11 years ago

g4nd41ph commented 11 years ago

At the moment, if more digits than the normally allowed maximum are specified, additional digits will be truncated away rather than being rounded. This may seem small, but for those writing automated traders based on this library, it might be significant after many trades. Added in a round() before converting the value to a string and truncating. Please merge if you feel appropriate.

g4nd41ph commented 11 years ago

OK, fixed it properly.

alanmcintyre commented 11 years ago

Thanks--I'll get to this later today!