Communitygithub.com

投资组合技能

追踪你在预测市场与期货交易所中的仓位及盈亏情况。

投资组合技能 是什么?

该投资组合技能(Portfolio Skill)专为 AI 代理设计,帮助用户统一追踪跨平台的投资组合表现。它支持 Polymarket、Kalshi 和 Manifold 等预测市场,以及 Hyperliquid、Binance Futures、Bybit 和 MEXC 等期货交易所。通过简单的 `/portfolio` 命令,用户可以查看仓位详情、未实现盈亏、每日/每周/每月 P&L、风险评估指标(如相关性矩阵、集中度风险、对冲对识别),并自动同步持仓数据。技能还集成了巨鲸追踪功能,监控大额交易者动向及链上加密巨鲸活动。所有数据通过 API 密钥或钱包地址安全连接,每小时自动快照生成仓位历史,并以清晰的表格和 ASCII 图展示。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/majiayu000/claude-skill-registry/tree/HEAD/skills/analysis/portfolio-alsk1992-cloddsbot

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

投资组合技能 是做什么的?

追踪你在预测市场与期货交易所中的仓位及表现。

命令

查看投资组合

/portfolio
/portfolio positions
/portfolio pnl

历史记录

/portfolio history          # 最近 7 天(默认)
/portfolio history 30d      # 最近 30 天
/portfolio history 90d      # 最近 90 天

同步仓位(自动)

/portfolio sync

按平台筛选

/portfolio platform polymarket
/portfolio platform binance

风险

/portfolio risk          # 完整风险指标
/portfolio exposure      # 分类风险敞口分解

功能

仓位追踪

  • 入场价与当前价
  • 持仓数量
  • 未实现盈亏(金额与百分比)
  • 平台分解

期货支持

  • 杠杆倍数显示
  • 多/空方向标识
  • 清算价格
  • 名义价值
  • 保证金类型(全仓/逐仓)

盈亏总结

  • 总投资组合价值
  • 每日/每周/每月盈亏
  • 最佳与最差表现仓位
  • 平台级别盈亏

多平台支持

预测市场:

  • Polymarket(通过 API 密钥)
  • Kalshi(通过 API 密钥)
  • Manifold(通过 API 密钥)

期货交易所:

  • Hyperliquid(通过钱包地址 + 私钥)
  • Binance Futures(通过 API 密钥 + 密钥)
  • Bybit(通过 API 密钥 + 密钥)
  • MEXC(通过 API 密钥 + 密钥)

余额追踪

  • 每个平台的可用及锁定余额
  • Polymarket:通过未成交买单计算的锁定 USDC
  • 期货:已用保证金 vs 可用保证金

投资组合历史

  • 每小时定时同步期间自动生成快照
  • ASCII 迷你折线图
  • 起始/结束值及变化(金额,百分比)
  • 峰值与低值
  • 近期数据点表格

风险分析

  • 相关性矩阵:查看各仓位之间的相关性
  • 分类敞口:按政治、加密货币、体育、经济等分解
  • 集中度风险:HHI 得分与分散度指标
  • 对冲对识别:识别互相抵消的仓位(多 YES + 空 NO)

巨鲸追踪集成

追踪大额交易者的动向:

/portfolio whales        # 你市场中的顶级巨鲸
/portfolio follow 0x...  # 关注某个巨鲸的仓位
/portfolio smart-money   # 汇总巨鲸活动

加密巨鲸监控

跨链监控大额加密货币交易:

/portfolio crypto-whales          # 近期巨鲸活动
/portfolio crypto-whales solana   # 仅限 Solana 巨鲸
/portfolio crypto-whales top 10   # 按成交量排名前 10

环境变量

# 预测市场
POLY_API_KEY, POLY_API_SECRET, POLY_API_PASSPHRASE
KALSHI_API_KEY, KALSHI_PRIVATE_KEY

# 期货交易所
HL_WALLET_ADDRESS, HL_PRIVATE_KEY
BINANCE_FUTURES_KEY, BINANCE_FUTURES_SECRET
BYBIT_API_KEY, BYBIT_API_SECRET
MEXC_API_KEY, MEXC_API_SECRET

示例

用户:"我的投资组合怎么样了?" → 显示所有仓位及其当前价格和盈亏

用户:"我今天赚了多少?" → 计算所有仓位的每日盈亏

用户:"我在政治类市场的风险敞口是多少?" → 按类别筛选仓位,汇总风险敞口

用户:"显示我的 Binance 仓位" → 筛选出 Binance 期货仓位,附带杠杆信息

输出格式

投资组合摘要

总价值:$12,450
仓位数:8
未实现盈亏:+$320 (+2.6%)
已实现盈亏:$150

余额:
  polymarket:$2,500($2,100 可用,$400 锁定)
  binance:$5,000($3,200 可用,$1,800 锁定)

BTCUSDT 永续 [binance]
  做多 10x:0.5000 @ $98,500.00
  +$250.00 (+5.1%) | 清算价 $89,100.00

Trump 2028 [polymarket]
  是:100.00 @ $0.520
  +$70.00 (+15.6%)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

majiayu000/claude-skill-registry

Builds, edit or validate Agent Skill through conversational discovery. Use when the user requests to "Create an Agent", "Optimize an Agent" or "Edit an Agent".

majiayu000/claude-skill-registry

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry

Analyzes current state and user query to answer BMad questions or recommend the next workflow or agent. Use when user says what should I do next, what do I do now, or asks a question about BMad

majiayu000/claude-skill-registry

Build AI agents with Google ADK Python (Agent Development Kit). Use for multi-agent systems, workflow agents (sequential/parallel/loop), Vertex AI deployment, tool integration, human-in-the-loop.

majiayu000/claude-skill-registry

Build AI agents with Google ADK Python (Agent Development Kit). Use for multi-agent systems, workflow agents (sequential/parallel/loop), Vertex AI deployment, tool integration, human-in-the-loop.

majiayu000/claude-skill-registry

Portfolio allocation and rebalancing optimizer. Manages asset allocation across stocks/cash/bonds, performs periodic rebalancing, and ensures diversification according to market regime and risk tolerance.

majiayu000/claude-skill-registry

Create a hilarious and ultra-realistic video of an anthropomorphic animal acting like a human vlogger in a real-world setting.

majiayu000/claude-skill-registry

Speech-to-text transcription and translation via OpenAI Audio API -- models, response formats, timestamps, prompting, streaming, chunking, and diarization

majiayu000/claude-skill-registry

BlockRun works with Claude Code and Google Antigravity.

majiayu000/claude-skill-registry

This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.

majiayu000/claude-skill-registry

小省导购员数字人带货版即梦视频提示词生成系统,基于四大智能体协同(提示词生成师、质量管控师、知识库运维师、跨环节适配师),按照"主体+运动+场景+(镜头语言+光影+氛围)"公式输出中英文双版提示词,适配5s短视频。确保人物一致性、视觉连贯性、情绪连贯性,支持知识库智能复用和跨工具适配(Suno音乐、AI绘画),为数字人带货视频提供高质量提示词生成服务。

majiayu000/claude-skill-registry

Upload and manage files using Google Gemini File API via scripts/. Use for uploading images, audio, video, PDFs, and other files for use with Gemini models. Supports file upload, status checking, and file management. Triggers on "upload file", "file API", "upload image", "upload PDF", "upload video", "file management".

majiayu000/claude-skill-registry

CRITICAL: Use for MolyKit AI chat toolkit. Triggers on: BotClient, OpenAI, SSE streaming, AI chat, molykit, PlatformSend, spawn(), ThreadToken, cross-platform async, Chat widget, Messages, PromptInput, Avatar, LLM

majiayu000/claude-skill-registry

AI and machine learning workflow covering LLM application development, RAG implementation, agent architecture, ML pipelines, and AI-powered features.

majiayu000/claude-skill-registry

Analyze images/audio/video with Gemini API (better vision than Claude). Generate images (Imagen 4), videos (Veo 3). Use for vision analysis, transcription, OCR, design extraction, multimodal AI.

majiayu000/claude-skill-registry

Analyze images/audio/video with Gemini API (better vision than Claude). Generate images (Imagen 4), videos (Veo 3). Use for vision analysis, transcription, OCR, design extraction, multimodal AI.

majiayu000/claude-skill-registry

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

相关技能