update close position quantity

master
TZGyn 10 months ago
parent 6ff9177a44
commit 02f7f9b1cf
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -113,7 +113,7 @@ export const POST = async ({ locals, request }) => {
position.result.list[0].side === 'Buy' position.result.list[0].side === 'Buy'
? ('Sell' as const) ? ('Sell' as const)
: ('Buy' as const) : ('Buy' as const)
qty = position.result.list[0].positionValue qty = position.result.list[0].size
} }
console.log({ qty, takeProfit, stopLoss }) console.log({ qty, takeProfit, stopLoss })

Loading…
Cancel
Save