Skip to content

feat(data): initialize local DuckDB on startup#44

Merged
magic-alt merged 1 commit into
mainfrom
feature/init-local-duckdb-on-startup
Jun 10, 2026
Merged

feat(data): initialize local DuckDB on startup#44
magic-alt merged 1 commit into
mainfrom
feature/init-local-duckdb-on-startup

Conversation

@magic-alt

Copy link
Copy Markdown
Owner

Summary

  • Initialize the configured local DuckDB market-data database during FastAPI startup.
  • Reuse the resolved startup DuckDB path for local dataset listing, chart loading, and update writes.
  • Return local store readiness metadata from /api/v2/local-data and clarify the Data page empty-state message.

Validation

  • npm run build
  • .venv/bin/python -m pytest tests/test_analysis_mvp.py tests/test_frontend_local_dev.py -v --tb=short
  • git diff --check
  • .venv/bin/python -m pytest tests/ -v --tb=short (passed with elevated permissions because the suite binds local ports and uses ProcessPoolExecutor)

Notes

  • Startup initialization creates the DuckDB file/schema, but datasets remain empty until the first Update Local fetch persists OHLCV rows.

@magic-alt magic-alt marked this pull request as ready for review June 10, 2026 14:48
@magic-alt magic-alt merged commit 27823af into main Jun 10, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants