From a1fa0b85116d0d79b7e39ca2390b1ab22d8b731e Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sun, 8 Jun 2025 21:18:03 +0800 Subject: [PATCH] update position check --- src/routes/webhook/tradingview/tradingstop/+server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/webhook/tradingview/tradingstop/+server.ts b/src/routes/webhook/tradingview/tradingstop/+server.ts index cf5a874..f53bf19 100644 --- a/src/routes/webhook/tradingview/tradingstop/+server.ts +++ b/src/routes/webhook/tradingview/tradingstop/+server.ts @@ -51,7 +51,7 @@ export const POST = async ({ locals, request }) => { mode: 3, }) - const position = await client.getPositionInfo({ + const position = await client.getActiveOrders({ category: 'linear', symbol: symbol, })