DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.22k stars 2.04k forks source link

Invalid Quantity Error #1671

Open carpionetwork opened 6 years ago

carpionetwork commented 6 years ago

KINDLY READ AND ACT ON THE BELOW INFORMATION BEFORE FILING YOUR ISSUE!

Please go to our Zenbot subreddit for questions, help and support:

https://www.reddit.com/r/zenbot/

If you open a GitHub issue, here is our policy:

  1. It must be a bug or a feature request.
  2. The form below must be filled out.

Here's why we have that policy: Zenbot developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals and rarely leads to bugfixes or useful enhancements. GitHub also notifies hundreds of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Reddit.


Remove everything above before creating your issue.

System information

Describe the problem

Prior to the most recent git pull buys and sells were working normally, but with the recent updates for every sell I am seeing:

code":-1013,"msg":"Invalid quantity."} at binance.handleErrors (/home/crypto/bots/zenbot/ada/node_modules/ccxt/js/binance.js:863:31) at response.text.then (/home/crypto/bots/zenbot/ada/node_modules/ccxt/js/base/Exchange.js:513:18) at at process._tickCallback (internal/process/next_tick.js:188:7) constructor: [Function: InvalidOrder] }

and during a typical buy signal the code does not print 'buy' and happily bypasses the buy times and once a 'sell' signal happens the above error is produced.

There are coins to sell and funds for buying.

I changed the max_sell/buy_loss_pct to 0 and a greater number just to see if it would trigger and it is no longer being triggered.

Anyone else seeing similar issues?

Thank you, Jeff C

mekstrem commented 6 years ago

Two questions:

  1. Which exchange are you getting these errors on?
  2. What pair are you trading?

Usually this happens because the values in the exchanges products.json are mismatching the exchanges criterias.

carpionetwork commented 6 years ago

Thanks for the reply.

Gdax (btc/usd) Binance (ada/btc, xlm,btc)

Should running the products.json update script sync the bot and the exchange back up?

Sidenote: I run three separate zenbot instances each with their own db, so they should not have conflicting trade signals.

carpionetwork commented 6 years ago

So I installed another zenbot instance and it's throwing the same error.... -- git clone -- npm install

I have enough funds to buy >15usd, which I read may be a Binance requirement.

Here is the error:

manual limit BUY command executed An error occurred { Error: binance {"code":-1013,"msg":"Invalid quantity."} at binance.handleErrors (/home/crypto/bots/zenbot/xlm/node_modules/ccxt/js/binance.js:863:31) at response.text.then (/home/crypto/bots/zenbot/xlm/node_modules/ccxt/js/base/Exchange.js:513:18) at process._tickCallback (internal/process/next_tick.js:68:7) constructor: [Function: InvalidOrder] }

carpionetwork commented 6 years ago

Update:

During a new install package.json lists sass module (v4.8.3) but it was throwing a 404 error, so updating this to (4.9.2), seems to have fixed the buy / sell issue.

Will run it for a few hours and see how it goes.

carpionetwork commented 6 years ago

So far so good. Zenbot has been chugging along. Sidenote: it seems to run well with nodejs v10 and mongodb v4.0.