Spaces:
Sleeping
Sleeping
Download config.py from PrinceTires/PrinceAI: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/spaces/PrinceTires/PrinceAI/resolve/main/config.py
- Command line
-
hf download hf://spaces/PrinceTires/PrinceAI/config.py
-
curl -L -o config.py https://huggingface.co/spaces/PrinceTires/PrinceAI/resolve/main/config.py
1.42 kB
| """ | |
| 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 | |