Skip to content

Authentication and order-placement guide for the Trading 212 API, covering demo and live environments.

CCM score
47 of 100
skills.sh installs
450
GitHub stars
148
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers account summary, positions, pending and historical orders, instrument lookup, trading hours, dividends, and CSV exports
  • Includes Demo (demo.trading212.com) and Live (live.trading212.com) base URLs, with API keys tied to one environment each
  • Enforces an explicit environment choice before any call and asks which Invest or Stocks ISA account to target when both are configured
  • Designed for agents that place Trading 212 orders on a user's behalf, with credentials supplied through environment variables

Install

$ npx -y skills add trading212-labs/agent-skills --skill trading212-api -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Trading 212 API

Note: The Trading 212 API is currently in beta and under active development. Some endpoints or behaviors may change.

Quick Reference

Environments

EnvironmentBase URLPurpose
Demohttps://demo.trading212.com/api/v0Paper trading - test without real funds
Livehttps://live.trading212.com/api/v0Real money trading

Order Quantity Convention

  • Positive quantity = BUY (e.g., 10 buys 10 shares)
  • Negative quantity = SELL (e.g., -10 sells 10 shares)

Account Types

Only Invest and Stocks ISA accounts are supported.

Instrument Identifiers

Trading 212 uses custom tickers as unique identifiers for instruments. Always search for the Trading 212 ticker before making instrument requests.


Authentication

HTTP Basic Auth with API Key (username) and API Secret (password).

Check Existing Setup First

Details

Repository
github.com/trading212-labs/agent-skills
Categories
Finance & Trading, AI Agents & LLM Apps
License
MIT
First seen
Jun 3, 2026

Questions

What does the Trading 212 API skill let an agent do?

The skill lets an agent connect to the Trading 212 API to check account balances, view positions and P&L, place market, limit, stop and stop-limit orders, and cancel orders. It also covers instrument lookup, trading hours, dividends, order history and CSV transaction exports.

How do I install the Trading 212 API skill?

Run npx -y skills add trading212-labs/agent-skills --skill trading212-api -y in your project. Once installed, the agent can call Trading 212 for account, portfolio and order tasks.

What do I need to use the Trading 212 API skill?

You need an API key and secret generated in the Trading 212 app under Settings and then API, for an Invest or Stocks ISA account. Keys are tied to either the live or demo environment, and the skill checks environment variables such as T212_API_KEY and T212_API_SECRET before making requests.

Can I test the Trading 212 API skill without risking real money?

Yes, the skill supports a demo environment for paper trading with no real funds. You must choose LIVE or DEMO before any API call, and a key made for one environment will not work in the other.

Where does the Trading 212 API skill stand in its category?

It is listed under Finance and Trading on Claude Marketplaces, alongside skills such as wind-mcp-skill and stripe-best-practices. Its focus is direct use of the Trading 212 brokerage API for placing orders and monitoring positions.

Similar to Trading212 Api

More Finance & Trading