chore: remove tracked files that should be gitignored
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
import sqlite3
|
||||
conn = sqlite3.connect('data/trades.db')
|
||||
rows = conn.execute('SELECT id, scale_count, amount_usd, fee_entry, fee_exit, net_pnl FROM trades').fetchall()
|
||||
for r in rows:
|
||||
print(f' #{r[0]}: scales={r[1]} amt=${r[2]} fee_entry={r[3]:.6f} fee_exit={r[4]:.6f} net={r[5]:.6f}')
|
||||
conn.close()
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,35 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Morning summary script — triggered by cron at 8 AM
|
||||
|
||||
PROJECT_DIR="/home/jack/Project/exchange-monitor-go"
|
||||
STATS_FILE="$PROJECT_DIR/trade_stats.txt"
|
||||
LOG_FILE="$PROJECT_DIR/morning_summary.txt"
|
||||
|
||||
# Find the PID of the exchange-monitor process
|
||||
PID=$(pgrep -f "exchange-monitor" | head -1)
|
||||
|
||||
if [ -n "$PID" ]; then
|
||||
# Send SIGUSR1 to dump stats
|
||||
kill -USR1 "$PID" 2>/dev/null
|
||||
sleep 2
|
||||
|
||||
# Read stats
|
||||
if [ -f "$STATS_FILE" ]; then
|
||||
cat "$STATS_FILE"
|
||||
echo ""
|
||||
echo "=== 程序状态 ==="
|
||||
ps -p "$PID" -o pid,etime,cmd --no-headers 2>/dev/null || echo "进程已结束"
|
||||
fi
|
||||
|
||||
# Kill the process
|
||||
kill "$PID" 2>/dev/null
|
||||
sleep 1
|
||||
kill -0 "$PID" 2>/dev/null && kill -9 "$PID" 2>/dev/null
|
||||
|
||||
echo ""
|
||||
echo "程序已停止 (PID: $PID)"
|
||||
else
|
||||
echo "未找到运行中的 exchange-monitor 进程"
|
||||
fi
|
||||
|
||||
echo "=== 报告完成 ==="
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
cd /home/jack/Project/exchange-monitor-go
|
||||
# Redirect stderr to stdout so background mode captures everything
|
||||
./exchange-monitor 2>&1
|
||||
@@ -1,6 +0,0 @@
|
||||
=== 收敛统计 === 2026-05-02 20:01
|
||||
总交易数: 310
|
||||
价差收敛: 309
|
||||
价差持平: 0
|
||||
价差发散: 1
|
||||
收敛率: 99.7%
|
||||
Reference in New Issue
Block a user