Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Fix kraken products decimal precision in update-products.sh #794

Merged
merged 4 commits into from
Dec 5, 2017

Conversation

MT00x
Copy link
Contributor

@MT00x MT00x commented Dec 4, 2017

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"

@@ -1,352 +1,362 @@
var KrakenClient = require('kraken-api'),
Copy link
Owner

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?

Copy link
Contributor Author

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

Copy link
Owner

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 :)

Copy link
Contributor Author

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

Copy link
Contributor Author

@MT00x MT00x Dec 5, 2017

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 :)

Copy link
Owner

@DeviaVir DeviaVir left a 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)/)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still wrong indented here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for that :( fixed

@DeviaVir DeviaVir merged commit 3a34599 into DeviaVir:master Dec 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants