-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix kraken products decimal precision in update-products.sh #794
Conversation
…un increment for kraken products
@@ -1,352 +1,362 @@ | |||
var KrakenClient = require('kraken-api'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to completely redo the indenting of this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's my fault on last commit on exchange.js on my fork, but this commit is not included in this pull request. Only update-products.sh and products.json should be merged.
Anyway, if you are interested in my fix for kraken connection error I'll fix the indenting asap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure am, so please do :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok :) this evening. I'll ping you when done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed indenting and
I tried to fix Issue #800 , please look at line 349 in exchange.js
order.price = n(orderData.price).format('0.00000000')
Tell me what you think about it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
var public_client, authed_client | ||
// var recoverableErrors = new RegExp(/(ESOCKETTIMEDOUT|ETIMEDOUT|ECONNRESET|ECONNREFUSED|ENOTFOUND|API:Invalid nonce|API:Rate limit exceeded|between Cloudflare and the origin web server)/) | ||
var recoverableErrors = new RegExp(/(ESOCKETTIMEDOUT|ETIMEDOUT|ECONNRESET|ECONNREFUSED|ENOTFOUND|API:Invalid nonce|between Cloudflare and the origin web server|The web server reported a gateway time\-out|The web server reported a bad gateway|525\: SSL handshake failed)/) | ||
var silencedRecoverableErrors = new RegExp(/(ESOCKETTIMEDOUT|ETIMEDOUT)/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still wrong indented here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for that :( fixed
Fix automatic products generation. (update-products.sh)
Fix commit #757 that overwrote minimum increment for Kraken products
Restored changes in "Fix kraken products for krakens update on decimal precision #616"