Update docstring for select_order

This commit is contained in:
Matthias 2020-09-11 06:59:07 +02:00
parent 85d90645c7
commit 41942e3af1

View File

@ -522,8 +522,10 @@ class Trade(_DECL_BASE):
def select_order(self, order_side: str, status: Optional[str]) -> Optional[Order]: def select_order(self, order_side: str, status: Optional[str]) -> Optional[Order]:
""" """
Returns latest order for this orderside and status Finds latest order for this orderside and status
Returns None if nothing is found :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] orders = [o for o in self.orders if o.side == order_side]
if status: if status: