diff --git a/src/routes/webhook/tradingview/+server.ts b/src/routes/webhook/tradingview/+server.ts index 5ef2dee..c97afe0 100644 --- a/src/routes/webhook/tradingview/+server.ts +++ b/src/routes/webhook/tradingview/+server.ts @@ -13,8 +13,8 @@ export const POST = async ({ locals, request }) => { symbol: z.string(), side: z.enum(['Buy', 'Sell']), qty: z.string(), - takeProfit: z.string(), - stopLoss: z.string(), + takeProfit: z.string().optional(), + stopLoss: z.string().optional(), }) .safeParse(body)