Add stonks CLI (Finnhub), portfolio tracker, morning briefing + weekly review crons

This commit is contained in:
Hoid 2026-02-12 19:51:50 +00:00
parent 956709f739
commit 9630edc4d4
6 changed files with 484 additions and 21 deletions

View file

@ -220,4 +220,47 @@ tasks recurring
---
## Finnhub Stock Market API
Helper script: `~/.openclaw/workspace/bin/stonks`
```bash
stonks quote <symbol> # Current price
stonks search <query> # Search for symbols
stonks candles <symbol> [days] # Price history (default: 30)
stonks news <symbol> [days] # Company news (default: 7)
stonks profile <symbol> # Company info
stonks portfolio # Show virtual portfolio
stonks buy <symbol> <amount> # Virtual buy (EUR)
stonks sell <symbol> [amount] # Virtual sell (EUR or all)
stonks limit-buy <sym> <price> <amt> # Limit buy order
stonks limit-sell <sym> <price> [amt] # Limit sell order
stonks check-limits # Check & execute triggered limits
stonks history # Trade history
```
- Credentials: `.credentials/finnhub.env`
- Portfolio data: `memory/portfolio.json`
- Virtual starting capital: €1,000
- **N26 constraint:** Only trade instruments available on N26 (check with user)
- Symbols: Use Finnhub format (e.g., `RHM.DE` for Xetra, `AAPL` for NASDAQ)
**Portfolio management:**
- Check limits during morning briefing and heartbeats
- Include portfolio status in morning briefing and weekly review
- Be proactive about market-moving news affecting positions
---
## Scheduled Briefings
| Briefing | Schedule | Content |
|----------|----------|---------|
| Morning Briefing | Daily 9:00 Vienna | Calendar, weather, tasks, portfolio, news |
| Weekly Review | Sunday 18:00 Vienna | Week recap, open tasks, portfolio performance, next week preview |
| News (Der Standard) | 10:00, 14:00, 18:00, 22:00 Vienna | Austrian/international news |
| News (AI) | 10:00, 14:00, 18:00, 22:00 Vienna | AI/tech news |
---
Add whatever helps you do your job. This is your cheat sheet.