Follows 5ea0785, which renamed the user-visible labels. This finishes the pass
so code, docs and operator output use one vocabulary: README (pipeline list,
route table, FRED row), the methodology doc title, .env.example and config
comments, the snapshot model / event-study / service / test docstrings, the
scheduler section headers and morning-pipeline docstring, the TopBar status
text ("bullish regime" -> "bullish trend"), and the four "Regime monitor:" log
prefixes.
Deliberately NOT changed, because "market regime" is also a standard finance
term and most occurrences are not this job: the backtest caveat "~6 months is
roughly one market regime" in backtest_service, README, BacktestPanel and every
generated reports/*.json; "a regime shift" in TrackRecordPanel; and the
capacity-bracket findings doc. Renaming those would have made the text wrong.
Also unchanged, being persisted or externally linked rather than wording: the
regime_monitor / market_regime job ids, the regime_quadrant_enabled setting key,
the /regime route, METHODOLOGY and the snapshot fields, the service/test module
filenames, and docs/research/regime-monitor-v3.md's path (referenced from commit
messages). The doc now carries a one-line note recording the old name and why
those identifiers still use it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
71 lines
2.4 KiB
Bash
71 lines
2.4 KiB
Bash
# Database
|
|
DATABASE_URL=postgresql+asyncpg://stock_backend:changeme@localhost:5432/stock_data_backend
|
|
|
|
# Auth
|
|
JWT_SECRET=change-this-to-a-random-secret
|
|
JWT_EXPIRY_MINUTES=60
|
|
|
|
# OHLCV Provider — Alpaca Markets
|
|
ALPACA_API_KEY=
|
|
ALPACA_API_SECRET=
|
|
|
|
# Sentiment Provider — Gemini with Search Grounding
|
|
GEMINI_API_KEY=
|
|
GEMINI_MODEL=gemini-2.0-flash
|
|
|
|
# Sentiment Provider — OpenAI
|
|
OPENAI_API_KEY=
|
|
OPENAI_MODEL=gpt-4o-mini
|
|
OPENAI_SENTIMENT_BATCH_SIZE=5
|
|
|
|
# Dolt bulk data — local clone of post-no-preference/earnings. Together with the
|
|
# SEC EDGAR block below this is the ONLY fundamentals source; there is no
|
|
# provider-API fallback.
|
|
# DOLT_BINARY: path to the dolt CLI (set the full path in dev if it's not on PATH,
|
|
# e.g. Windows: C:\Program Files\Dolt\bin\dolt.exe). DOLT_DATA_DIR holds the
|
|
# clones; in PRODUCTION it MUST be outside the deploy tree (deploy is
|
|
# rsync --delete) — e.g. /var/lib/signal-platform/dolt. The earnings clone lives
|
|
# at <DOLT_DATA_DIR>/<DOLT_EARNINGS_SUBDIR>. Production setup is automated by
|
|
# deploy/provision_fundamentals.sh; see docs/fundamentals-deployment.md.
|
|
DOLT_BINARY=dolt
|
|
DOLT_DATA_DIR=dolt-data
|
|
DOLT_EARNINGS_SUBDIR=earnings
|
|
# Free-space floor checked before a pull (clone is ~1.7 GB and grows). 5 GB is a
|
|
# safe production default; lower only on a space-constrained dev box.
|
|
DOLT_MIN_FREE_DISK_GB=5.0
|
|
# Hard timeout (s) on each dolt subprocess so a hung pull/sql can't pin the
|
|
# import connection + advisory lock.
|
|
DOLT_COMMAND_TIMEOUT_SECONDS=600.0
|
|
|
|
# SEC EDGAR (fundamentals, workstream A). SEC fair-access REQUIRES an identifying
|
|
# User-Agent with a REAL contact email — set it, or requests get 403'd. Stay well
|
|
# under 10 req/s (spacing below).
|
|
SEC_USER_AGENT=signal-platform/1.0 (contact: you@example.com)
|
|
SEC_REQUEST_SPACING_SECONDS=0.2
|
|
SEC_MAX_RETRIES=4
|
|
SEC_REQUEST_TIMEOUT_SECONDS=30.0
|
|
|
|
# AI/Tech Risk Monitor — FRED (VIX + HY credit spreads). Free key: https://fred.stlouisfed.org/docs/api/api_key.html
|
|
# Optional: without it the volatility (V1) and credit (C1) pillars show as n/a.
|
|
FRED_API_KEY=
|
|
|
|
# Scheduled Jobs
|
|
DATA_COLLECTOR_FREQUENCY=daily
|
|
SENTIMENT_POLL_INTERVAL_MINUTES=30
|
|
RR_SCAN_FREQUENCY=daily
|
|
|
|
# Scoring Defaults
|
|
DEFAULT_WATCHLIST_AUTO_SIZE=10
|
|
DEFAULT_RR_THRESHOLD=3.0
|
|
|
|
# Outcome Evaluation
|
|
# Trading days before an undecided setup expires at 0R
|
|
OUTCOME_EVALUATION_MAX_BARS=30
|
|
|
|
# Database Pool
|
|
DB_POOL_SIZE=5
|
|
DB_POOL_TIMEOUT=30
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO
|