|
|
|
|
@ -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)
|
|
|
|
|
|
|
|
|
|
|