update calculation

master
TZGyn 10 months ago
parent df78929d11
commit 94d7e88d99
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -88,10 +88,9 @@ export const POST = async ({ locals, request }) => {
)
qty = (
(Number(form.data.entryPrice) *
Number(form.data.qtyPercent)) /
100 /
Number(wallet.result.list[0].totalAvailableBalance)
(Number(wallet.result.list[0].totalAvailableBalance) *
(Number(form.data.qtyPercent) / 100)) /
Number(form.data.entryPrice)
).toFixed(getDecimalPoint(symbol.slice(0, -4)))
takeProfit = (
Number(form.data.entryPrice) *

Loading…
Cancel
Save