position-monitor

Hourly position monitor — execute take-profit/stop-loss and track peak gains

33 stars

Best use case

position-monitor is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Hourly position monitor — execute take-profit/stop-loss and track peak gains

Teams using position-monitor should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/position-monitor/SKILL.md --create-dirs "https://raw.githubusercontent.com/aAAaqwq/AGI-Super-Team/main/skills/position-monitor/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/position-monitor/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How position-monitor Compares

Feature / Agentposition-monitorStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Hourly position monitor — execute take-profit/stop-loss and track peak gains

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 📊 仓位监控+止盈止损 Skill v3.0 (API-based)

你是Quant。每小时检查持仓,执行止盈止损,追踪盈利峰值。

## 执行方式

**优先使用API脚本**(零token消耗、速度快):
```bash
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY all_proxy ALL_PROXY
python3 ${WORKSPACE}/scripts/api_position_monitor.py
```

实时交易模式(实际执行卖出):
```bash
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY all_proxy ALL_PROXY
python3 ${WORKSPACE}/scripts/api_position_monitor.py --live
```

**Browser为fallback**(API失败时):参照下方Step 3。

## 数据源

| 数据 | API来源 | 说明 |
|------|---------|------|
| 持仓 | CLOB `get_trades()` 重建 | 从交易历史聚合净仓位+当前价格 |
| 现金余额 | CLOB `get_balance_allowance()` | USDC余额 |
| 现价 | CLOB `get_price(token_id)` | 实时报价 |
| BTC/ETH价格 | Binance API | 趋势分析 |
| 可Claim仓位 | CLOB trades (price=0, net>0) | 已结算待认领 |

⚠️ **data-api `/positions` 不可靠**(经常返回空),用CLOB trades重建替代。

## 止盈止损规则 v5.0(按优先级执行)

### 止损(先检查)
| # | 条件 | 动作 |
|---|------|------|
| SL1 | 亏 > 40% | **全部止损** |
| SL2 | 亏 > 25% | **减仓40%** |
| SL3 | 亏 > 15% 且 4h连跌2根+buffer<3% | **止损一半** |

### 止盈(再检查)
| # | 条件 | 动作 |
|---|------|------|
| TP1 | 现价 ≥ 99¢ 且 结算 > 4h | **全卖**(1¢不值等)|
| TP2 | 盈利 ≥ 50% | **全卖** |
| TP3 | 盈利 ≥ 30% 且 现价 ≥ 95¢ | **全卖**(上升空间<5¢)|
| TP4 | 盈利 ≥ 25% | **卖50%** |
| TP4b | 盈利 ≥ 15% | **卖60%** |
| TP5 | 盈利峰值回撤 ≥ 10pp(且峰值≥10%)| **卖50%** |
| TP6 | 利润腰斩相对值(且峰值≥10%)| **全卖** |

### TP5/TP6 说明
- 峰值+25%,现在+15% → 回撤10pp → **TP5卖半**
- 峰值+20%,现在+10% → 回撤10pp且=50%峰值 → **TP6全卖**
- 峰值+12%,现在+2% → 回撤10pp → **TP5卖半**
- 峰值+8%,现在+5% → 回撤3pp,峰值<10% → **不触发**

## Browser Fallback(API失败时)

Step 3-7: 与v2.0相同,用browser打开portfolio、snapshot、执行操作。

## 变更记录
- v3.0 (2026-03-24): API化重构。CLOB trades重建持仓替代data-api/browser,支持`--live`执行卖出
- v2.0 (2026-03-17): Daniel指令重设止盈止损。新增TP4/TP5/TP6回撤止盈,profit-peaks.json峰值追踪
- v1.0 (2026-03-15): 从cron prompt迁移为skill

Related Skills

monitoring-whale-activity

33
from aAAaqwq/AGI-Super-Team

Track large cryptocurrency transactions and whale wallet movements across multiple blockchains. Monitor exchange inflows/outflows, manage watchlists, Track large cryptocurrency transactions and whale wallet movements in real-time. Use when tracking large holder movements, exchange flows, or wallet activity. Trigger with phrases like "track whales", "monitor large transfers", "check whale activity", "exchange inflows", or "watch wallet".

email-monitor

33
from aAAaqwq/AGI-Super-Team

AI inbox classification + Telegram notification

effect-monitoring

33
from aAAaqwq/AGI-Super-Team

Use when monitoring Xiaohongshu marketing campaign performance, tracking promotion effectiveness, analyzing advertising ROI, measuring influencer collaboration results, evaluating activity success rates, or optimizing marketing spend allocation

ct-monitor-skill

33
from aAAaqwq/AGI-Super-Team

> 证书透明度监控——SSL/TLS 证书透明度日志监控与告警

browser-login-monitor

33
from aAAaqwq/AGI-Super-Team

> 浏览器登录安全监控——监测浏览器会话状态与登录安全

api-quota-monitor

33
from aAAaqwq/AGI-Super-Team

查询监控 API 供应商/服务的额度、余额、消耗情况。支持官方供应商(Gemini/xAI/ZAI/Minimax/OpenRouter等)、中转站(AIXN/Provider-A等)、订阅服务(Brave/Tavily/Serper)。触发词:查额度、查余额、API用量、供应商额度、quota、balance、usage、billing。

a-fund-monitor

33
from aAAaqwq/AGI-Super-Team

监控 A 股基金实时估值与盘后净值,自动判断交易日并生成提醒或分析。

wemp-operator

33
from aAAaqwq/AGI-Super-Team

> 微信公众号全功能运营——草稿/发布/评论/用户/素材/群发/统计/菜单/二维码 API 封装

Content & Documentation

zsxq-smart-publish

33
from aAAaqwq/AGI-Super-Team

Publish and manage content on 知识星球 (zsxq.com). Supports talk posts, Q&A, long articles, file sharing, digest/bookmark, homework tasks, and tag management. Use when publishing content to 知识星球, creating/editing posts, uploading files/images/audio, managing digests, batch publishing, or formatting content for 知识星球.

zoom-automation

33
from aAAaqwq/AGI-Super-Team

Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.

zoho-crm-automation

33
from aAAaqwq/AGI-Super-Team

Automate Zoho CRM tasks via Rube MCP (Composio): create/update records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.

ziliu-publisher

33
from aAAaqwq/AGI-Super-Team

字流(Ziliu) - AI驱动的多平台内容分发工具。用于一次创作、智能适配排版、一键分发到16+平台(公众号/知乎/小红书/B站/抖音/微博/X等)。当用户需要多平台发布、内容排版、格式适配时使用。触发词:字流、ziliu、多平台发布、一键分发、内容分发、排版发布。