diff options
author | uvok | 2025-04-17 11:20:01 +0200 |
---|---|---|
committer | uvok | 2025-04-17 11:20:01 +0200 |
commit | ecea606533550d8d53a65daa6eeef583788448f4 (patch) | |
tree | 6ad17761e9ddede12da40e638d6f0d917ed3e4c4 /ledger_action.py | |
parent | 5ed67c88b608a3ee10381635fcff799eebbfc201 (diff) |
Enforce use of Decimal, formatting
Diffstat (limited to 'ledger_action.py')
-rw-r--r-- | ledger_action.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ledger_action.py b/ledger_action.py index 952692b..cc0eb83 100644 --- a/ledger_action.py +++ b/ledger_action.py @@ -1,6 +1,7 @@ from dataclasses import dataclass from decimal import Decimal + @dataclass class LedgerAction: """ @@ -8,7 +9,7 @@ class LedgerAction: The `LedgerAction` class encapsulates details of each action recorded in the ledger, whether it's a deposit, trade, or other types of transactions. - + Attributes: type (str): The type of action, e.g., "trade" or "deposit". asset (str): The cryptocurrency or fiat asset associated with the action. |