You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last): File "main.py", line 59, in <module> bot.save() File "/root/BinanceBroker/bot/bot.py", line 297, in save Util.dump_json(self.orders_file, self.orders) File "/root/BinanceBroker/util/util.py", line 73, in dump_json json.dump(obj, f, indent=4) File "/usr/lib/python3.6/json/__init__.py", line 179, in dump for chunk in iterable: File "/usr/lib/python3.6/json/encoder.py", line 430, in _iterencode yield from _iterencode_dict(o, _current_indent_level) File "/usr/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict yield from chunks File "/usr/lib/python3.6/json/encoder.py", line 437, in _iterencode o = _default(o) File "/usr/lib/python3.6/json/encoder.py", line 180, in default o.__class__.__name__) TypeError: Object of type 'Order' is not JSON serializable
The text was updated successfully, but these errors were encountered:
I got the error below
Traceback (most recent call last): File "main.py", line 59, in <module> bot.save() File "/root/BinanceBroker/bot/bot.py", line 297, in save Util.dump_json(self.orders_file, self.orders) File "/root/BinanceBroker/util/util.py", line 73, in dump_json json.dump(obj, f, indent=4) File "/usr/lib/python3.6/json/__init__.py", line 179, in dump for chunk in iterable: File "/usr/lib/python3.6/json/encoder.py", line 430, in _iterencode yield from _iterencode_dict(o, _current_indent_level) File "/usr/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict yield from chunks File "/usr/lib/python3.6/json/encoder.py", line 437, in _iterencode o = _default(o) File "/usr/lib/python3.6/json/encoder.py", line 180, in default o.__class__.__name__) TypeError: Object of type 'Order' is not JSON serializable
The text was updated successfully, but these errors were encountered: