|
|
|
@ -169,7 +169,7 @@ export const POST = async ({ locals, request }) => {
|
|
|
|
takeProfit: side === 'Buy' ? takeProfit : stopLoss,
|
|
|
|
takeProfit: side === 'Buy' ? takeProfit : stopLoss,
|
|
|
|
stopLoss: side === 'Buy' ? stopLoss : takeProfit,
|
|
|
|
stopLoss: side === 'Buy' ? stopLoss : takeProfit,
|
|
|
|
isLeverage: isLeverage ? 1 : 0,
|
|
|
|
isLeverage: isLeverage ? 1 : 0,
|
|
|
|
positionIdx,
|
|
|
|
positionIdx: hedge !== undefined ? positionIdx : undefined,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
console.log('Order:', order)
|
|
|
|
console.log('Order:', order)
|
|
|
|
|