{"ok":true,"status":"EXPORT_READY","readonly":true,"export_kind":"portfolio_center_system_health_json_export","health_export_id":"SYSTEM-HEALTH-1E90817BA7F3C112","suggested_filename":"tsc_portfolio_center_v655_system_health_20260716.json","system_health_summary":{"ok":true,"status":"HEALTHY","readonly":true,"version":"TSC Portfolio Center V6.5.5 System Health Export","system_health_version":"V6.5.5","checkpoint":"TSC Portfolio Center V6.5.5 System Health Export stabil","source_checkpoint":"TSC Portfolio Center V6.5.4a Restore Checklist Fast Summary Fix stabil","portfolio_runtime_version":"TSC Portfolio Center V6.8.6 Stable Lock","portfolio_runtime_checkpoint":"TSC Portfolio Center V6.8.6 Stable Lock stabil","checked_at_utc":"2026-07-16T19:36:08+00:00","system_health":{"score":100,"label":"HEALTHY","blockers":[],"warnings":["Quality Score ist kleiner als 100."]},"counts":{"portfolio_transactions":143,"portfolio_cash":0,"portfolio_positions":786,"portfolio_price_cache":731,"portfolio_overview_snapshots":46,"portfolio_import_batches":3,"portfolio_import_rows":7,"portfolio_transaction_drafts":12,"portfolio_settings":547},"quality_summary":{"ok":true,"status":"OK","quality_score":98,"quality_label":"SEHR_GUT","error_count":0,"warning_count":0,"info_count":2},"latest_snapshot":{"snapshot_date":"2026-07-15","snapshot_status":"CREATED","snapshot_version":"V6.12.4","snapshot_source":"portfolio_positions_market_value_securities_only_v6124","cash_total_eur":0.0,"position_cost_basis_eur":11466.7785,"position_market_value_eur":11687.1149,"portfolio_total_value_eur":11687.1149,"unrealized_pl_eur":220.3364,"unrealized_pl_pct":1.92152,"position_count":20,"missing_price_count":0,"safety_ack":"CREATE_PORTFOLIO_SNAPSHOT","snapshot_note":"V6.12.4b route override: securities-only snapshot from portfolio_positions market value truth","created_at":"2026-07-15T23:15:16.602236+02:00"},"latest_price":{"asset_key":"META","price_date":"2026-07-15","price_eur":594.0448,"price":681.31,"currency":"USD","source":"auto_price_update_v6108b","price_source":"auto-yahoo-dynamic-v6108b","is_active":true,"is_latest":true,"is_deleted":false,"notes":"TSC Portfolio Center V6.10.8b dynamic automatic price update","created_at":"2026-07-15T23:15:15.342752+02:00","updated_at":"2026-07-15T23:15:15.342752+02:00"},"latest_position":{"asset_key":"ALIBABA","broker_key":"ALL","quantity":2.0,"cost_basis_eur":289.2,"market_price_eur":102.6157,"market_value_eur":205.2314,"unrealized_pl_eur":-83.9686,"valuation_status":"VALUED","valuation_version":"V6.11.8","valuation_price_key":null,"valuation_price_date":"2026-07-15","valuation_price_source":"auto-yahoo-dynamic-v6108b","updated_at":"2026-07-15T23:15:16.334949+02:00"},"settings_status":{"ok":true,"status":"OK","settings":{"portfolio_center_checkpoint":"TSC Portfolio Center V6.8.2 Dashboard Navigation Completeness stabil","portfolio_center_version":"TSC Portfolio Center V6.8.2 Dashboard Navigation Completeness","portfolio_system_health_export_mode":"readonly_fast_system_health_export","portfolio_system_health_export_trading_hub_changes":"false","portfolio_system_health_export_write_enabled":"false"}},"db_health":{"ok":true,"status":"OK","readonly":true,"driver":"psycopg","counts":{"portfolio_transactions":143,"portfolio_cash":0,"portfolio_positions":786,"portfolio_price_cache":731,"portfolio_overview_snapshots":46,"portfolio_import_batches":3,"portfolio_import_rows":7,"portfolio_transaction_drafts":12,"portfolio_settings":547},"latest_snapshot":{"snapshot_date":"2026-07-15","snapshot_status":"CREATED","snapshot_version":"V6.12.4","snapshot_source":"portfolio_positions_market_value_securities_only_v6124","cash_total_eur":0.0,"position_cost_basis_eur":11466.7785,"position_market_value_eur":11687.1149,"portfolio_total_value_eur":11687.1149,"unrealized_pl_eur":220.3364,"unrealized_pl_pct":1.92152,"position_count":20,"missing_price_count":0,"safety_ack":"CREATE_PORTFOLIO_SNAPSHOT","snapshot_note":"V6.12.4b route override: securities-only snapshot from portfolio_positions market value truth","created_at":"2026-07-15T23:15:16.602236+02:00"},"latest_price":{"asset_key":"META","price_date":"2026-07-15","price_eur":594.0448,"price":681.31,"currency":"USD","source":"auto_price_update_v6108b","price_source":"auto-yahoo-dynamic-v6108b","is_active":true,"is_latest":true,"is_deleted":false,"notes":"TSC Portfolio Center V6.10.8b dynamic automatic price update","created_at":"2026-07-15T23:15:15.342752+02:00","updated_at":"2026-07-15T23:15:15.342752+02:00"},"latest_position":{"asset_key":"ALIBABA","broker_key":"ALL","quantity":2.0,"cost_basis_eur":289.2,"market_price_eur":102.6157,"market_value_eur":205.2314,"unrealized_pl_eur":-83.9686,"valuation_status":"VALUED","valuation_version":"V6.11.8","valuation_price_key":null,"valuation_price_date":"2026-07-15","valuation_price_source":"auto-yahoo-dynamic-v6108b","updated_at":"2026-07-15T23:15:16.334949+02:00"},"settings_status":{"ok":true,"status":"OK","settings":{"portfolio_center_checkpoint":"TSC Portfolio Center V6.8.2 Dashboard Navigation Completeness stabil","portfolio_center_version":"TSC Portfolio Center V6.8.2 Dashboard Navigation Completeness","portfolio_system_health_export_mode":"readonly_fast_system_health_export","portfolio_system_health_export_trading_hub_changes":"false","portfolio_system_health_export_write_enabled":"false"}},"duration_ms":70.76},"quality_report":{"ok":true,"status":"OK","readonly":true,"driver":"psycopg","version":"TSC Portfolio Center V6.4.2 Portfolio Data Quality Checks","data_quality_version":"V6.4.2","quality_score":98,"quality_label":"SEHR_GUT","severity_counts":{"ERROR":0,"WARNING":0,"INFO":2,"OK":0},"category_counts":{"cash":1,"prices":1},"issue_count":2,"issues":[{"severity":"INFO","category":"cash","code":"NO_ACTIVE_CASH_ROWS","title":"Keine aktiven Cash-Zeilen gefunden","message":"Die aktive Cash-Tabelle ist leer oder wurde noch nicht aufgebaut.","action_href":"/portfolio/rebuild","details":{}},{"severity":"INFO","category":"prices","code":"STALE_PRICE_CACHE_ROWS","title":"Veraltete Kurse","message":"529 Kurszeile(n) sind älter als 7 Tage.","action_href":"/portfolio/prices","details":{"stale_rows":529,"threshold_days":7,"sample":[{"asset_key":"ALIBABA","age_days":15.25,"price_eur":84.0235,"timestamp":"2026-07-01T15:38:45.039000+02:00"},{"asset_key":"ALTRIA","age_days":15.25,"price_eur":62.987,"timestamp":"2026-07-01T15:38:45.039000+02:00"},{"asset_key":"ALPHABET_A","age_days":17.43,"price_eur":300.0,"timestamp":"2026-06-29T11:16:34.323533+02:00"},{"asset_key":"ALTRIA","age_days":15.25,"price_eur":62.9759,"timestamp":"2026-07-01T15:38:45.039000+02:00"},{"asset_key":"ALTRIA","age_days":15.25,"price_eur":62.9759,"timestamp":"2026-07-01T15:38:45.039000+02:00"},{"asset_key":"ALIBABA","age_days":15.24,"price_eur":84.997661955,"timestamp":"2026-07-01T15:44:12.269664+02:00"},{"asset_key":"ALTRIA","age_days":14.11,"price_eur":63.0898,"timestamp":"2026-07-02T18:57:12.218075+02:00"},{"asset_key":"ALTRIA","age_days":15.24,"price_eur":63.1034499041,"timestamp":"2026-07-01T15:44:12.269664+02:00"},{"asset_key":"ALPHABET_A","age_days":11.94,"price_eur":300.0,"timestamp":"2026-07-04T23:06:42.930193+02:00"},{"asset_key":"AMAZON","age_days":15.24,"price_eur":209.9936783702,"timestamp":"2026-07-01T15:44:12.269664+02:00"}]}}],"thresholds":{"draft_age_days":7,"price_age_days":7,"import_age_days":7,"snapshot_age_days":3},"status_payload":{"ok":true,"status":"OK","readonly":true,"driver":"psycopg","counts":{"portfolio_transactions":143,"portfolio_cash":0,"portfolio_positions":786,"portfolio_price_cache":731,"portfolio_overview_snapshots":46,"portfolio_import_batches":3,"portfolio_import_rows":7,"portfolio_transaction_drafts":12,"portfolio_targets":21},"latest":{"portfolio_transactions":"2026-07-11T20:07:50.349143+02:00","portfolio_cash":null,"portfolio_positions":"2026-07-15T23:15:16.334949+02:00","portfolio_price_cache":"2026-07-15T23:15:15.342752+02:00","portfolio_overview_snapshots":"2026-07-15T23:15:16.602236+02:00","portfolio_import_batches":"2026-06-29T00:38:41.818300+02:00","portfolio_transaction_drafts":"2026-07-11T22:07:50.315534+02:00"},"duration_ms":69.6},"write_enabled":false,"writes_executed":false,"trading_hub_changed":false,"duration_ms":289.98,"fast_quality_duration_ms":290.13},"important_urls":{"dashboard":"/portfolio","system_health":"/portfolio/system-health","health_export":"/portfolio/health-export","manual":"/portfolio/manual","restore_checklist":"/portfolio/restore-checklist","backup_export":"/portfolio/backup-export","baseline":"/portfolio/baseline","final_sync":"/portfolio/final-sync","quality":"/portfolio/quality","price_repair":"/portfolio/price-repair","market_value_rebuild":"/portfolio/market-value-rebuild","snapshot_chain":"/portfolio/snapshot-after-rebuild","checkpoint_api":"/portfolio/api/checkpoint"},"expected_api_paths":[{"name":"Health","path":"/health","kind":"global"},{"name":"Portfolio Checkpoint","path":"/portfolio/api/checkpoint","kind":"portfolio"},{"name":"Default Dashboard Status","path":"/portfolio/api/default-dashboard/status","kind":"portfolio"},{"name":"Quality Status","path":"/portfolio/api/quality/status","kind":"portfolio"},{"name":"Baseline Status","path":"/portfolio/api/baseline/status","kind":"portfolio"},{"name":"Final Sync Status","path":"/portfolio/api/final-sync/status","kind":"portfolio"},{"name":"Manual Status","path":"/portfolio/api/manual/status","kind":"portfolio"},{"name":"Backup Export Status","path":"/portfolio/api/backup-export/status","kind":"portfolio"},{"name":"Restore Checklist Status","path":"/portfolio/api/restore-checklist/status","kind":"portfolio"},{"name":"System Health Status","path":"/portfolio/api/system-health/status","kind":"portfolio"}],"write_enabled":false,"writes_executed":false,"restore_execution_enabled":false,"trading_hub_changed":false,"guardrails":{"system_health_export_is_readonly":true,"runtime_db_write_enabled":false,"writes_executed":false,"restore_execution_enabled":false,"rebuild_execution_enabled":false,"snapshot_execution_enabled":false,"price_repair_execution_enabled":false,"trading_hub_changed":false,"does_not_write_to":["portfolio_transactions","portfolio_cash","portfolio_positions","portfolio_price_cache","portfolio_overview_snapshots","portfolio_import_batches","portfolio_transaction_drafts","Trading-Hub-Tabellen"]},"duration_ms":361.04},"manifest":{"ok":true,"version":"TSC Portfolio Center V6.5.5 System Health Export","system_health_version":"V6.5.5","checkpoint":"TSC Portfolio Center V6.5.5 System Health Export stabil","source_checkpoint":"TSC Portfolio Center V6.5.4a Restore Checklist Fast Summary Fix stabil","created_at_utc":"2026-07-16T19:36:08+00:00","export_contains":["runtime version/checkpoint","database counts","latest snapshot","latest price","latest position","quality summary","health score","important urls","expected api paths","guardrails"],"important_urls":{"dashboard":"/portfolio","system_health":"/portfolio/system-health","health_export":"/portfolio/health-export","manual":"/portfolio/manual","restore_checklist":"/portfolio/restore-checklist","backup_export":"/portfolio/backup-export","baseline":"/portfolio/baseline","final_sync":"/portfolio/final-sync","quality":"/portfolio/quality","price_repair":"/portfolio/price-repair","market_value_rebuild":"/portfolio/market-value-rebuild","snapshot_chain":"/portfolio/snapshot-after-rebuild","checkpoint_api":"/portfolio/api/checkpoint"},"expected_api_paths":[{"name":"Health","path":"/health","kind":"global"},{"name":"Portfolio Checkpoint","path":"/portfolio/api/checkpoint","kind":"portfolio"},{"name":"Default Dashboard Status","path":"/portfolio/api/default-dashboard/status","kind":"portfolio"},{"name":"Quality Status","path":"/portfolio/api/quality/status","kind":"portfolio"},{"name":"Baseline Status","path":"/portfolio/api/baseline/status","kind":"portfolio"},{"name":"Final Sync Status","path":"/portfolio/api/final-sync/status","kind":"portfolio"},{"name":"Manual Status","path":"/portfolio/api/manual/status","kind":"portfolio"},{"name":"Backup Export Status","path":"/portfolio/api/backup-export/status","kind":"portfolio"},{"name":"Restore Checklist Status","path":"/portfolio/api/restore-checklist/status","kind":"portfolio"},{"name":"System Health Status","path":"/portfolio/api/system-health/status","kind":"portfolio"}],"recommended_host_export_command":"mkdir -p exports/portfolio && curl -sS http://localhost:8000/portfolio/api/system-health/export > exports/portfolio/tsc_portfolio_center_v655_system_health_$(date +%Y%m%d_%H%M%S).json","guardrails":{"system_health_export_is_readonly":true,"runtime_db_write_enabled":false,"writes_executed":false,"restore_execution_enabled":false,"rebuild_execution_enabled":false,"snapshot_execution_enabled":false,"price_repair_execution_enabled":false,"trading_hub_changed":false,"does_not_write_to":["portfolio_transactions","portfolio_cash","portfolio_positions","portfolio_price_cache","portfolio_overview_snapshots","portfolio_import_batches","portfolio_transaction_drafts","Trading-Hub-Tabellen"]}},"write_enabled":false,"writes_executed":false,"restore_execution_enabled":false,"trading_hub_changed":false,"created_at_utc":"2026-07-16T19:36:08+00:00","checked_at_utc":"2026-07-16T19:36:08+00:00"}