Files
trading_bot_v4/trade.sh
mindesbunister 3e2cf2eec2 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
2025-10-27 00:23:09 +01:00

20 lines
437 B
Bash
Executable File

#!/bin/bash
# Send manual trade command
# Usage: ./trade.sh buy sol
# ./trade.sh sell btc
COMMAND="$1 $2"
if [ -z "$COMMAND" ]; then
echo "Usage: $0 <buy|sell> <sol|btc|eth>"
echo "Example: $0 buy sol"
exit 1
fi
curl -X POST http://10.0.0.48:8098/webhook/3371ad7c-0866-4161-90a4-f251de4aceb8 \
-H "Content-Type: application/json" \
-d "{\"body\": \"$COMMAND\"}"
echo ""
echo "✅ Trade command sent: $COMMAND"