aboutsummaryrefslogtreecommitdiff
path: root/helper.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-26 14:18:34 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-26 14:18:34 +0100
commitf70bb858007cd3be6766ee0aa4a3d9133952eb98 (patch)
tree0c56dd45d99ab6409cda4ef240759ec56981a351 /helper.py
parentd24bb10c3cad1f144b76022481f46b4524873f4b (diff)
downloadTrader-f70bb858007cd3be6766ee0aa4a3d9133952eb98.tar.gz
Trader-f70bb858007cd3be6766ee0aa4a3d9133952eb98.tar.zst
Trader-f70bb858007cd3be6766ee0aa4a3d9133952eb98.zip
Retry running order when available balance is insufficient
Diffstat (limited to 'helper.py')
-rw-r--r--helper.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/helper.py b/helper.py
index 6d28c3f..4d73078 100644
--- a/helper.py
+++ b/helper.py
@@ -98,6 +98,7 @@ def print_orders(market, base_currency="BTC"):
98 market.trades.prepare_orders(compute_value="average") 98 market.trades.prepare_orders(compute_value="average")
99 99
100def print_balances(market, base_currency="BTC"): 100def print_balances(market, base_currency="BTC"):
101 market.report.log_stage("print_balances")
101 market.balances.fetch_balances() 102 market.balances.fetch_balances()
102 if base_currency is not None: 103 if base_currency is not None:
103 market.report.print_log("total:") 104 market.report.print_log("total:")