X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=helper.py;fp=helper.py;h=fa92ac71ab631d78f36ffeacc4ad1d94bfecb63f;hb=eb9c92e155941b51042ba57e23f651454bd8e55a;hp=d9c69cc45ee80e2a658db164cf03ea95c762189a;hpb=17ff995eb623dcaea579e33e507091d6169c52e5;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git 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")