fix existing orders not working

master
TZGyn 9 months ago
parent 589de51dc7
commit 9e8aa12a90
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

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

Loading…
Cancel
Save