feat: add Telegram bot for manual trade commands
- Added telegram_command_bot.py with slash commands (/buySOL, /sellBTC, etc) - Docker compose setup with DNS configuration - Sends trades as plain text to n8n webhook (same format as TradingView) - Improved Telegram success message formatting - Only responds to authorized chat ID (579304651) - Commands: /buySOL, /sellSOL, /buyBTC, /sellBTC, /buyETH, /sellETH
This commit is contained in:
22
send_trade.sh
Executable file
22
send_trade.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# Quick script to trigger manual trades via n8n webhook
|
||||
# Usage: ./send_trade.sh "buy SOL"
|
||||
# ./send_trade.sh "sell BTC"
|
||||
|
||||
WEBHOOK_URL="https://YOUR_N8N_URL/webhook/manual-trade"
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 \"buy SOL\" or \"sell BTC\""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
COMMAND="$1"
|
||||
|
||||
echo "📤 Sending command: $COMMAND"
|
||||
|
||||
curl -X POST "$WEBHOOK_URL" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"text\": \"$COMMAND\"}"
|
||||
|
||||
echo ""
|
||||
echo "✅ Command sent!"
|
||||
Reference in New Issue
Block a user