feat: saxo connector
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user