I think it is bad idea to log action as successful before it is actually done. This can result in action is logged but actually not executed successfully which can lead to false sense of everything has been done correctly when reviewing the logs while the action actually failed.
I think it is bad idea to log action as successful before it is actually done. This can result in action is logged but actually not executed successfully which can lead to false sense of everything has been done correctly when reviewing the logs while the action actually failed.
https://github.com/chrisleekr/binance-trading-bot/blob/209d2e081ec63259c0c0b6fc1eb3606d13bd8786/app/cronjob/trailingTradeHelper/configuration.js#L393-L395