Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计提醒

trading212-v2交易 212 v2

Agent Skill

trading212-v2 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

22,872

周安装

953

GitHub Stars

公开资料未说明

下载量

7,624
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:trading212-v2(交易 212 v2)
来源仓库:https://github.com/nandichi/trading212-v2
安装命令:
openclaw skills install trading212-v2
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install trading212-v2

简介

分析Trading212投资组合生成损益表与交易建议摘要。

  • 适合管理海外券商账户或需要自动化复盘交易记录的用户。
  • 支持自定义规则过滤赢家/输家并推送调仓提示。
  • 需导入账户凭证并开启只读权限避免误操作。
  • 建议定期同步持仓数据确保分析准确性。trading212-v2 属于效率类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
trading212
description
Analyzes Trading212 portfolio, generates daily summaries with P&L and top gainers/losers, makes trade proposals based on configurable rules, and can place orders. Also supports dividend overview, order history, watchlist with price alerts, and portfolio allocation analysis with rebalancing proposals. Use when the user asks about portfolio, daily performance, trade actions, or requests a portfolio overview.
metadata
{"openclaw":{"requires":{"bins":["python3"],"env":["TRADING212_API_KEY","TRADING212_API_SECRET"]},"primaryEnv":"TRADING212_API_KEY"}}

Trading212 Skill

Connects to the Trading212 API to provide portfolio analysis, trade proposals, and order execution.

Important: By default all operations run against the demo (paper-trading) environment. Set TRADING212_DEMO=false only when you are absolutely sure the user wants to trade with real money.

Prerequisites

Install dependencies once from the skill's script directory:

pip install -r {baseDir}/requirements.txt

Available Modes

1. summary -- Daily portfolio overview

python3 {baseDir}/scripts/trading212_skill.py --mode summary

Returns structured JSON with:

  • Total portfolio value, cash, daily change (EUR + %)
  • Per-position details (quantity, avg price, current price, unrealised P&L)
  • Top gainers and top losers
  • Notable events (orders filled today, dividends received)
  • Multi-period performance (1 week, 1 month, 3 months, 1 year)

Use this when the user asks: "How did my portfolio do today?", "Give me a summary", "What happened in my portfolio?"

Present the JSON output as a readable English summary. Highlight the daily change prominently, list top gainers and losers, and mention notable events.

2. propose -- Trade proposals

python3 {baseDir}/scripts/trading212_skill.py --mode propose
python3 {baseDir}/scripts/trading212_skill.py --mode propose --risk low
python3 {baseDir}/scripts/trading212_skill.py --mode propose --risk high

Returns a list of suggested actions (buy, sell, reduce, hold) with quantities and reasons. Rules are configured in config/rules.yaml.

Active rules:

  • Reduce on drop: Propose reducing positions that dropped significantly today with large weight
  • Take profit: Propose selling small positions with high unrealised gain
  • DCA buy: Propose buying tickers on the DCA list when enough cash is available
  • Stop-loss: Propose selling when price drops below stop-loss threshold vs average purchase price
  • Max exposure: Propose reducing when a single position exceeds maximum portfolio weight
  • Cost averaging: Propose buying more when price is significantly below average purchase price
  • Cash reserve: Warn when cash falls below minimum percentage of portfolio

Use this when the user asks: "What should I do?", "Any trade suggestions?", "Should I buy or sell anything?"

Present proposals clearly. Always ask the user for confirmation before executing any proposed trade. Never execute trades automatically.

3. execute_trade -- Place an order

python3 {baseDir}/scripts/trading212_skill.py --mode execute_trade --params '{"symbol":"AAPL_US_EQ","side":"buy","quantity":5,"order_type":"market"}'

Parameters (JSON):

  • symbol (required): Trading212 ticker, e.g. "AAPL_US_EQ"
  • side (required): "buy" or "sell"
  • quantity (required): positive number of shares
  • order_type: "market" (default) or "limit"
  • limit_price: required when order_type is "limit"

Pre-trade validation is performed automatically:

  • Buy orders: checks if enough cash is available
  • Sell orders: checks if enough shares are held

CRITICAL SAFETY RULES:

  1. NEVER execute a trade without explicit user confirmation.
  2. Always show the user exactly what will be executed (symbol, side, quantity, order type) and ask "Shall I place this order?" before running.
  3. If TRADING212_DEMO=true (the default), remind the user this is a paper-trade.
  4. If TRADING212_DEMO=false, warn the user clearly that this is a REAL order with real money.

4. dividends -- Dividend overview

python3 {baseDir}/scripts/trading212_skill.py --mode dividends

Returns structured JSON with:

  • Total dividends received (all time and last 12 months)
  • Per-ticker breakdown with totals, last payment date, and estimated annual yield
  • Dividend calendar (most recent payment per ticker)

Use this when the user asks: "How much dividend did I receive?", "What are my dividends?", "When was my last dividend?"

5. history -- Order history

python3 {baseDir}/scripts/trading212_skill.py --mode history
python3 {baseDir}/scripts/trading212_skill.py --mode history --params '{"ticker":"AAPL_US_EQ","days":30}'

Returns structured JSON with:

  • Total number of historical orders
  • Realized P&L per ticker and overall
  • Full order list with dates, prices, and quantities

Optional parameters (JSON):

  • ticker: Filter by specific ticker
  • days: Limit to orders from the last N days

Use this when the user asks: "Show my order history", "How much profit did I realize?", "What did I trade last month?"

6. watchlist -- Price monitoring

python3 {baseDir}/scripts/trading212_skill.py --mode watchlist

Reads config/watchlist.yaml and checks price alerts for each ticker. Returns:

  • List of watchlist items with current prices (if held)
  • Triggered alerts (price above or below configured thresholds)

Configure the watchlist in config/watchlist.yaml:

watchlist:
  - ticker: "NVDA_US_EQ"
    alert_below: 100.0
    alert_above: 150.0

Use this when the user asks: "Check my watchlist", "Any price alerts?", "What are my watched stocks doing?"

7. allocation -- Portfolio allocation analysis

python3 {baseDir}/scripts/trading212_skill.py --mode allocation
python3 {baseDir}/scripts/trading212_skill.py --mode allocation --rebalance

Returns structured JSON with:

  • Current weight per position vs target allocation
  • Deviation from target per position
  • Missing target tickers (in target but not held)
  • Cash allocation vs target

With --rebalance flag, also generates buy/sell proposals to move toward target allocation.

Configure target allocation in config/allocation.yaml:

target_allocation:
  "VWCE.UK": 40.0
  "IWDA.UK": 30.0
  _cash: 5.0

Use this when the user asks: "How is my portfolio allocated?", "Am I balanced?", "What should I rebalance?"

Output Format

All modes return structured JSON to stdout. Parse it and present a human-readable English summary to the user.

Additional Resources

For full output schemas and API details, see reference.md.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

96.64%
按下载量换算7,368

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills