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.
for some crypto lot_size equals -1 and float.format doesn't like that, so I hardcoded it to equals 0 in these situations (client.create_order function has no problem with value formated with this lot_size)
increased timeout value in get_feed_data function, which fixes getting some feeds for me
client.create_test_order function is used only while using testnet, because leaving it on live occured to buy 2 time more QUANTITY then it should (at least for me)
handle all types of exeptions while using client.create_order (and also print error) in buy and sell functions, so bugs that doesn't really matter wouldn't stop the bot
sometimes printing successful order was throwing a bug that 'order' variable was empty, so added basic checks if it is not
With this changes bot is working lovely on my side even on live. 14 hours and still no bugs.
Earned 0.0004 BTC by that time 😄
With this changes bot is working lovely on my side even on live. 14 hours and still no bugs. Earned 0.0004 BTC by that time 😄