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
20 lines
437 B
Bash
Executable File
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"
|