chore: Add minified parameter docs to to_json method

This commit is contained in:
Matthias 2024-01-30 07:24:15 +01:00
parent cfc6d3b32f
commit c59ae30e31

View File

@ -558,6 +558,11 @@ class LocalTrade:
)
def to_json(self, minified: bool = False) -> Dict[str, Any]:
"""
:param minified: If True, only return a subset of the data is returned.
Only used for backtesting.
:return: Dictionary with trade data
"""
filled_or_open_orders = self.select_filled_or_open_orders()
orders_json = [order.to_json(self.entry_side, minified) for order in filled_or_open_orders]