How athallahd/upbit-dashboard-be works
This repository is a Django-based reporting and operational-monitoring platform, with APIs and admin-managed data for trading, deposits, monitoring, and executive metrics. A representative workflow is a user requesting dashboard metrics: the dashboard endpoint delegates period and metric calculations to its service, which reads reporting data and stores daily summaries. The tree and excerpts support the major subsystems below, but many app-to-app calls are unsampled; those links are omitted rather than inferred.
Main entry points: urls.py Django entry points · services.py Metric calculations · views.py Monitoring API · data.py Reporting models
Components 26
API and access
- Django entry points
lens/urls.py - Data API
lens_data/views.py - Monitoring API
lens_monitoring/views.py - Reference data API
masterdata/views.py
Reporting data
- Reporting models
lens_data/models/data.py - Reference models
masterdata/models/sec.py - Database router
lens/routers.py - Reporter database
- Snapshots
snapshot/models/snapshot.py - CSV tasks
lens_csv/models/csv_task.py
Monitoring controls
- Monitoring records
lens_monitoring/models/monitoring.py - Rules and triggers
trigger/models/trigger.py - Rule parameters
trigger/admin/ruleset_params.py
External integrations
- Exchange API
- Market price API
- Banking API
- Slack
- Exchange client
libs/ccx/client.py - Price client
libs/crix/client.py - Banking client
libs/cuma/client.py - Notification client
libs/slack/client.py
Executive dashboard
- Dashboard endpoints
executive_dashboard/views.py - Metric calculations
executive_dashboard/services.py - Daily summaries
executive_dashboard/models.py - Dashboard refresh
executive_dashboard/management/commands/refresh_dashboard.py
Other components
- Dashboard user
Connections 26
- Dashboard user → Django entry points: requests
- Django entry points → Data API: dispatches
- Django entry points → Monitoring API: dispatches
- Django entry points → Reference data API: dispatches
- Django entry points → Dashboard endpoints: dispatches
- Data API → Reporting models: queries
- Monitoring API → Monitoring records: queries
- Monitoring API → Market price API: fetches tickers
- Reference data API → Reference models: queries
- Database router → Reporter database: routes model I/O
- Reporting models → Reporter database: maps tables
- Reference models → Reporter database: maps tables
- Snapshots → Reporter database: maps tables
- CSV tasks → Reporter database: maps tasks
- Monitoring records → Reporter database: maps tables
- Rules and triggers → Reporter database: maps rules
- Rule parameters → Reference models: reads parameters
- Exchange client → Exchange API: calls
- Price client → Market price API: calls
- Banking client → Banking API: calls
- Notification client → Slack: sends messages
- Dashboard endpoints → Metric calculations: calculates metrics
- Metric calculations → Reporting models: reads source metrics
- Metric calculations → Daily summaries: reads and writes summaries
- Daily summaries → Reporter database: stores summaries
- Dashboard refresh → Metric calculations: refreshes range