Initial commit: Gold Trading Simulator with AI-powered analysis
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from fastapi import APIRouter, Query
|
||||
from typing import List, Dict, Any
|
||||
|
||||
from app.services.decisions import store
|
||||
|
||||
router = APIRouter(prefix="/decisions", tags=["Decisions"])
|
||||
|
||||
|
||||
@router.get("/latest")
|
||||
async def latest_decisions(limit: int = Query(20, ge=1, le=100)) -> List[Dict[str, Any]]:
|
||||
return store.latest(limit=limit)
|
||||
Reference in New Issue
Block a user