CyberPunkMetalHead / Binance-News-Sentiment-Bot

This is a fully functioning Binance trading bot that takes into account the news sentiment for the top 100 crypto feeds. If you like this project consider donating though the Brave browser to allow me to continuously improve the script.
MIT License
1.57k stars 290 forks source link

Sell asset error #25

Open Conight opened 3 years ago

Conight commented 3 years ago

https://github.com/CyberPunkMetalHead/Binance-News-Sentiment-Bot/blob/10dc4e8ac8820dca8cc1cc1d8ded0384b687cd59/news-analysis.py#L405

When coins_in_hand[coin] goes to small, and binance will reject sell order for asset.

BTC: 0.046819 * 99.5 / 100 = 0.046584905, it has 9 decimal places.

CyberPunkMetalHead commented 3 years ago

Are you getting a lot related error?

Conight commented 3 years ago

Only getting this error once in dry run mode.

CyberPunkMetalHead commented 3 years ago

This issue should now be solved with the last commit, can you verify?