domain.enums.transaction_type¶
src.domain.enums.transaction_type
¶
Transaction type enumeration.
This module defines the high-level transaction type classification. Part of the two-level classification system (Type + Subtype).
Classes¶
TransactionType
¶
Bases: str, Enum
High-level transaction category (normalized across providers).
We use simplified, normalized types rather than provider-specific ones. This allows consistent behavior across different providers while the subtype field captures the specific action.
Provider Mapping Examples¶
Schwab TRADE -> TRADE Schwab ACH_RECEIPT -> TRANSFER Schwab DIVIDEND_OR_INTEREST -> INCOME Chase buy/sell -> TRADE Chase dividend -> INCOME
Source code in src/domain/enums/transaction_type.py
Functions¶
security_related
classmethod
¶
Return types that may involve securities.
Returns:
| Type | Description |
|---|---|
list[TransactionType]
|
List of transaction types that can involve securities. |
list[TransactionType]
|
INCOME is included because dividends are tied to securities. |
Examples: