docs: update API_REFERENCE.md database tables section for new schema

- Replaced old table references (positions, reasoning_logs) with new schema tables
- Updated table list: trading_days, holdings, actions
- Added link to complete database schema documentation
This commit is contained in:
2025-11-04 10:55:37 -05:00
parent e2a06549d2
commit 7a53764f09

View File

@@ -896,13 +896,15 @@ All simulation data is stored in SQLite database at `data/jobs.db`.
- **jobs** - Job metadata and status - **jobs** - Job metadata and status
- **job_details** - Per model-day execution details - **job_details** - Per model-day execution details
- **positions** - Trading position records - **trading_days** - Day-centric trading results with daily P&L metrics
- **holdings** - Portfolio holdings breakdown - **holdings** - Portfolio holdings snapshots (ending positions only)
- **reasoning_logs** - AI decision reasoning (if enabled) - **actions** - Trade execution ledger
- **tool_usage** - MCP tool usage statistics - **tool_usage** - MCP tool usage statistics
- **price_data** - Historical price data cache - **price_data** - Historical price data cache
- **price_coverage** - Data availability tracking - **price_coverage** - Data availability tracking
See [docs/developer/database-schema.md](docs/developer/database-schema.md) for complete schema reference.
### Data Retention ### Data Retention
- Job data persists indefinitely by default - Job data persists indefinitely by default