mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
chore: Add minified parameter docs to to_json method
This commit is contained in:
parent
cfc6d3b32f
commit
c59ae30e31
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user