Add docstring style to Contributing

This commit is contained in:
Matthias
2021-11-09 07:48:25 +00:00
committed by GitHub
parent 2bfec7d549
commit f9e5a25b36
3 changed files with 11 additions and 0 deletions

View File

@@ -195,6 +195,8 @@ class Order(_DECL_BASE):
@staticmethod
def get_open_orders() -> List['Order']:
"""
Retrieve open orders from the database
:return: List of open orders
"""
return Order.query.filter(Order.ft_is_open.is_(True)).all()