Install
openclaw skills install trading212-v2Analyzes 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.
openclaw skills install trading212-v2Connects 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.
Install dependencies once from the skill's script directory:
pip install -r {baseDir}/requirements.txt
python3 {baseDir}/scripts/trading212_skill.py --mode summary
Returns structured JSON with:
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.
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:
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.
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 sharesorder_type: "market" (default) or "limit"limit_price: required when order_type is "limit"Pre-trade validation is performed automatically:
CRITICAL SAFETY RULES:
TRADING212_DEMO=true (the default), remind the user this is a paper-trade.TRADING212_DEMO=false, warn the user clearly that this is a REAL order with real money.python3 {baseDir}/scripts/trading212_skill.py --mode dividends
Returns structured JSON with:
Use this when the user asks: "How much dividend did I receive?", "What are my dividends?", "When was my last dividend?"
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:
Optional parameters (JSON):
ticker: Filter by specific tickerdays: Limit to orders from the last N daysUse this when the user asks: "Show my order history", "How much profit did I realize?", "What did I trade last month?"
python3 {baseDir}/scripts/trading212_skill.py --mode watchlist
Reads config/watchlist.yaml and checks price alerts for each ticker. Returns:
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?"
python3 {baseDir}/scripts/trading212_skill.py --mode allocation
python3 {baseDir}/scripts/trading212_skill.py --mode allocation --rebalance
Returns structured JSON with:
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?"
All modes return structured JSON to stdout. Parse it and present a human-readable English summary to the user.
For full output schemas and API details, see reference.md.