Skip to content

Commit

Permalink
Transaction: Make fees an optional field
Browse files Browse the repository at this point in the history
Make `fees` an optional field to simplify writing unit tests.
  • Loading branch information
tacgomes committed May 10, 2024
1 parent 90979d4 commit cbd7cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/investir/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Order(Transaction, ABC):
id: int = 0
ticker: str
quantity: Decimal
fees: Decimal
fees: Decimal = Decimal('0.0')
order_id: str = ''
note: str = ''

Expand Down

0 comments on commit cbd7cac

Please sign in to comment.