From 41942e3af1c93a7d1301724c4467863c124f3110 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 11 Sep 2020 06:59:07 +0200 Subject: [PATCH] Update docstring for select_order --- freqtrade/persistence/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/freqtrade/persistence/models.py b/freqtrade/persistence/models.py index 79b3d491b..dc123a8d9 100644 --- a/freqtrade/persistence/models.py +++ b/freqtrade/persistence/models.py @@ -522,8 +522,10 @@ class Trade(_DECL_BASE): def select_order(self, order_side: str, status: Optional[str]) -> Optional[Order]: """ - Returns latest order for this orderside and status - Returns None if nothing is found + Finds latest order for this orderside and status + :param order_side: Side of the order (either 'buy' or 'sell') + :param status: Optionally filter on open / closed orders + :return: latest Order object if it exists, else None """ orders = [o for o in self.orders if o.side == order_side] if status: