tp/sl optional

master
TZGyn 10 months ago
parent e629808825
commit 4cf2c1acf5
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -13,8 +13,8 @@ export const POST = async ({ locals, request }) => {
symbol: z.string(), symbol: z.string(),
side: z.enum(['Buy', 'Sell']), side: z.enum(['Buy', 'Sell']),
qty: z.string(), qty: z.string(),
takeProfit: z.string(), takeProfit: z.string().optional(),
stopLoss: z.string(), stopLoss: z.string().optional(),
}) })
.safeParse(body) .safeParse(body)

Loading…
Cancel
Save