-def process_sell_needed__1_sell(market, base_currency="BTC", debug=False):
- prepare_trades(market, base_currency=base_currency, debug=debug)
+def print_balances(market, base_currency="BTC"):
+ BalanceStore.fetch_balances(market)
+ if base_currency is not None:
+ ReportStore.print_log("total:")
+ ReportStore.print_log(sum(BalanceStore.in_currency(base_currency, market).values()))
+
+def reset_all():
+ # use them as regular classes, sub-object of market
+ ReportStore.logs = []
+ BalanceStore.all = {}
+ TradeStore.all = []
+
+def process_sell_needed__1_sell(market, liquidity="medium", base_currency="BTC", debug=False):
+ ReportStore.log_stage("process_sell_needed__1_sell_begin")
+ BalanceStore.fetch_balances(market, tag="process_sell_needed__1_sell_begin")
+ prepare_trades(market, liquidity=liquidity, base_currency=base_currency, debug=debug)