X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=store.py;fp=store.py;h=2b5c18a1a1a65eb241af2677d322195a5202d18d;hb=90d7423eec074a0ed0af680c223180f8d7e1d4e6;hp=b3ada4567e38a28613efd0159dafd33ece105a0d;hpb=341a4b07e8c205711fff0e93dd3679708828a961;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git diff --git a/store.py b/store.py index b3ada45..2b5c18a 100644 --- a/store.py +++ b/store.py @@ -209,6 +209,17 @@ class ReportStore: "action": action, }) + def log_market(self, args, user_id, market_id, report_path, debug): + self.add_log({ + "type": "market", + "commit": "$Format:%H$", + "args": vars(args), + "user_id": user_id, + "market_id": market_id, + "report_path": report_path, + "debug": debug, + }) + class BalanceStore: def __init__(self, market): self.market = market