From eb9c92e155941b51042ba57e23f651454bd8e55a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 24 Feb 2018 23:35:40 +0100 Subject: Add main running file and fetch information from database --- helper.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'helper.py') diff --git a/helper.py b/helper.py index d9c69cc..fa92ac7 100644 --- a/helper.py +++ b/helper.py @@ -127,6 +127,12 @@ def print_balances(market, base_currency="BTC"): 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") -- cgit v1.2.3