Deterministic, no-LLM market metrics from Objective data for a location (district and/or obj_ids): absorption_rate, months_of_supply, sell_through_pct, unit/area_velocity, liquidity_index per room-type, overstock_index, demand_concentration (HHI), price_sensitivity (reuses analytics_queries._elasticity_coef). Frozen MarketMetrics dataclass + as_dict, sample-size confidence (§15 spirit). Graceful on thin data (the #1 coverage risk): no data → metric None (never 0/crash), confidence='low'. Filters by district/obj_ids to sidestep the sparse domrf↔objective mapping. Read-only SELECTs, 55 unit/mock tests. Consumed by forecast (#952) + relevance (#949 PR B). No migration, no endpoint. |
||
|---|---|---|
| .. | ||
| api | ||
| integration | ||
| scrapers | ||
| services | ||
| smoke | ||
| sql | ||
| workers | ||
| __init__.py | ||
| test_admin_weight_profiles.py | ||
| test_concepts_stub.py | ||
| test_gate_verdict.py | ||
| test_health.py | ||
| test_layout_signature.py | ||
| test_layout_tz_pdf.py | ||
| test_nspd_client.py | ||
| test_nspd_sync.py | ||
| test_ping.py | ||
| test_poi_score.py | ||
| test_quarter_dump_lookup.py | ||
| test_rbac.py | ||
| test_sentry_init.py | ||
| test_velocity.py | ||
| test_weight_profiles.py | ||