Communitygithub.com

投資組合技能

跨預測市場和期貨交易所追蹤您的持倉和損益。

投資組合技能 是什麼?

這項技能允許 AI 代理(例如 Claude Code)跨多個平台(包括 Polymarket、Kalshi、Manifold 等預測市場,以及 Hyperliquid、Binance Futures、Bybit、MEXC 等期貨交易所)追蹤用戶的投資組合持倉和績效。用戶可以通過簡單的 /portfolio 命令查看整體持倉、損益、歷史記錄和風險指標。技能支援自動同步(例如每小時 cron 任務)和按平台篩選。此外,它還提供高級風險分析,如相關性矩陣、類別曝險和集中度風險(HHI 分數),以及對大型交易者(鯨魚)活動的跟蹤。輸出格式清晰,顯示總值、未實現/已實現損益、各平台餘額(可用/鎖定)及每個持倉的詳細資訊(入場價、槓桿、清算價等)。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/majiayu000/claude-skill-registry-data/tree/HEAD/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 金鑰 + Secret)
  • Bybit(透過 API 金鑰 + Secret)
  • MEXC(透過 API 金鑰 + Secret)

餘額追蹤

  • 每個平台的可用和鎖定餘額
  • Polymarket:鎖定的 USDC 由掛單買單計算
  • 期貨:已使用保證金 vs 可用保證金

投資組合歷史

  • 每小時 cron 同步時自動取得快照
  • 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 Perp [binance]
  多頭 10x:0.5000 @ $98,500.00
  +$250.00 (+5.1%) | 清算價 $89,100.00

Trump 2028 [polymarket]
  Yes: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-data

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry-data

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry-data

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry-data

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry-data

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-data

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-data

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-data

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-data

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-data

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

majiayu000/claude-skill-registry-data

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-data

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

majiayu000/claude-skill-registry-data

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-data

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-data

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-data

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

majiayu000/claude-skill-registry-data

Conduct domain and industry research. Use when the user says "lets create a research report on [domain or industry]

majiayu000/claude-skill-registry-data

Conduct market research on competition and customers. Use when the user says "create a market research report about [business idea]".

majiayu000/claude-skill-registry-data

Conduct technical research on technologies and architecture. Use when the user says "create a technical research report on [topic]".

majiayu000/claude-skill-registry-data

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".

相關技能