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.
- 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.
- Invest accounts
- Stocks ISA accounts
Universal via skills.sh
npx skills add trading212-labs/agent-skills/plugin marketplace add https://github.com/trading212-labs/agent-skills.git
/plugin install trading212-apiclawdbot plugins install github:trading212-labs/agent-skills- Open Cursor Settings
- Navigate to
Rules, Skills, Subagents - Click
Add Ruleon Rules section -> Add from Github - Submit GitHub url:
https://github.com/trading212-labs/agent-skills.git
$skill-installer https://github.com/trading212-labs/agent-skills/tree/master/plugins/trading212-api/skills/trading212-apiGenerate 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 tradingBoth 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 tradingAPI keys are environment-specific (LIVE vs DEMO). For details, see Trading 212 API Documentation.
- Handle with extreme care — API keys grant access to your Trading 212 account. Set and use them only when you understand the risks. Never paste keys into untrusted chat, shared machines, or public places.
- Use only in a secure environment — Use credentials only on a machine and in an environment you control and trust (e.g. your own device, trusted IDE/plugin). Avoid shared or public computers, unverified third-party tools, or environments where others can see your screen or logs.
- No responsibility — The maintainers and contributors of this plugin are not responsible for any loss, misuse, or compromise of your API keys or account. You use this plugin and your credentials at your own risk.
- If your keys are leaked — If you suspect your API key or secret has been exposed (e.g. committed to a repo, shared by mistake, or seen by someone else), revoke it immediately in the Trading 212 app: Settings > API, then delete/revoke the affected key and generate a new one. Do not continue using a compromised key.
This plugin is an experimental technical integration tool only. AI tools can misinterpret instructions and execute unintended actions, including placing incorrect orders. Never share your API key with tools or services you don't trust. You are solely responsible for any actions carried out using your API key. This plugin does not provide financial advice. You are required to comply with our API Terms at all times. As required by MiFID II, you are prohibited from using this tool for algorithmic trading.