File size: 1,421 Bytes
3685a78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
"""
Configuration constants for the Stock Ticker Analysis Dashboard.
"""

# Default stock tickers (user can override via sidebar)
DEFAULT_TICKERS = ["AAPL", "TSLA", "NVDA", "MSFT", "GOOGL"]

# Data fetch period (months)
DATA_PERIOD_MONTHS = 3

# Time range options for chart (days)
TIME_RANGES = {"1W": 7, "1M": 30, "3M": 90}
DEFAULT_TIME_RANGE = "3M"

# OpenRouter API configuration
OPENROUTER_BASE_URL = "https://openrouter.ai/api/v1"

# Available AI models for analysis (OpenRouter model IDs)
MODELS = {
    "Claude 3.5 Sonnet": "anthropic/claude-3.5-sonnet",
    "GPT-4o": "openai/gpt-4o",
    "Gemini 1.5 Pro": "google/gemini-1.5-pro",
}

# Default model
DEFAULT_MODEL = "Claude 3.5 Sonnet"

# UI theme colors (premium dark financial dashboard)
COLORS = {
    "bg_primary": "#050810",
    "bg_card": "#0D1117",
    "bg_card_hover": "#111827",
    "border": "#1F2937",
    "accent_blue": "#2563EB",
    "accent_glow": "#3B82F6",
    "text_primary": "#F9FAFB",
    "text_secondary": "#6B7280",
    "green": "#10B981",
    "red": "#EF4444",
    # Legacy aliases for compatibility
    "background": "#050810",
    "sidebar_bg": "#080C14",
    "accent_positive": "#10B981",
    "accent_negative": "#EF4444",
    "text_muted": "#6B7280",
}

# Chart configuration
MA_PERIODS = {
    "short": 20,
    "long": 50,
}

BOLLINGER_PERIOD = 20
BOLLINGER_STD = 2
RSI_PERIOD = 14

# Cache TTL in seconds (5 minutes)
CACHE_TTL = 300