-
Notifications
You must be signed in to change notification settings - Fork 2k
Conversation
… Docker for Windows
Quadriga API public and private queries are working, testing the getQuote and getBalance.
* Fix bug in buy function (typo) prevent callback * Change formatting to follow the rest of zenbot
There is a general fall through to setTimer at the end of the function that must always run, the conditionals were causing additional uncessary checks which increases probability of hitting API rate limits.
Accidentally closed, sorry |
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.
I'm not sure how to remove the update-products.sh script from the pull request. But it isn't really related to the change and certainly you don't want it.
} | ||
|
||
if (err) return retry('getTrades', func_args, err) | ||
if (trades.error) return retry('getTrades', func_args, trades.error) |
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.
weird indenting
var client = authedClient() | ||
client.api('balance', function(err, wallet) { | ||
if (err) return retry('getBalance', null, err) | ||
if (wallet.error) return retry('getBalance', null, wallet.error) |
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.
weird indenting
var client = publicClient() | ||
client.api('ticker', params, function(err, quote) { | ||
if (err) return retry('getQuote', func_args, err) | ||
if (quote.error) return retry('getQuote', func_args, quote.error) |
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.
weird indenting
var client = authedClient() | ||
client.api('cancel_order', params, function(err, body) { | ||
if (err) return retry('cancelOrder', func_args, err) | ||
if (body.error) return retry('cancelOrder', func_args, body.error) |
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.
weird indenting
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.
(more weird indenting problems down below)
update-selectors.sh
Outdated
node ./zenbot.sh backfill kraken.XETH-ZUSD --days 365 | ||
node ./zenbot.sh backfill kraken.XXBT-ZCAD --days 365 | ||
node ./zenbot.sh backfill kraken.XXBT-ZCAD --days 365 | ||
node ./zenbot.sh backfill kraken.XETH-XXBT --days 365 |
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.
if you do not wish to include this file in your PR, you can just git rm update-selectors.sh
and the usual git add --all
git commit
git push
docker-compose.yml
Outdated
@@ -12,10 +12,12 @@ mongodb: | |||
image: mongo:latest | |||
volumes_from: | |||
- mongodb-data | |||
volumes: | |||
- ./data/archive:/archive |
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.
I'm not sure what the point of this is, as far as I know mongo does nothing with /archive
, so your ./data/archive
is most likely empty?
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.
Yes, entirely. I use it to store a mongodump archive and to restore on the occasion I clear the volume (or want to restart from my snapshot). This isn't necessary, but I would recommend not exposing the db data files to the external host since Mongo uses memory mapped files and that isn't compatible in virtualized environments.
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.
I'll remove this since it isn't strictly related
Not related to this chance, didn't serve a particularly usefull purpose
* Docker compose update to use internal data volume. Makes it work with Docker for Windows * Initial exchange implemented Quadriga API public and private queries are working, testing the getQuote and getBalance. * JS Beautifier Config * Adjusting minimum and increments for quadriga products * Bug fixes and formatting * Fix bug in buy function (typo) prevent callback * Change formatting to follow the rest of zenbot * Fix markdown percentage option description * Fixed issues with buy command * Fix error handling in API calls * Prevent spamming calls to getOrder There is a general fall through to setTimer at the end of the function that must always run, the conditionals were causing additional uncessary checks which increases probability of hitting API rate limits. * Sell function tested and fixes * Fix formatting remove update-selectors script * Remove archives mapping from docker-compose.yml Not related to this chance, didn't serve a particularly usefull purpose * Update docker-compose.yml
Adding support for the Quadruga API