#!/usr/bin/env bash
set -euo pipefail
cd /home/arin/.openclaw/workspace/projects/auto-trader
LOG_DIR=logs
mkdir -p "$LOG_DIR"
STAMP=$(date +%F-%H%M%S)
nohup /home/arin/.openclaw/workspace/KIS_MCP_Server/.venv/bin/python trader_daemon.py >> "$LOG_DIR/trader-$STAMP.log" 2>&1 &
echo $! > trader.pid
echo "started trader pid $(cat trader.pid)"
