Initial commit: Gold Trading Simulator with AI-powered analysis

This commit is contained in:
Krikorios
2025-11-16 00:50:04 +02:00
commit 72c1d3adb7
128 changed files with 16232 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
from __future__ import annotations
from fastapi import APIRouter
from typing import Any, Dict
from app.services.settings import get_models, update_models, get_exchanges, update_exchanges
router = APIRouter(prefix="/settings", tags=["Settings"])
@router.get("/models")
async def models_get() -> Dict[str, Any]:
return get_models()
@router.put("/models")
async def models_put(patch: Dict[str, Any]) -> Dict[str, Any]:
return update_models(patch)
@router.get("/exchanges")
async def exchanges_get() -> Dict[str, Any]:
return get_exchanges()
@router.put("/exchanges")
async def exchanges_put(patch: Dict[str, Any]) -> Dict[str, Any]:
return update_exchanges(patch)