Organization: - Created docs/ with setup/, guides/, history/ subdirectories - Created workflows/ with trading/, analytics/, telegram/, archive/ subdirectories - Created scripts/ with docker/, setup/, testing/ subdirectories - Created tests/ for TypeScript test files - Created archive/ for unused reference files Moved files: - 17 documentation files → docs/ - 16 workflow JSON files → workflows/ - 10 shell scripts → scripts/ - 4 test files → tests/ - 5 unused files → archive/ Updated: - README.md with new file structure and documentation paths Deleted: - data/ (empty directory) - screenshots/ (empty directory) Critical files remain in root: - telegram_command_bot.py (active bot - used by Dockerfile) - watch-restart.sh (systemd service dependency) - All Dockerfiles and docker-compose files - All environment files Validation: Containers running (trading-bot-v4, telegram-trade-bot, postgres) API responding (positions endpoint tested) Telegram bot functional (/status command tested) All critical files present in root No code changes - purely organizational. System continues running without interruption. Recovery: git revert HEAD or git reset --hard cleanup-before
23 lines
475 B
Bash
Executable File
23 lines
475 B
Bash
Executable File
#!/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!"
|