diff --git a/src/routes/webhook/tradingview/+server.ts b/src/routes/webhook/tradingview/+server.ts index fc99003..3b75e6a 100644 --- a/src/routes/webhook/tradingview/+server.ts +++ b/src/routes/webhook/tradingview/+server.ts @@ -116,7 +116,11 @@ export const POST = async ({ locals, request }) => { const client = new RestClientV5({ key: key, secret: secret, - demoTrading: true, + demoTrading: ['Compound', 'Close Position Compound'].includes( + form.data.type, + ) + ? false + : true, }) if (hedge && hedge === 'true') {