]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Trader.git/blobdiff - helper.py
Retry running order when available balance is insufficient
[perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Trader.git] / helper.py
index 6d28c3fc301e2196bb63f2a677619458442a5dcc..4d73078dbb99aed90f819c0ac9947f04a8f9d080 100644 (file)
--- a/helper.py
+++ b/helper.py
@@ -98,6 +98,7 @@ def print_orders(market, base_currency="BTC"):
     market.trades.prepare_orders(compute_value="average")
 
 def print_balances(market, base_currency="BTC"):
+    market.report.log_stage("print_balances")
     market.balances.fetch_balances()
     if base_currency is not None:
         market.report.print_log("total:")