feat: add position size and leverage to Telegram confirmation message
This commit is contained in:
@@ -176,7 +176,7 @@
|
||||
"values": [
|
||||
{
|
||||
"name": "message",
|
||||
"stringValue": "🟢 TRADE OPENED\\n\\n📊 Symbol: {{ $('Parse Signal').item.json.symbol }}\\n{{ $('Parse Signal').item.json.direction === 'long' ? '📈' : '📉' }} Direction: {{ $('Parse Signal').item.json.direction.toUpperCase() }}\\n⏰ Time: {{ $now.toFormat('HH:mm:ss') }}\\n\\n✅ Position is being monitored"
|
||||
"stringValue": "🟢 TRADE OPENED\\n\\n📊 Symbol: {{ $('Parse Signal').item.json.symbol }}\\n{{ $('Parse Signal').item.json.direction === 'long' ? '📈' : '📉' }} Direction: {{ $('Parse Signal').item.json.direction.toUpperCase() }}\\n\\n💵 Position: ${{ $('Execute Trade').item.json.positionSize }}\\n⚡ Leverage: {{ $('Execute Trade').item.json.leverage }}x\\n\\n💰 Entry: ${{ $('Execute Trade').item.json.entryPrice.toFixed(4) }}\\n🎯 TP1: ${{ $('Execute Trade').item.json.takeProfit1.toFixed(4) }} ({{ $('Execute Trade').item.json.tp1Percent }}%)\\n🎯 TP2: ${{ $('Execute Trade').item.json.takeProfit2.toFixed(4) }} ({{ $('Execute Trade').item.json.tp2Percent }}%)\\n🛑 SL: ${{ $('Execute Trade').item.json.stopLoss.toFixed(4) }} ({{ $('Execute Trade').item.json.stopLossPercent }}%)\\n\\n⏰ {{ $now.toFormat('HH:mm:ss') }}\\n✅ Position monitored"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -259,7 +259,7 @@
|
||||
{
|
||||
"parameters": {
|
||||
"chatId": "579304651",
|
||||
"text": "={{ `🟢 TRADE OPENED\\n\\n📊 Symbol: ${$('Parse Signal').item.json.symbol}\\n${$('Parse Signal').item.json.direction === 'long' ? '📈' : '📉'} Direction: ${$('Parse Signal').item.json.direction.toUpperCase()}\\n\\n💰 Entry: $${$json.entryPrice.toFixed(4)}\\n🎯 TP1: $${$json.takeProfit1.toFixed(4)} (${$json.tp1Percent}%)\\n🎯 TP2: $${$json.takeProfit2.toFixed(4)} (${$json.tp2Percent}%)\\n🛑 SL: $${$json.stopLoss.toFixed(4)} (${$json.stopLossPercent}%)\\n\\n⏰ ${$now.toFormat('HH:mm:ss')}\\n✅ Position monitored` }}",
|
||||
"text": "{{ `🟢 TRADE OPENED\\n\\n📊 Symbol: ${$('Parse Signal').item.json.symbol}\\n${$('Parse Signal').item.json.direction === 'long' ? '📈' : '📉'} Direction: ${$('Parse Signal').item.json.direction.toUpperCase()}\\n\\n💰 Entry: $${$json.entryPrice.toFixed(4)}\\n🎯 TP1: $${$json.takeProfit1.toFixed(4)} (${$json.tp1Percent}%)\\n🎯 TP2: $${$json.takeProfit2.toFixed(4)} (${$json.tp2Percent}%)\\n🛑 SL: $${$json.stopLoss.toFixed(4)} (${$json.stopLossPercent}%)\\n\\n⏰ ${$now.toFormat('HH:mm:ss')}\\n✅ Position monitored` }}",
|
||||
"additionalFields": {
|
||||
"appendAttribution": false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user