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