|
|
|
@ -145,7 +145,7 @@ export const POST = async ({ locals, request }) => {
|
|
|
|
orderType: 'Market',
|
|
|
|
orderType: 'Market',
|
|
|
|
qty,
|
|
|
|
qty,
|
|
|
|
takeProfit: side === 'Buy' ? takeProfit : stopLoss,
|
|
|
|
takeProfit: side === 'Buy' ? takeProfit : stopLoss,
|
|
|
|
stopLoss: side === 'Sell' ? stopLoss : takeProfit,
|
|
|
|
stopLoss: side === 'Buy' ? stopLoss : takeProfit,
|
|
|
|
isLeverage: isLeverage ? 1 : 0,
|
|
|
|
isLeverage: isLeverage ? 1 : 0,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return new Response()
|
|
|
|
return new Response()
|
|
|
|
|