agent-skills
Connects AI Assistants to the Trading 212 Trading API
Install & Use
Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:
Help me install this AI Skill: agent-skills. It is used for: Connects AI Assistants to the Trading 212 Trading API Full Skill content: https://321skill.com/skills/agent-skills-trading212-labs/raw/index.md Read that page and install it.
The prompt includes a link to the full Skill content. You can also view the full content.
This Skill solves the problem of AI assistants being unable to directly call the Trading 212 trading API for stock trading. In practical development, quantitative traders or developers often need to manually write API calling code, handle authentication, error mapping, and rate limiting, a process that is cumbersome and error-prone. This plugin packages the capabilities of the Trading 212 API into a tool-friendly format, enabling AI assistants to execute trading operations directly through natural language instructions.
Usage is simple: you just need to install this Skill via npm or the plugin marketplace, then configure your API Key, API Secret, and environment (Demo or Live). After that, you can use natural language instructions to have the AI assistant perform actions like querying holdings, placing orders, viewing historical trades, and searching for tradable instruments. For example, tell the AI "Check my account balance" or "Buy 100 shares of Apple at market price," and the AI will automatically call the corresponding API endpoint and return the results.
It's ideal for quantitative traders and individual investors who want AI assistance in executing stock trades, as well as backend developers using AI coding assistants like Claude Code, Cursor, or OpenClaw. It's particularly useful for users already familiar with the Trading 212 platform who wish to leverage AI to automate their trading workflows, significantly reducing the time spent on manual operations.
It is recommended to test all features in the Demo environment (paper trading) before live use to ensure you understand the API's response formats and limitations. Please note that the Trading 212 API is currently in Beta, and endpoints or behaviors may change, so keep an eye on official updates. Also, securely store your API keys to avoid exposure and use them only in trusted, secure environments.
Key Features
Compared to directly calling the official Trading 212 API, this Skill provides schematized input/output, automatic error mapping, and rate limit handling, freeing the AI assistant from dealing with low-level HTTP details. In contrast, similar tools like trading212-api-client only offer programming language SDKs and lack native support for the tool-calling format used by AI assistants.
Limitations
Relies on the Beta version of the Trading 212 API; supports only Invest and Stocks ISA accounts, not CFD trading. Requires an internet connection and is subject to API rate limits; the Demo environment has a daily call limit.
FAQ
How do I get Trading 212 API keys?
In the Trading 212 App, go to Settings > API to generate your API Key ID and API Secret. For detailed steps, please refer to the official help center.
Which AI platforms does this Skill support?
It supports mainstream AI coding assistants like Claude Code, OpenClaw, Cursor, and Codex CLI, and can also be used via the universal skills.sh installer.
Installation guide for AI assistants
If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:
Visit https://321skill.com/skills/agent-skills-trading212-labs/raw/index.md to read the original Skill definition (Markdown format) for agent-skills, and install it according to the instructions.
Raw Markdown URL for AI: /skills/agent-skills-trading212-labs/raw/index.md