diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-08 02:15:50 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-08 11:35:16 +0100 |
commit | 9bde69bfc1dcd17a92ac2ee5abfcda5b30034d93 (patch) | |
tree | 456489d0088ab36dd7b3c438a597183134f43ccc /market.py | |
parent | ada1b5f109ebaa6f3adb7cd87b007c6db891811c (diff) | |
download | Trader-9bde69bfc1dcd17a92ac2ee5abfcda5b30034d93.tar.gz Trader-9bde69bfc1dcd17a92ac2ee5abfcda5b30034d93.tar.zst Trader-9bde69bfc1dcd17a92ac2ee5abfcda5b30034d93.zip |
Add merge method for report
Diffstat (limited to 'market.py')
-rw-r--r-- | market.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |