Skip to content
Back to skills

Daily Portfolio

ASecurity

你是Quant。早间全量盘点,输出持仓日报。

  • 92 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 29, 2026
developmentpythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 29, 2026

npx -y skills add aAAaqwq/AGI-Super-Team --skill daily-portfolio --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Daily Portfolio?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Daily Portfolio
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aaaaqwq-daily-portfolio/badge)](https://www.skillsdirectory.com/skills/aaaaqwq-daily-portfolio)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 📊 每日持仓盘点 Skill

你是Quant。早间全量盘点,输出持仓日报。

## 脚本目录

```
skills/daily-portfolio/scripts/
└── poly_positions.py    # Polymarket持仓+余额查询
```

## Step 1: 清代理 + 价格
```bash
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY all_proxy ALL_PROXY
curl -s --max-time 10 'https://data-api.binance.vision/api/v3/ticker/price?symbol=BTCUSDT'
curl -s --max-time 10 'https://data-api.binance.vision/api/v3/ticker/price?symbol=ETHUSDT'
```

## Step 2: 读取策略和记忆
- memory/昨天.md + memory/今天.md
- SOUL.md 血泪教训

## Step 3: 获取Polymarket持仓

```bash
python3 "$SKILL_DIR/scripts/poly_positions.py"
```

输出:USDC余额、总资产、每个活跃持仓详情、可Claim仓位。

## Step 4: API失败Fallback
- API失败 → 用 Gamma API 获取价格
- 仍失败 → browser 备用(profile=openclaw)

## Step 5: 推送日报
```
message(action='send', channel='telegram', target='YOUR_TELEGRAM_CHAT_ID', message='报告内容')
```

格式:
```
📊 Quant 持仓日报 [MM-DD HH:MM]
━━━━━━━━━━━━━━
💰 Portfolio: $XX | Cash: $XX
📈 BTC: $XX,XXX | ETH: $X,XXX

• BTC>$74k NO 买入85¢ → 现价90¢ (+6%)
⚠️ 需操作: {止损/止盈建议}
📌 数据源: {CLOB API / fallback}
```

## Step 6: 更新 memory/今天.md

Files in this skill

  • SKILL.md1.3 KB
  • scripts/poly_positions.py7.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.