CyberPunkMetalHead / gateio-crypto-trading-bot-binance-announcements-new-coins

This is a crypto trading bot that scans the Binance Annoucements page for new coins, and places trades on Gateio
MIT License
1.21k stars 303 forks source link

Update main.py #30

Closed mikeczabator closed 2 years ago

mikeczabator commented 2 years ago

printing the sold message and removing the existing coin from orders.json only makes sense if test_mode=false and if the order didn't raise an exception.

The code as it was could delete the order from orders.json regardless if it was successful or not.