From 02f7f9b1cfab48c2c2a8280142800e5b40620edf Mon Sep 17 00:00:00 2001 From: TZGyn Date: Thu, 20 Feb 2025 01:13:09 +0800 Subject: [PATCH] update close position quantity --- src/routes/webhook/tradingview/+server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/webhook/tradingview/+server.ts b/src/routes/webhook/tradingview/+server.ts index b2cc40d..9ccb327 100644 --- a/src/routes/webhook/tradingview/+server.ts +++ b/src/routes/webhook/tradingview/+server.ts @@ -113,7 +113,7 @@ export const POST = async ({ locals, request }) => { position.result.list[0].side === 'Buy' ? ('Sell' as const) : ('Buy' as const) - qty = position.result.list[0].positionValue + qty = position.result.list[0].size } console.log({ qty, takeProfit, stopLoss })