chore: Add minified parameter docs to to_json method
This commit is contained in:
@@ -558,6 +558,11 @@ class LocalTrade:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def to_json(self, minified: bool = False) -> Dict[str, Any]:
|
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()
|
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]
|
orders_json = [order.to_json(self.entry_side, minified) for order in filled_or_open_orders]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user