Skip to content

api-evangelist/trading212

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trading 212

Trading 212 is a commission-free investing platform with a REST API for accessing portfolio data, managing orders, viewing positions, retrieving instruments, and accessing account information.

API

The Trading 212 Public API (currently in beta) is available to users with a General Invest Account or Stocks and Shares ISA Account. It provides programmatic access to:

  • Account Data — account summary, cash availability, and investment metrics
  • Orders — place and cancel market, limit, stop, and stop-limit equity orders
  • Positions — retrieve all open positions with P&L details
  • Instruments — browse tradable instruments and exchange working schedules
  • Pies — create and manage diversified Pie portfolios
  • History — access historical orders, dividends, transactions, and CSV exports

Environments

Environment Base URL
Live (real money) https://live.trading212.com/api/v0
Paper trading (demo) https://demo.trading212.com/api/v0

Authentication

HTTP Basic Authentication using an API Key and API Secret generated in the Trading 212 app under Settings > API (Beta). The Authorization header is constructed by Base64-encoding API_KEY:API_SECRET and prepending Basic .

Rate Limits

Rate limits are applied per account and vary by endpoint. The system uses a burst-allowance model. Every response includes x-ratelimit-* headers. See rate-limits/rate-limits.yml for a full breakdown.

Resources

Profile

About

Trading 212 APIs.json profile

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors