Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
edtechre committed Dec 11, 2023
1 parent 4ba5be7 commit a7eb27e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pybroker/portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7eb27e

Please sign in to comment.