feat: add position size and leverage to Telegram confirmation message

This commit is contained in:
mindesbunister
2025-10-27 01:06:51 +01:00
parent 428b3dc078
commit b82ceb49a4
4 changed files with 7 additions and 5 deletions

View File

@@ -28,6 +28,7 @@ export interface ExecuteTradeResponse {
direction?: 'long' | 'short'
entryPrice?: number
positionSize?: number
leverage?: number
stopLoss?: number
takeProfit1?: number
takeProfit2?: number
@@ -221,6 +222,7 @@ export async function POST(request: NextRequest): Promise<NextResponse<ExecuteTr
direction: body.direction,
entryPrice: entryPrice,
positionSize: positionSizeUSD,
leverage: config.leverage,
stopLoss: stopLossPrice,
takeProfit1: tp1Price,
takeProfit2: tp2Price,