Trading 212 API Agent Skills

An AgentSkills plugin that wraps the Trading 212 API and exposes its capabilities in a tool-friendly format for AI assistants (e.g. OpenClaw, Claude Code, and others). The plugin provides skills that teach AI agents how to work with the API: retrieving portfolio and transaction history, placing and managing orders, querying instruments, and related operations—with consistent, schema-based inputs and outputs, authentication and error mapping, and rate-limit handling.
Features
- Portfolio Management - View account summary, cash balance, and investment metrics
- Order Placement - Place market, limit, stop, and stop-limit orders
- Position Monitoring - Track open positions with P&L calculations
- Instrument Lookup - Search and browse tradable instruments
- Historical Data - Access order history, dividends, transactions, and export CSV reports
- Exchange Metadata - View trading hours and exchange schedules
Supports both Demo (paper trading) and Live (real money) Trading 212 environments. The Trading 212 API is in beta and under active development; endpoints or behaviour may change.
Supported Account Types
- Invest accounts
- Stocks ISA accounts
Installation
npx skills add trading212-labs/agent-skills
Claude Code
/plugin marketplace add https://github.com/trading212-labs/agent-skills.git
/plugin install trading212-api
OpenClaw / Moltbot / Clawdbot
clawdbot plugins install github:trading212-labs/agent-skills
Cursor
- Open Cursor Settings
- Navigate to
Rules, Skills, Subagents
- Click
Add Rule on Rules section -> Add from Github
- Submit GitHub url:
https://github.com/trading212-labs/agent-skills.git
OpenAI Codex CLI
$skill-installer https://github.com/trading212-labs/agent-skills/tree/master/plugins/trading212-api/skills/trading212-api
Configuration
Generate API credentials in the Trading 212 app under Settings > API (API Key ID and API Secret). See How to get your Trading 212 API key for step-by-step instructions. Store them securely and use only in a trusted, secure environment. See Credentials and security below.
Single account (Invest or Stocks ISA):
# Invest or Stocks ISA
export T212_API_KEY="your-api-key"
export T212_API_SECRET="your-api-secret"
#Environment
export T212_ENV="live" # optional; default is "live"; use "demo" for paper trading
Both accounts (Invest and Stocks ISA): set a key/secret pair per account.
# Invest
export T212_API_KEY_INVEST="your-invest-api-key"
export T212_API_SECRET_INVEST="your-invest-api-secret"
# Stocks ISA
export T212_API_KEY_STOCKS_ISA="your-stocks-isa-api-key"
export T212_API_SECRET_STOCKS_ISA="your-stocks-isa-api-secret"
#Environment
export T212_ENV="live" # optional; default is "live"; use "demo" for paper trading
API keys are environment-specific (LIVE vs DEMO). For details, see Trading 212 API Documentation.
Credentials and security