diff --git a/src/routes/webhook/tradingview/+server.ts b/src/routes/webhook/tradingview/+server.ts index 9ccb327..c67eccc 100644 --- a/src/routes/webhook/tradingview/+server.ts +++ b/src/routes/webhook/tradingview/+server.ts @@ -79,6 +79,14 @@ export const POST = async ({ locals, request }) => { wallet.result.list[0].totalAvailableBalance, ) + console.log('calculate:') + console.log('Entry Price:', form.data.entryPrice) + console.log('Qty Percent:', form.data.qtyPercent) + console.log( + 'Wallet Balance:', + wallet.result.list[0].totalAvailableBalance, + ) + qty = ( (Number(form.data.entryPrice) * Number(form.data.qtyPercent)) /