trading212-api

Authenticate with Trading 212 and place orders via API.

Updated Nov 25, 2025
One-click install
npx skills add https://github.com/Cambixx/bot-trading --skill trading212-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trading212-api
Source: https://github.com/Cambixx/bot-trading/tree/main/.agents/skills/trading212-api
Command: npx skills add https://github.com/Cambixx/bot-trading --skill trading212-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a programmatic interface to Trading 212, enabling authentication, order placement, and account queries without manual UI steps.

Core Features & Use Cases

  • Authentication & Environment Management: Manage API keys and select DEMO or LIVE environments.
  • Trading Operations: Place Market, Limit, Stop, and Stop-Limit orders; use positive quantities for buy and negative for sell.
  • Account & Instruments: Retrieve account summary, view positions, and lookup instrument tickers.
  • Instrument Lookup: Resolve common names to Trading 212 tickers before actions.
  • Data & History: Retrieve order history and dividends where available.

Quick Start

  • Set environment and credentials (e.g., DEMO or LIVE) via environment variables.
  • Fetch account summary with a sample API call.
  • Place a sample market order with a specified ticker and quantity.
  • Look up a ticker using the lookup endpoint.

Frequently Asked Questions about trading212-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Trading 212 orders programmatically?

Automate Trading 212 orders by using API requests to place market, limit, stop, and stop-limit trades. You specify the instrument ticker and use positive quantities for buy orders or negative quantities for sell orders.

Can I connect to both DEMO and LIVE Trading 212 environments?

You can connect to both DEMO and LIVE Trading 212 environments. Configure your environment selection and manage your API keys via environment variables to ensure safe and repeatable interactions.

How do I look up Trading 212 instrument tickers before placing trades?

Look up Trading 212 instrument tickers by querying the lookup endpoint to resolve common names before actions. This ensures the correct ticker is used when placing market, limit, or stop orders.

What account data can I retrieve from the Trading 212 API?

Retrieve account summaries, view current positions, and check order history from the Trading 212 API. You can also retrieve dividends where available to track portfolio performance.

Do I need API keys to query my Trading 212 account summary?

You need API keys to query your Trading 212 account summary. Proper credential handling and request formatting are required to authenticate and safely retrieve account data.

What is the best way to format curl requests for Trading 212 trades?

Format curl requests for Trading 212 trades by applying correct authentication headers and specifying order parameters like ticker and quantity. This enables safe, repeatable programmatic interactions.