Settings

API keys, model configuration, notifications

API Keys

ANTHROPIC_API_KEY

Claude Sonnet — LLM scoring for all three strategies. 200K context window handles full 10-K + earnings call in one pass.

ALPACA_API_KEY

Price data (OHLCV, adjusted closes, real-time quotes) for Technical and Entropy strategies.

ALPACA_SECRET_KEY

Alpaca Markets secret. Use paper API URL for testing.

ALPHA_VANTAGE_API_KEY

Quarterly income statements for Fundamental strategy only (revenue, operating income, net income, margins).

Model Configuration — ML Weights

Locked from Table 1, Cohen et al. (2025) — do not modify without explicit reason

Source Fact
StrategyFrequencyML Weight (w)LLM WeightSharpe
technicalmonthly1.000.000.6934
entropymonthly0.700.300.4207
fundamentalmonthly0.150.850.5001
technicalquarterly0.450.551.2967
entropyquarterly0.400.600.6048
fundamentalquarterly0.001.000.4899

LLM Fallback Behavior

If the Claude API fails, the system automatically falls back to w=1.0 (pure ML) for all strategies. A warning banner is shown in the UI and all score rows are logged with llm_provider="none". Restore the API key and re-run scores to include semantic scoring.

Data Source Failure Isolation

What happens when each source is unavailable

Alpaca

Technical + Entropy blocked

Fundamental can still run

Alpha Vantage

Fundamental blocked

Technical + Entropy can still run

SEC EDGAR

No filing context for Claude

All strategies fall back to w=1.0 (pure ML)

Claude API

No LLM semantic scores

All strategies use w=1.0; warning banner shown