From d4aeeb4f99b4a6de26efccec8e6c306fc058b99c Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Sun, 2 Nov 2025 23:04:02 +0100 Subject: [PATCH] fix: add MAE/MFE fields to all ActiveTrade initializations Updated execute, test, and test-db endpoints to include: - maxFavorableExcursion: 0 - maxAdverseExcursion: 0 - maxFavorablePrice: entryPrice - maxAdversePrice: entryPrice Required for TypeScript compilation after adding MAE/MFE tracking --- app/api/trading/execute/route.ts | 4 ++++ app/api/trading/test-db/route.ts | 4 ++++ app/api/trading/test/route.ts | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/app/api/trading/execute/route.ts b/app/api/trading/execute/route.ts index 3fc69b1..d283b78 100644 --- a/app/api/trading/execute/route.ts +++ b/app/api/trading/execute/route.ts @@ -246,6 +246,10 @@ export async function POST(request: NextRequest): Promise