trading/shared
Viktor Barzin 7b81980c66 fix(meet-kevin): API smoke-test bugs from Task 17 QA
Three issues caught during end-to-end manual QA against docker-compose:

1. SAEnum field columns serialized to Python enum NAMES ('DISCOVERED')
   but the DB enum had VALUES ('discovered'). Added `values_callable`
   to all 5 SAEnum() declarations in shared/models/meet_kevin.py so they
   emit values, matching the migration's enum literals.

2. /dashboard's "last 7 days" / "last 14 days" filters used
   `func.cast("7 days", type_=None)` which produced NullType DDL.
   Replaced with `text("now() - interval '7 days'")`.

3. /dashboard's outlook trend query repeated `func.date_trunc("day", col)`
   in SELECT, GROUP BY and ORDER BY — Postgres treats each as a separate
   parameterized expression. Hoisted into a single `day_trunc` variable
   so all three clauses reference the same SQL fragment.

All 11 /api/meet-kevin/* endpoints now return valid JSON against a
docker-compose Postgres seeded with one analyzed video + NVDA mention.
2026-05-21 20:15:08 +00:00
..
broker feat: brokerage abstraction layer with Alpaca implementation 2026-02-22 15:26:41 +00:00
fundamentals feat: add fundamentals DB model and cached provider 2026-02-23 21:49:31 +00:00
models fix(meet-kevin): API smoke-test bugs from Task 17 QA 2026-05-21 20:15:08 +00:00
schemas fix(schemas): use enum types as field types + enforce symbol length 2026-05-21 19:15:59 +00:00
strategies feat: add 6 new strategies (value, MACD, Bollinger, VWAP, liquidity, MA stack) 2026-02-23 21:50:52 +00:00
__init__.py feat: project foundation — monorepo setup, shared config, redis streams, telemetry 2026-02-22 15:13:26 +00:00
config.py feat: project foundation — monorepo setup, shared config, redis streams, telemetry 2026-02-22 15:13:26 +00:00
db.py feat: database models and alembic migrations — all tables per design 2026-02-22 15:17:07 +00:00
redis_streams.py fix: resolve 13 important issues from code review 2026-02-22 17:58:01 +00:00
telemetry.py feat: project foundation — monorepo setup, shared config, redis streams, telemetry 2026-02-22 15:13:26 +00:00