From ecea606533550d8d53a65daa6eeef583788448f4 Mon Sep 17 00:00:00 2001 From: uvok Date: Thu, 17 Apr 2025 11:20:01 +0200 Subject: Enforce use of Decimal, formatting --- ledger_action.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ledger_action.py') 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. -- cgit v1.2.3