Command Reference

All terminal commands to manage your Wingman Army bot. Open Terminal on your Mac → SSH into the server → paste any command below.

Server IP:207.246.88.34| User: root

Connect to Server

SSH into Vultr Server
ssh [email protected]

Open Terminal on your Mac, run this, then enter your password. You're now controlling the server.

Bot Management

Check Bot Status
systemctl status coinex-bot --no-pager

Shows if the bot is running (green = active), when it started, and recent log lines.

Restart Bot
systemctl restart coinex-bot

Restarts the bot. Use this after making any changes to the bot file.

Stop Bot
systemctl stop coinex-bot

Stops the bot completely. It will not trade until you start it again.

Start Bot
systemctl start coinex-bot

Starts the bot if it's stopped.

View Live Logs
tail -f /opt/coinex-bot/bot.log

Watch the bot in real-time. Press Ctrl+C to stop watching. Shows every scan and trade.

View Last 50 Log Lines
tail -50 /opt/coinex-bot/bot.log

Shows the last 50 lines of activity — useful for checking what happened recently.

State & Reset

Clear State (Fresh Start)
echo '{"positions": {}, "position": null, "trades": [], "total_pnl": 0.0, "wins": 0, "losses": 0, "start_balance": null}' > /opt/coinex-bot/state.json && systemctl restart coinex-bot

Use this if you manually closed a position on CoinEx and the bot still thinks it's open. Clears all state and restarts fresh.

View Current State
cat /opt/coinex-bot/state.json

Shows the bot's current state — open position, trade history, wins/losses, total PnL.

Upload Bot to Termbin (for sharing)
cat /opt/coinex-bot/coinex_futures_bot.py | nc termbin.com 9999

Uploads the current bot code to termbin.com and returns a URL. Use this to share the code for updates.

Bot Settings (Quick Edits)

Change Trail Ratio to 25%
sed -i 's/TRAIL_RATIO.*=.*/TRAIL_RATIO           = 0.25   # Lock in 75% of peak profit/' /opt/coinex-bot/coinex_futures_bot.py && systemctl restart coinex-bot

Tightens the trailing stop — bot locks in 75% of peak profit before closing. Recommended setting.

Change Trail Ratio to 50%
sed -i 's/TRAIL_RATIO.*=.*/TRAIL_RATIO           = 0.50   # Lock in 50% of peak profit/' /opt/coinex-bot/coinex_futures_bot.py && systemctl restart coinex-bot

Looser trailing stop — gives trades more room to breathe but gives back more profit.

Check Current Trail Ratio
grep TRAIL_RATIO /opt/coinex-bot/coinex_futures_bot.py

Shows the current trail ratio setting without opening the full file.

Check Current Risk % per Trade
grep RISK_PCT /opt/coinex-bot/coinex_futures_bot.py

Shows what percentage of balance is used per trade (0.80 = 80%).

Deploy Bot Updates

Deploy Bot v5 (Current Version)
curl -o /opt/coinex-bot/coinex_futures_bot.py https://files.manuscdn.com/user_upload_by_module/session_file/310519663365428266/ZrpZGBxQncPYWBoK.py && systemctl restart coinex-bot

Downloads and deploys the latest bot version (v5 — multi-asset scanning, 8 symbols, 25% trail, funding rate filter).

Verify Bot File Exists
ls -la /opt/coinex-bot/

Lists all files in the bot directory — confirms the bot file is there and shows its size and last modified time.

Troubleshooting

Check for Errors in Logs
grep -i error /opt/coinex-bot/bot.log | tail -20

Filters the log for error messages only — quick way to spot what went wrong.

Check All Running Services
systemctl list-units --type=service --state=running

Shows everything running on the server. Useful for confirming the bot is in the list.

Find Bot File Location
find /opt -name '*.py' 2>/dev/null

Searches for Python files in /opt — useful if you're not sure where the bot is installed.

Check Server Disk Space
df -h

Shows how much disk space is used. If the disk is full, the bot can't write logs or state.

Restart if Bot Keeps Crashing
systemctl stop coinex-bot && sleep 2 && echo '{}' > /opt/coinex-bot/state.json && systemctl start coinex-bot

Hard reset — stops bot, clears state, starts fresh. Use if the bot keeps crashing in a loop.

Keep this page bookmarked. All commands are for the Vultr server at 207.246.88.34 running the Wingman Army CoinEx Futures Bot.