Add trading journal and portfolio tracking

This commit is contained in:
kai
2026-09-09 19:01:30 +02:00
parent 1db3b008ec
commit c683bc74c0
24 changed files with 1043 additions and 8 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
from pathlib import Path
from trading_models import display_decimal
from fastapi.templating import Jinja2Templates
from models import money, percent, percent_text, CATEGORIES, ASSET_TYPES, MONTHS
templates = Jinja2Templates(directory=str(Path(__file__).parent / 'templates'))
templates.env.filters.update(money=money, percent=percent_text)
templates.env.filters.update(money=money, percent=percent_text, decimal=display_decimal)
templates.env.globals.update(compare=percent, categories=CATEGORIES, asset_types=ASSET_TYPES, months=MONTHS)