trading-app/src/lib
David 469e46d306 Fix double executions, missed deposits, holidays; AI pot deposits; faster market data
- Orders, position closes, card answers and deposits are claimed atomically
  (one tick at a time, one evening at a time); cash updated in SQL
- Each tick step is isolated: an AI or Yahoo failure no longer stops the rest
- Missed monthly deposits are caught up; Trade Republic holidays handled
- Gap opens fill at the open (target included); limit orders valid one
  trading day; stale sell orders cancelled; old cards expire (PEA transfer kept)
- News queries bounded to 48 h, news older than 30 days purged
- AI sim pot receives the same monthly deposit as the real account;
  performance measured on money contributed vs S&P 500 with the same flows;
  reset action
- Yahoo data cached in the database (stale-while-revalidate); the order
  engine still requires fresh quotes; client router keeps tabs for 60 s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 14:54:17 +01:00
..
db Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
engine Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
ai.ts Make the AI actually trade in simulation and speed up Vercel 2026-11-16 19:33:18 +01:00
app.integration.test.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
auth.ts Cagnotte V1: IA news-driven trading sim, sandbox, PEA tracking, PWA 2026-11-13 19:06:17 +01:00
cards.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
diagnostics.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
format.ts Fix trade proposals, speed, Trade Republic setup and stock UI 2026-11-16 19:05:20 +01:00
icon-art.tsx Cagnotte V1: IA news-driven trading sim, sandbox, PEA tracking, PWA 2026-11-13 19:06:17 +01:00
ideas.ts Fix trade proposals, speed, Trade Republic setup and stock UI 2026-11-16 19:05:20 +01:00
jobs.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
market-cache.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
market.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
news.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
portfolio.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
push.ts Cagnotte V1: IA news-driven trading sim, sandbox, PEA tracking, PWA 2026-11-13 19:06:17 +01:00
real.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
settings.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
stats.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
time.ts Fix double executions, missed deposits, holidays; AI pot deposits; faster market data 2026-11-18 14:54:17 +01:00
universe.ts Cagnotte V1: IA news-driven trading sim, sandbox, PEA tracking, PWA 2026-11-13 19:06:17 +01:00