From a7eb27e8910b99063e0ffda777257a70198c02a8 Mon Sep 17 00:00:00 2001 From: edtechre Date: Sun, 10 Dec 2023 20:55:34 -0800 Subject: [PATCH] Fix formatting. --- src/pybroker/portfolio.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pybroker/portfolio.py b/src/pybroker/portfolio.py index a94768a..1354168 100644 --- a/src/pybroker/portfolio.py +++ b/src/pybroker/portfolio.py @@ -344,7 +344,12 @@ def __init__( self._entry_id: int = 0 self._trade_id: int = 0 - def _calculate_fees(self, fill_price: Decimal, shares: Decimal, type: Literal["buy", "sell"]) -> Decimal: + def _calculate_fees( + self, + fill_price: Decimal, + shares: Decimal, + type: Literal["buy", "sell"], + ) -> Decimal: fees = Decimal() if self._fee_mode is None or self._fee_amount is None: return fees