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.09k stars 1.1k forks source link

Invalid return statement #662

Open rando128 opened 4 months ago

rando128 commented 4 months ago

I came across this small but nasty error while reusing @habibalkhabbaz ATH candles implementation for a new feature.

The loop over the symbols doesn't loop at all if buyATHRestrictionEnabled is not true for all symbols. The return statement should be a continue statement: https://github.com/chrisleekr/binance-trading-bot/blob/a9e50e8ab8636a00c892b087a80501fa6d636721/app/binance/ath-candles.js#L39

Unfortunately I can't submit a PR now since my codeline is too far from master.