aboutsummaryrefslogtreecommitdiff
path: root/market.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-08 02:15:50 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-08 11:35:16 +0100
commit9bde69bfc1dcd17a92ac2ee5abfcda5b30034d93 (patch)
tree456489d0088ab36dd7b3c438a597183134f43ccc /market.py
parentada1b5f109ebaa6f3adb7cd87b007c6db891811c (diff)
downloadTrader-9bde69bfc1dcd17a92ac2ee5abfcda5b30034d93.tar.gz
Trader-9bde69bfc1dcd17a92ac2ee5abfcda5b30034d93.tar.zst
Trader-9bde69bfc1dcd17a92ac2ee5abfcda5b30034d93.zip
Add merge method for report
Diffstat (limited to 'market.py')
-rw-r--r--market.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/market.py b/market.py
index 388dea0..c9629c9 100644
--- a/market.py
+++ b/market.py
@@ -46,6 +46,7 @@ class Market:
46 return cls(ccxt_instance, debug=debug, user_id=user_id, report_path=report_path) 46 return cls(ccxt_instance, debug=debug, user_id=user_id, report_path=report_path)
47 47
48 def store_report(self): 48 def store_report(self):
49 self.report.merge(Portfolio.report)
49 try: 50 try:
50 if self.report_path is not None: 51 if self.report_path is not None:
51 report_file = "{}/{}_{}.json".format(self.report_path, datetime.now().isoformat(), self.user_id) 52 report_file = "{}/{}_{}.json".format(self.report_path, datetime.now().isoformat(), self.user_id)