# zenzeny95/stock_crypto_app architecture

> Architecture diagram of the GitHub repository zenzeny95/stock_crypto_app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zenzeny95/stock_crypto_app
- Repository: https://github.com/zenzeny95/stock_crypto_app

## Overview

This is a Tkinter stock-and-cryptocurrency finance app. Users register or log in, then browse market data and use analysis tools; premium upgrades, account recovery, and administration form distinct supporting workflows. The graph preserves the README’s major features, including alerts, predictions, exchange, and comparisons. Some feature modules were not sampled, so their internal calls are omitted; edges reflect only shown calls, indexed references, or README descriptions.

Main entry points: [`app_tkinter_start.py`](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_start.py) (Login and Navigation), [`model.py`](https://github.com/zenzeny95/stock_crypto_app/blob/main/model.py) (Finance Database), [`app_mixed_methods.py`](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_mixed_methods.py) (Investment Calculations), [`app_tkinter_registration.py`](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_registration.py) (Registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_account["Accounts and Billing"]
  node_app["Login and Navigation"]
  node_registration["Registration"]
  node_recovery["Password Recovery"]
  node_premium["Premium Plans"]
  node_upgrade["Subscription Upgrade"]
  node_payment["Payment Validation"]
  node_invoices["Invoice Issuance<br/>[app_invoice.py]"]
  node_email["Email Configuration<br/>[emailo_config.py]"]
  node_database[("Finance Database<br/>[model.py]")]
end

subgraph group_market["Market Data"]
  node_market_ui["Market Navigation"]
  node_stock_views["Stock Charts and Search"]
  node_crypto_ui["Crypto Navigation"]
  node_crypto_views["Crypto Period Charts"]
  node_stock_api["Stock Data API"]
  node_stock_service["Stock API Methods"]
  node_crypto_service["Crypto API Methods"]
end

subgraph group_analysis["Investment Analysis"]
  node_analysis_service["Investment Calculations"]
  node_comparison["Investment Comparison"]
  node_gainloss["Gain and Loss"]
  node_indicators["Technical Indicators"]
  node_alerts["Price Alerts"]
  node_exchange["Currency Exchange"]
  node_prediction["Price Predictions"]
end

subgraph group_admin["Administration"]
  node_admin_ui["Admin Console"]
  node_admin_users["User Management"]
  node_admin_subscriptions["Subscription Management"]
  node_admin_invoices["Invoice Management"]
end

node_user(("Investor"))
node_stripe["Stripe"]

node_user -->|"uses"| node_app
node_app -->|"opens"| node_registration
node_app -->|"opens"| node_recovery
node_app -->|"opens"| node_premium
node_app -->|"opens"| node_market_ui
node_app -->|"opens"| node_crypto_ui
node_app -->|"opens"| node_admin_ui
node_app -->|"queries"| node_database
node_registration -->|"writes users"| node_database
node_registration -->|"validates payment"| node_payment
node_registration -->|"creates invoice"| node_invoices
node_recovery -->|"checks account"| node_database
node_recovery -->|"uses checks"| node_payment
node_premium -->|"opens"| node_upgrade
node_upgrade -->|"updates account"| node_database
node_upgrade -->|"validates payment"| node_payment
node_upgrade -->|"creates invoice"| node_invoices
node_payment -->|"creates intent"| node_stripe
node_invoices -->|"stores invoices"| node_database
node_invoices -->|"uses settings"| node_email
node_market_ui -->|"opens views"| node_stock_views
node_crypto_ui -->|"opens views"| node_crypto_views
node_stock_views -->|"requests data"| node_analysis_service
node_crypto_views -->|"requests data"| node_analysis_service
node_analysis_service -->|"inherits"| node_stock_service
node_analysis_service -->|"inherits"| node_crypto_service
node_stock_service -.->|"uses API"| node_stock_api
node_stock_api -.->|"requests market data"| node_user
node_app -->|"opens tools"| node_comparison
node_app -->|"opens tools"| node_gainloss
node_comparison -->|"uses calculations"| node_analysis_service
node_gainloss -->|"uses calculations"| node_analysis_service
node_app -->|"opens tools"| node_indicators
node_app -.->|"opens tools"| node_alerts
node_app -.->|"opens tools"| node_exchange
node_app -.->|"opens tools"| node_prediction
node_admin_ui -->|"opens"| node_admin_users
node_admin_ui -->|"opens"| node_admin_subscriptions
node_admin_ui -->|"opens"| node_admin_invoices
node_admin_users -->|"manages records"| node_database
node_admin_subscriptions -->|"manages records"| node_database
node_admin_invoices -->|"manages records"| node_database

click node_app "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_start.py"
click node_registration "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_registration.py"
click node_recovery "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_recovery.py"
click node_premium "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_premium.py"
click node_upgrade "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_upgrade.py"
click node_payment "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_payment_checks.py"
click node_invoices "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_invoice.py"
click node_email "https://github.com/zenzeny95/stock_crypto_app/blob/main/emailo_config.py"
click node_database "https://github.com/zenzeny95/stock_crypto_app/blob/main/model.py"
click node_market_ui "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_stock.py"
click node_stock_views "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_stock_detailed.py"
click node_crypto_ui "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_crypto.py"
click node_crypto_views "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_crypto_monthly.py"
click node_stock_api "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_api_stocks_requests.py"
click node_stock_service "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_api_stock_methods.py"
click node_crypto_service "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_api_crypto_methods.py"
click node_analysis_service "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_mixed_methods.py"
click node_comparison "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_methods_compare.py"
click node_gainloss "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_methods_gainloss.py"
click node_indicators "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_indicator_sma.py"
click node_alerts "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_methods_price_alert.py"
click node_exchange "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_methods_exchange.py"
click node_prediction "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_methods_prediction.py"
click node_admin_ui "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_admin_database.py"
click node_admin_users "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_admin_database_users.py"
click node_admin_subscriptions "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_admin_database_subscriptions.py"
click node_admin_invoices "https://github.com/zenzeny95/stock_crypto_app/blob/main/app_admin_database_invoices.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_registration,node_recovery,node_premium,node_upgrade,node_payment,node_invoices,node_email,node_database toneBlue
class node_market_ui,node_stock_views,node_crypto_ui,node_crypto_views,node_stock_api,node_stock_service,node_crypto_service toneAmber
class node_analysis_service,node_comparison,node_gainloss,node_indicators,node_alerts,node_exchange,node_prediction toneMint
class node_admin_ui,node_admin_users,node_admin_subscriptions,node_admin_invoices toneRose
class node_user,node_stripe toneIndigo
```

## Components

### Accounts and Billing

- [Login and Navigation](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_start.py): `app_tkinter_start.py`
- [Registration](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_registration.py): `app_tkinter_registration.py`
- [Password Recovery](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_recovery.py): `app_tkinter_recovery.py`
- [Premium Plans](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_premium.py): `app_tkinter_premium.py`
- [Subscription Upgrade](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_upgrade.py): `app_tkinter_upgrade.py`
- [Payment Validation](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_payment_checks.py): `app_payment_checks.py`
- [Invoice Issuance](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_invoice.py): `app_invoice.py`
- [Email Configuration](https://github.com/zenzeny95/stock_crypto_app/blob/main/emailo_config.py): `emailo_config.py`
- [Finance Database](https://github.com/zenzeny95/stock_crypto_app/blob/main/model.py): `model.py`

### Market Data

- [Market Navigation](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_stock.py): `app_tkinter_stock.py`
- [Stock Charts and Search](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_stock_detailed.py): `app_tkinter_stock_detailed.py`
- [Crypto Navigation](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_crypto.py): `app_tkinter_crypto.py`
- [Crypto Period Charts](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_crypto_monthly.py): `app_tkinter_crypto_monthly.py`
- [Stock Data API](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_api_stocks_requests.py): `app_api_stocks_requests.py`
- [Stock API Methods](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_api_stock_methods.py): `app_api_stock_methods.py`
- [Crypto API Methods](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_api_crypto_methods.py): `app_api_crypto_methods.py`

### Investment Analysis

- [Investment Calculations](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_mixed_methods.py): `app_mixed_methods.py`
- [Investment Comparison](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_methods_compare.py): `app_tkinter_methods_compare.py`
- [Gain and Loss](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_methods_gainloss.py): `app_tkinter_methods_gainloss.py`
- [Technical Indicators](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_indicator_sma.py): `app_indicator_sma.py`
- [Price Alerts](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_methods_price_alert.py): `app_methods_price_alert.py`
- [Currency Exchange](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_methods_exchange.py): `app_tkinter_methods_exchange.py`
- [Price Predictions](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_tkinter_methods_prediction.py): `app_tkinter_methods_prediction.py`

### Administration

- [Admin Console](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_admin_database.py): `app_admin_database.py`
- [User Management](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_admin_database_users.py): `app_admin_database_users.py`
- [Subscription Management](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_admin_database_subscriptions.py): `app_admin_database_subscriptions.py`
- [Invoice Management](https://github.com/zenzeny95/stock_crypto_app/blob/main/app_admin_database_invoices.py): `app_admin_database_invoices.py`

### Other components

- **Investor**
- **Stripe**

## Connections

- Investor → Login and Navigation: uses
- Login and Navigation → Registration: opens (evidence: `app_tkinter_start.py`)
- Login and Navigation → Password Recovery: opens (evidence: `app_tkinter_start.py`)
- Login and Navigation → Premium Plans: opens (evidence: `app_tkinter_start.py`)
- Login and Navigation → Market Navigation: opens (evidence: `app_tkinter_start.py`)
- Login and Navigation → Crypto Navigation: opens (evidence: `app_tkinter_start.py`)
- Login and Navigation → Admin Console: opens (evidence: `app_tkinter_start.py`)
- Login and Navigation → Finance Database: queries (evidence: `app_tkinter_start.py`)
- Registration → Finance Database: writes users (evidence: `app_tkinter_registration.py`)
- Registration → Payment Validation: validates payment (evidence: `app_tkinter_registration.py`)
- Registration → Invoice Issuance: creates invoice (evidence: `app_tkinter_registration.py`)
- Password Recovery → Finance Database: checks account (evidence: `app_tkinter_recovery.py`)
- Password Recovery → Payment Validation: uses checks (evidence: `app_tkinter_recovery.py`)
- Premium Plans → Subscription Upgrade: opens (evidence: `app_tkinter_premium.py`)
- Subscription Upgrade → Finance Database: updates account (evidence: `app_tkinter_upgrade.py`)
- Subscription Upgrade → Payment Validation: validates payment (evidence: `app_tkinter_upgrade.py`)
- Subscription Upgrade → Invoice Issuance: creates invoice (evidence: `app_tkinter_upgrade.py`)
- Payment Validation → Stripe: creates intent (evidence: `app_payment_checks.py`)
- Invoice Issuance → Finance Database: stores invoices (evidence: `app_invoice.py`)
- Invoice Issuance → Email Configuration: uses settings (evidence: `app_invoice.py`)
- Market Navigation → Stock Charts and Search: opens views (evidence: `app_tkinter_stock.py`)
- Crypto Navigation → Crypto Period Charts: opens views (evidence: `app_tkinter_crypto.py`)
- Stock Charts and Search → Investment Calculations: requests data (evidence: `app_tkinter_stock_detailed.py`)
- Crypto Period Charts → Investment Calculations: requests data (evidence: `app_tkinter_crypto_monthly.py`)
- Investment Calculations → Stock API Methods: inherits (evidence: `app_mixed_methods.py`)
- Investment Calculations → Crypto API Methods: inherits (evidence: `app_mixed_methods.py`)
- Stock API Methods → Stock Data API: uses API
- Stock Data API → Investor: requests market data
- Login and Navigation → Investment Comparison: opens tools (evidence: `app_tkinter_start.py`)
- Login and Navigation → Gain and Loss: opens tools (evidence: `app_tkinter_start.py`)
- Investment Comparison → Investment Calculations: uses calculations (evidence: `app_tkinter_methods_compare.py`)
- Gain and Loss → Investment Calculations: uses calculations (evidence: `app_tkinter_methods_gainloss.py`)
- Login and Navigation → Technical Indicators: opens tools (evidence: `app_tkinter_start.py`)
- Login and Navigation → Price Alerts: opens tools
- Login and Navigation → Currency Exchange: opens tools
- Login and Navigation → Price Predictions: opens tools
- Admin Console → User Management: opens (evidence: `app_admin_database.py`)
- Admin Console → Subscription Management: opens (evidence: `app_admin_database.py`)
- Admin Console → Invoice Management: opens (evidence: `app_admin_database.py`)
- User Management → Finance Database: manages records (evidence: `app_admin_database_users.py`)
- Subscription Management → Finance Database: manages records (evidence: `app_admin_database_subscriptions.py`)
- Invoice Management → Finance Database: manages records (evidence: `app_admin_database_invoices.py`)
