aboutsummaryrefslogtreecommitdiff
path: root/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'helper.py')
-rw-r--r--helper.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/helper.py b/helper.py
index 8ef2d64..3e39785 100644
--- a/helper.py
+++ b/helper.py
@@ -118,6 +118,14 @@ def print_orders(market, base_currency="BTC"):
118 print(balance) 118 print(balance)
119 TradeStore.print_all_with_order() 119 TradeStore.print_all_with_order()
120 120
121def print_balances(market, base_currency="BTC"):
122 BalanceStore.fetch_balances(market)
123 for currency, balance in BalanceStore.all.items():
124 print(balance)
125 if base_currency is not None:
126 print("total:")
127 print(sum(BalanceStore.in_currency(base_currency, market).values()))
128
121def process_sell_needed__1_sell(market, base_currency="BTC", debug=False): 129def process_sell_needed__1_sell(market, base_currency="BTC", debug=False):
122 prepare_trades(market, base_currency=base_currency, debug=debug) 130 prepare_trades(market, base_currency=base_currency, debug=debug)
123 TradeStore.prepare_orders(compute_value="average", only="dispose") 131 TradeStore.prepare_orders(compute_value="average", only="dispose")