domain.enums.provider_category¶
src.domain.enums.provider_category
¶
Provider category classification.
Defines the type of financial provider (brokerage, bank, credit card, etc.). Used to determine applicable features and entities for each provider.
Reference
- docs/architecture/provider-domain-model.md
Classes¶
ProviderCategory
¶
Bases: str, Enum
Financial provider category classification.
Determines the type of financial institution. Different categories have different features - brokerages have holdings, banks have pending transactions, etc.
Examples:
Source code in src/domain/enums/provider_category.py
Attributes¶
BROKERAGE
class-attribute
instance-attribute
¶
Brokerage/investment provider (Schwab, Fidelity, TD Ameritrade).
BANK
class-attribute
instance-attribute
¶
Traditional banking provider (Chase, Bank of America, Wells Fargo).
CREDIT_CARD
class-attribute
instance-attribute
¶
Credit card provider (American Express, Discover, Capital One).
LOAN
class-attribute
instance-attribute
¶
Loan provider (mortgages, auto loans, personal loans).
CRYPTO
class-attribute
instance-attribute
¶
Cryptocurrency exchange (Coinbase, Kraken, Binance).
AGGREGATOR
class-attribute
instance-attribute
¶
Data aggregator connecting multiple institutions (Plaid, MX, Yodlee).
Functions¶
values
classmethod
¶
Get all category values as strings.
Returns:
| Type | Description |
|---|---|
list[str]
|
List of category string values. |
is_valid
classmethod
¶
Check if a string is a valid provider category.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
String to check. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if value is a valid category. |
supports_holdings
¶
Check if this category typically supports holdings/positions.
Returns:
| Type | Description |
|---|---|
bool
|
True if providers of this category have holdings. |