diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-26 14:18:34 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-26 14:18:34 +0100 |
commit | f70bb858007cd3be6766ee0aa4a3d9133952eb98 (patch) | |
tree | 0c56dd45d99ab6409cda4ef240759ec56981a351 /helper.py | |
parent | d24bb10c3cad1f144b76022481f46b4524873f4b (diff) | |
download | Trader-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.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 | ||
100 | def print_balances(market, base_currency="BTC"): | 100 | def 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:") |