trading: 日内T/长桥/六合彩文档与脚本 + quant-factor-mining 新目录
This commit is contained in:
@@ -1,25 +1,29 @@
|
||||
#!/bin/bash
|
||||
# Lottery cron wrapper - 直接调 lottery_特码.py 输出
|
||||
# cron no_agent 模式: 模型不参与,脚本输出直接推送
|
||||
#
|
||||
# 🚨 默认期号 = v_xg.json Nq (未开下期), 不是 Qi (已开)
|
||||
# (2026-08-13 修过: Qi→Nq, fallback 082→088)
|
||||
# 改这里时立刻 grep -n "Qi\|Nq" lottery_特码.py lottery_特码_cron.sh 对照
|
||||
set -e
|
||||
|
||||
cd /home/openclaw/.hermes/skills/trading/lottery-hk
|
||||
|
||||
# 自动取 Qi 期
|
||||
QI=$(python3 -c "
|
||||
# 自动取 Nq 期 (未开下期, 不是 Qi 已开)
|
||||
NQ=$(python3 -c "
|
||||
import json, urllib.request
|
||||
try:
|
||||
req = urllib.request.Request('https://btc.tktk.app/data/v_xg.json',
|
||||
headers={'User-Agent': 'Mozilla/5.0'})
|
||||
with urllib.request.urlopen(req, timeout=10) as r:
|
||||
d = json.loads(r.read().decode('utf-8'))
|
||||
print(d['Qi'])
|
||||
print(d['Nq'])
|
||||
except Exception:
|
||||
print('082') # fallback
|
||||
print('088') # fallback
|
||||
")
|
||||
|
||||
echo "🎯 分析期号: ${QI} (v_xg.json Qi)"
|
||||
echo "🎯 分析期号: ${NQ} (v_xg.json Nq 未开下期)"
|
||||
echo ""
|
||||
|
||||
# 跑真脚本
|
||||
python3 /home/openclaw/.hermes/skills/trading/lottery-hk/scripts/lottery_特码.py "${QI}" 2>&1
|
||||
python3 /home/openclaw/.hermes/skills/trading/lottery-hk/scripts/lottery_特码.py "${NQ}" 2>&1
|
||||
Reference in New Issue
Block a user