-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Conversation
/var/projects/gekko/core/portfolioManager.js:138 you have unbalanced parenthesis could you please also undo whitespace change, so this can be cleanly merged? |
Fixed the issues. |
looks okay, thanks! it looks like you have commited someone's key and secret in mocha_test/portfolioManager.js
hm) |
Yes it is ok with the key and the test should pass. The key and secret is just for the sake to fill in the config fields to make the test work, otherwise the test will fail. I'll look into the merge conflict. |
Conflicts: package.json
I am assuming this error was specific to Bitstamp's v1 API. As we switched to the v2 API (for buy/sell orders) I think this should not be an issue anymore! |
actually, I didn't see the tests before. Keeping this open for a little bit.. |
Fix #266
ticker.ask had type of string and as a result the amount calculation failed. The price should be parsed as float.
Fix #240
Fixed floating point to 4 decimal places, because more than 4 places caused inaccurate calculations.
Btw shouldn't we make all the calculations using cents and satoshis and store all the monetary and asset values in an integer type?