Commit Graph

12 Commits

Author SHA1 Message Date
David
8a0c73901e AI daily committee, sandbox advice, 100 EUR budget, evening wake-ups
Some checks failed
Tick / tick (push) Failing after 1s
- Risk rules: up to 2 positions of ~100 EUR under 400 EUR (3 up to 1000,
  4 above), so the AI pot can buy several times a week
- One Sonnet call per day compares up to 6 candidates (news + screener)
  and reviews AI pot and sandbox holdings; the AI pot sells and buys on
  its own, through the deterministic risk engine
- Sandbox: "Le conseil de l'IA" card (what to buy, sell, keep) with
  one-tap follow
- Monthly budget of 100 EUR (half PEA S&P 500, half CTO) enforced when
  saving the account and the PEA plan, shown on Mon compte
- Vercel cron backup (weekday evenings) next to GitHub Actions; the tick
  endpoint records who woke the app, shown in Reglages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:30:57 +01:00
David
dba64728d6 Redesign the app
Some checks failed
Tick / tick (push) Failing after 1s
Cobalt for what is safe (PEA) and for actions, ochre for the AI pot, green
and red only for gains and losses. Bricolage Grotesque for amounts and
titles, Atkinson Hyperlegible Next for text. Home opens on total wealth with
a split bar (safe vs working pot); recipe cards with numbered steps; plain
sentences instead of emoji and symbols; back links; AI tab with monthly
deposits and reset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 14:54:17 +01:00
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
David
82093744f3 Make the AI actually trade in simulation and speed up Vercel
Some checks failed
Tick / tick (push) Failing after 1s
- Pin Vercel functions to Paris (cdg1), next to the Supabase database
- Triage: smaller batches, a truncated answer is retried instead of
  silently scoring every news item 0/10 (which starved the AI)
- Analysis prompt calibrated (buy at confidence >= 60 with tight stop)
- Settings read once per page render
- New AI diagnostic card in Settings: news, triage, decisions, run logs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:33:18 +01:00
David
77a165afaa Upgrade Next.js to 16.4.6 (security advisory)
Some checks failed
Tick / tick (push) Failing after 1s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:06:29 +01:00
David
234efda586 Fix trade proposals, speed, Trade Republic setup and stock UI
- Buy by EUR amount (fractional shares, like Trade Republic): 200 EUR can
  now reach every large cap; risk engine sizes in whole euros
- No-AI screener (pullback in uptrend) feeds training cards and AI candidates
- Auto-update on app open via after(); "find ideas now" button (3/day)
- New Actions tab: stock list, stock page with chart, news, AI opinion,
  sandbox buy by amount or shares
- "Mon compte" tab: declare deposits, cash, holdings and PEA plan
  (no broker credentials, no PEA invented by default)
- Yahoo data cached and deduplicated, pages stream per section
- Tests: fractional sizing, screener, no-AI idea flow

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:05:20 +01:00
David
41c0d95878 Log the real database error cause when migration fails
Some checks failed
Tick / tick (push) Failing after 1s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 21:29:53 +01:00
David
a5d6200e04 Use GitHub (private) for Vercel, keep Gitea as mirror
Some checks failed
Tick / tick (push) Failing after 1s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 20:07:44 +01:00
David
25c27678d5 Revert "Deploy via Vercel CLI and server crontab instead of GitHub"
This reverts commit a81ec2c6df.
2026-11-13 20:07:38 +01:00
David
a81ec2c6df Deploy via Vercel CLI and server crontab instead of GitHub
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 19:34:19 +01:00
David
27a358038a Cagnotte V1: IA news-driven trading sim, sandbox, PEA tracking, PWA
Some checks failed
Tick / tick (push) Failing after 1s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 19:06:17 +01:00
David
0d4fca29f8 Initial commit from Create Next App 2026-10-11 13:44:36 +02:00