Remove deprecated app_new.py and consolidate main application logic into main.py
- Deleted `app_new.py`, which was previously the main entry point for the dashboard application, to streamline the codebase. - Consolidated the application initialization and callback registration logic into `main.py`, enhancing modularity and maintainability. - Updated the logging and error handling practices in `main.py` to ensure consistent application behavior and improved debugging capabilities. These changes simplify the application structure, aligning with project standards for modularity and maintainability.
This commit is contained in:
33
config/constants/chart_constants.py
Normal file
33
config/constants/chart_constants.py
Normal file
@@ -0,0 +1,33 @@
|
||||
# Plotly Chart Colors
|
||||
CHART_COLORS = {
|
||||
"primary_line": "#2196f3", # Blue
|
||||
"secondary_line": "#ff9800", # Orange
|
||||
"increasing_candle": "#26a69a", # Green
|
||||
"decreasing_candle": "#ef5350", # Red
|
||||
"neutral_line": "gray"
|
||||
}
|
||||
|
||||
# UI Text Constants
|
||||
UI_TEXT = {
|
||||
"no_data_available": "No data available",
|
||||
"error_prefix": "Error: ",
|
||||
"volume_analysis_title": "{symbol} Volume Analysis ({timeframe})",
|
||||
"price_movement_title": "{symbol} Price Movement Analysis ({timeframe})",
|
||||
"price_action_subplot": "Price Action",
|
||||
"volume_analysis_subplot": "Volume Analysis",
|
||||
"volume_ma_subplot": "Volume vs Moving Average",
|
||||
"cumulative_returns_subplot": "Cumulative Returns",
|
||||
"period_returns_subplot": "Period Returns (%)",
|
||||
"price_range_subplot": "Price Range (%)",
|
||||
"price_yaxis": "Price",
|
||||
"volume_yaxis": "Volume",
|
||||
"cumulative_return_yaxis": "Cumulative Return",
|
||||
"returns_yaxis": "Returns (%)",
|
||||
"range_yaxis": "Range (%)",
|
||||
"price_trace_name": "Price",
|
||||
"volume_trace_name": "Volume",
|
||||
"volume_ma_trace_name": "Volume MA(20)",
|
||||
"cumulative_return_trace_name": "Cumulative Return",
|
||||
"returns_trace_name": "Returns (%)",
|
||||
"range_trace_name": "Range %"
|
||||
}
|
||||
12
config/options/time_range_options.json
Normal file
12
config/options/time_range_options.json
Normal file
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{"label": "🕐 Last 1 Hour", "value": "1h"},
|
||||
{"label": "🕐 Last 4 Hours", "value": "4h"},
|
||||
{"label": "🕐 Last 6 Hours", "value": "6h"},
|
||||
{"label": "🕐 Last 12 Hours", "value": "12h"},
|
||||
{"label": "📅 Last 1 Day", "value": "1d"},
|
||||
{"label": "📅 Last 3 Days", "value": "3d"},
|
||||
{"label": "📅 Last 7 Days", "value": "7d"},
|
||||
{"label": "📅 Last 30 Days", "value": "30d"},
|
||||
{"label": "📅 Custom Range", "value": "custom"},
|
||||
{"label": "🔴 Real-time", "value": "realtime"}
|
||||
]
|
||||
12
config/options/timeframe_options.json
Normal file
12
config/options/timeframe_options.json
Normal file
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{"label": "1 Second", "value": "1s"},
|
||||
{"label": "5 Seconds", "value": "5s"},
|
||||
{"label": "15 Seconds", "value": "15s"},
|
||||
{"label": "30 Seconds", "value": "30s"},
|
||||
{"label": "1 Minute", "value": "1m"},
|
||||
{"label": "5 Minutes", "value": "5m"},
|
||||
{"label": "15 Minutes", "value": "15m"},
|
||||
{"label": "1 Hour", "value": "1h"},
|
||||
{"label": "4 Hours", "value": "4h"},
|
||||
{"label": "1 Day", "value": "1d"}
|
||||
]
|
||||
Reference in New Issue
Block a user