All terminal commands to manage your Wingman Army bot. Open Terminal on your Mac → SSH into the server → paste any command below.
ssh [email protected]
Open Terminal on your Mac, run this, then enter your password. You're now controlling the server.
systemctl status coinex-bot --no-pager
Shows if the bot is running (green = active), when it started, and recent log lines.
systemctl restart coinex-bot
Restarts the bot. Use this after making any changes to the bot file.
systemctl stop coinex-bot
Stops the bot completely. It will not trade until you start it again.
systemctl start coinex-bot
Starts the bot if it's stopped.
tail -f /opt/coinex-bot/bot.log
Watch the bot in real-time. Press Ctrl+C to stop watching. Shows every scan and trade.
tail -50 /opt/coinex-bot/bot.log
Shows the last 50 lines of activity — useful for checking what happened recently.
echo '{"positions": {}, "position": null, "trades": [], "total_pnl": 0.0, "wins": 0, "losses": 0, "start_balance": null}' > /opt/coinex-bot/state.json && systemctl restart coinex-botUse this if you manually closed a position on CoinEx and the bot still thinks it's open. Clears all state and restarts fresh.
cat /opt/coinex-bot/state.json
Shows the bot's current state — open position, trade history, wins/losses, total PnL.
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.
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.
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.
grep TRAIL_RATIO /opt/coinex-bot/coinex_futures_bot.py
Shows the current trail ratio setting without opening the full file.
grep RISK_PCT /opt/coinex-bot/coinex_futures_bot.py
Shows what percentage of balance is used per trade (0.80 = 80%).
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).
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.
grep -i error /opt/coinex-bot/bot.log | tail -20
Filters the log for error messages only — quick way to spot what went wrong.
systemctl list-units --type=service --state=running
Shows everything running on the server. Useful for confirming the bot is in the list.
find /opt -name '*.py' 2>/dev/null
Searches for Python files in /opt — useful if you're not sure where the bot is installed.
df -h
Shows how much disk space is used. If the disk is full, the bot can't write logs or state.
systemctl stop coinex-bot && sleep 2 && echo '{}' > /opt/coinex-bot/state.json && systemctl start coinex-botHard 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.