Update docstring for select_order
This commit is contained in:
parent
85d90645c7
commit
41942e3af1
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user