CyberPunkMetalHead / Binance-volatility-trading-bot

This is a fully functioning Binance trading bot that measures the volatility of every coin on Binance and places trades with the highest gaining coins If you like this project consider donating though the Brave browser to allow me to continuously improve the script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Max Coins Set To "0" but the bot still keeps buying

celltronic01 opened this issue · comments

So, here is a new issue I just came across that I haven't encountered before. Today, as usual my portfolio was holding 20 coins, the market was is in the red, I didn't want to buy any coins yet incase some sold later during the day assuming the market may swing up. I have many times set the Max Coins setting to 0 not wanting to buy any coins.

Well, I did the same thing today. I went ahead and set the Max Coins: 0 and guess what? It went ahead and immediately purchased 19 more coins and I now have 39 coins

Is there a logical explanation to this?

image
From the code point of view, Max Coins Set To "0" means that there is no limit to the number of coins purchased, that is, infinity

That is correct, set it to -1 if you do not want it to ever buy.

Will the bot take changes to config.yml when live?