mpquant 库集成优化工具 — Ashare(新浪+腾讯双源) + MyTT(技术指标),用于优化 astock-copilot 项目的数据源和指标分析
Scanned 6/4/2026
Install to Claude Code
npx -y skills add gergchen/astock-market-engine --skill astock-mpquant-optimizer --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Astock Mpquant Optimizer?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/gergchen-astock-mpquant-optimizer)More formats (shields.io, HTML) on the badges page.
---
name: astock-mpquant-optimizer
description: mpquant 库集成优化工具 — Ashare(新浪+腾讯双源) + MyTT(技术指标),用于优化 astock-copilot 项目的数据源和指标分析
metadata:
type: skill
author: mpquant
source: https://github.com/mpquant
---
# astock-mpquant-optimizer
## 概述
将 mpquant 的两个核心库(Ashare + MyTT)集成到 astock-copilot 项目中,优化数据源稳定性和技术分析能力。
## 集成组件
### 1. Ashare 数据源
- **文件**: `backend/services/ashare_data.py`
- **数据源优先级**: 新浪财经(主) → 腾讯财经(备)
- **优势**: 无 IP 封禁,比 akshare East Money 更稳定
- **入口函数**: `get_price_daily(symbol, count=120)`
- **支持**: 日线 + 分钟线(1m/5m/15m/30m/60m)
### 2. MyTT 技术指标
- **文件**: `backend/services/technical_indicators.py`
- **功能**: 通达信/同花顺公式移植,纯 pandas 实现
- **入口函数**: `compute_indicators(df)` → dict
- **辅助函数**: `indicators_to_text(dict)` → AI prompt
- **信号函数**: `analyze_signal(dict)` → {"signal": "偏多/偏空/中性", "score": int}
## 数据源降级链路
Ashare(新浪) → Ashare(腾讯) → akshare stock_zh_a_daily → akshare stock_zh_a_hist → 模拟数据
## 使用方式
```python
# 数据获取
from backend.services.ashare_data import get_price_daily
df = get_price_daily("600519", count=120)
# 技术指标
from backend.services.technical_indicators import compute_indicators, indicators_to_text
indicators = compute_indicators(df)
text = indicators_to_text(indicators)
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.
Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.
A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling