chrisleekr / binance-trading-bot

Automated Binance trading bot - Trade multiple cryptocurrencies. Buy low/sell high with Grid Trading. Integrated with TradingView technical analysis
MIT License
5.03k stars 1.09k forks source link

Failed execution when the price < 100 sats in trading on xxxBTC pairs #226

Open horizontv3 opened 3 years ago

horizontv3 commented 3 years ago

For example, on XVGBTC pair (current price = 0.00000079).

I've got notifications in Slack, as follows:

XVGBTC Buy Action (16:36:19.890): STOP_LOSS_LIMIT

Execution failed (16:36:20.813) Job: Trailing Trade Code: -1100 Message: Illegal characters found in parameter 'price'; legal range is '^([0-9]{1,20})(.[0-9]{1,20})?$'. Stack: Error: Illegal characters found in parameter 'price'; legal range is '^([0-9]{1,20})(.[0-9]{1,20})?$'. at /srv/node_modules/binance-api-node/dist/http-client.js:93:17 at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:95:5) at async execute (/srv/dist/server.js:1:25474) at async /srv/dist/server.js:1:3023 at async Promise.all (index 27) at async execute (/srv/dist/server.js:1:1712) at async /srv/dist/server.js:1:65227 at async CronJob. (/srv/dist/server.js:1:65065)

BTW, many thanks for your awesome bot.

chrisleekr commented 3 years ago

Oh, that seems a bug you found.

I will fix up when I get time.