feat: saxo connector

This commit is contained in:
OpenSquared
2026-07-18 17:30:47 +02:00
parent bff2f70781
commit 9f24897791

View File

@@ -1,5 +1,10 @@
import os
from pathlib import Path
from dotenv import load_dotenv
load_dotenv()
# Explicit path: don't rely on the process's current working directory (a systemd
# unit, pm2, or a launcher script may start uvicorn from somewhere other than
# backend/), otherwise .env silently fails to load and SAXO_APP_KEY/SECRET stay unset.
load_dotenv(dotenv_path=Path(__file__).resolve().parent / ".env")
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
@@ -27,7 +32,6 @@ from routers import strategy_builder as strategy_builder_router
from routers import saxo_oauth as saxo_oauth_router
from routers import saxo as saxo_router
from services.database import init_db, get_config, cleanup_stale_running_cycles
import os
import logging
import uvicorn