diff --git a/src/routes/webhook/tradingview/+server.ts b/src/routes/webhook/tradingview/+server.ts index 402c4c6..192404f 100644 --- a/src/routes/webhook/tradingview/+server.ts +++ b/src/routes/webhook/tradingview/+server.ts @@ -100,6 +100,10 @@ export const POST = async ({ locals, request }) => { wallet.result.list[0].totalAvailableBalance, ) + const [price, decimals] = form.data.entryPrice.split('.') + console.log('Decimals', decimals) + console.log('Decimals Length', decimals.length) + qty = ( (Number(wallet.result.list[0].totalAvailableBalance) * ((Number(form.data.qtyPercent) / 100) *