Portfolio Management,Stock Analysis,Stock Apps & Trading Software· 6 min read

Trading 212 Portfolio Tracker, How to Track Your Trading 212 Portfolio, Best Portfolio Trackers for Trading 212, Trading 212 Portfolio Analysis

Learn how to use the Trading 212 portfolio tracker options available to investors, including the built-in CSV export and the Trading 212 API. Discover how to get your API key, connect your data to spreadsheets, and unlock deeper portfolio analysis.

Illustration of a professional investment dashboard showing a Trading 212 portfolio connected to API data feeds and analytics charts
On this page (7)

If you invest through Trading 212, you already know the platform makes it easy to buy stocks, ETFs, and build automated pies. What it does not do out of the box is give you deep, customisable analysis of your portfolio over time. That is where the Trading 212 portfolio tracker question becomes genuinely important — and where the platform's own data export tools and public API open up a surprisingly powerful set of options. This guide walks through every method available to get your Trading 212 data working harder for you, from a simple CSV export to building automated connections via the Trading 212 API.

Why Trading 212's Built-In Tools Have Limits

Trading 212 is a well-designed brokerage app, but its native analytics are intentionally simple. You can see your portfolio value, individual position returns, and a basic transaction history — but you cannot easily compare your performance against a benchmark, visualise dividend income over time, run sector allocation analysis, or calculate risk-adjusted returns. For casual investors, that is fine. For anyone who wants to understand why their portfolio is performing the way it is, those gaps matter.

The good news is that Trading 212 has built two official routes for getting your data out: a manual CSV export and a public REST API. Both are free to use. Understanding the difference between them — and when to use each — is the starting point for any serious Trading 212 portfolio tracking setup.

How to Export Trading 212 Data as a CSV

The simplest way to extract your data is through the built-in history export. This requires no technical knowledge and takes under a minute.

  • Open the Trading 212 app and navigate to the Menu.
  • Select History from the menu options.
  • Tap the export icon in the top-right corner.
  • Choose your preferred timeframe and the data types you want — orders, dividends, or both.
  • Download the generated .csv file to your device or computer.

The resulting file can be opened directly in Excel, Google Sheets, or any spreadsheet application. It includes transaction-level data: instrument names, quantities, prices, dates, fees, and dividend payments. This is the foundation of any Trading 212 spreadsheet setup — you can use it to build your own profit and loss tracker, dividend income log, or portfolio allocation model.

One limitation worth noting: the CSV export is a snapshot in time. Every time you want updated data, you need to repeat the export manually. For investors who check their portfolio monthly, that is perfectly manageable. For those who want live or near-live data, the API is the better route.

Understanding the Trading 212 Public API

The Trading 212 API is a public REST API that allows developers — and technically-minded investors — to programmatically access their account data. It is currently in beta but is actively maintained and documented at docs.trading212.com.

The API is free to use and covers a broad range of data points, including:

  • Portfolio positions — all current holdings with quantities and values
  • Account cash and free funds available
  • Order history — historical buy and sell transactions
  • Dividend history — all paid-out dividends on your account
  • Instrument metadata — details on the instruments available on the platform
  • Pie data — information about your automated investment pies

Importantly, the Trading 212 Invest API currently supports Invest and ISA accounts only. It is not available for CFD accounts or SIPP accounts at the time of writing. You can also place Market Orders, Limit Orders, Stop Orders, and Stop Limit Orders via the API on live accounts — making it useful not just for reading data but for automated execution strategies.

How to Get Your Trading 212 API Key

Getting a Trading 212 API key is straightforward, but there are a few important steps to follow carefully.

  • Open the Trading 212 app and go to Settings.
  • Select API (Beta) from the settings menu.
  • Accept the mandatory risk warning — this is required before you can generate any keys.
  • Tap Generate API Key and review the available permission scopes (account data, history, orders, portfolio).
  • Give your key a name and choose your IP access restrictions. Restricting access to trusted IP addresses is the recommended option for security.
  • Submit the form. You will receive two credentials: an API Key and an API Secret Key.

The API Secret Key is shown only once. Store it securely — if you lose it, you will need to generate a new key pair entirely. Treat it with the same care as your account password. You can revoke any API key at any time through the same settings menu, and deletion is immediate and permanent.

A note on permissions: when generating your key, you choose what level of access to grant. If you only need to read portfolio data, select read-only permissions. Only grant order-placement permissions if you specifically intend to use the API for automated trading, and only with applications you fully trust.

Using the Trading 212 API: Practical Examples

Once you have your API key, you can start making requests. The Trading 212 REST API uses standard HTTP requests with your API key passed as an authorisation header. Here is a simple example of how a Python request to retrieve your current portfolio positions might look:

  • Base URL: https://live.trading212.com/api/v0
  • Endpoint for positions: /equity/portfolio
  • Authentication: pass your API key in the Authorization header

In Python, using the popular requests library, a basic call to fetch your positions requires only a few lines of code. The response returns a JSON object with each position's instrument ticker, quantity, average price, current price, and unrealised profit or loss. This data can then be fed into a custom dashboard, a Google Sheets integration via Apps Script, or an Excel workbook using Power Query.

For Trading 212 API Google Sheets users, the most common approach is to use Google Apps Script to make authenticated HTTP requests on a schedule — for example, every morning — and write the results into a spreadsheet automatically. This effectively creates a live, self-updating Trading 212 portfolio spreadsheet without any manual exports.

There is also a well-maintained open-source community around the Trading 212 API. Libraries such as trading212-api on GitHub (by bennycode) wrap the REST endpoints in a more developer-friendly interface, reducing the amount of boilerplate code needed to get started.

Trading 212 API Rate Limits and Common Issues

The Trading 212 API does enforce rate limits, which is standard practice for any public API. Exceeding these limits will result in requests being temporarily rejected. The exact limits are documented in the official API documentation, but as a general rule, avoid making rapid repeated calls in quick succession — build in appropriate delays between requests, especially when pulling large amounts of historical data.

If your Trading 212 API is not working, the most common causes are:

  • Using the wrong base URL (live vs. practice/demo accounts use different endpoints)
  • Passing the API key incorrectly in the request header
  • Attempting to access endpoints not covered by your key's permission scope
  • Trying to use the API with a CFD or SIPP account, which are not currently supported
  • IP restriction settings blocking requests from your current network

It is also worth noting that the API is still in beta, which means occasional changes to endpoints or behaviour are possible. Checking the official documentation at docs.trading212.com before building any long-term integration is always advisable.

Taking Your Trading 212 Analysis Further

Whether you use the CSV export route or the full API, the data you extract from Trading 212 is only as useful as the analysis layer you apply to it. Raw transaction data tells you what happened; good analytics tell you what it means. Metrics worth tracking include total return versus a benchmark index, dividend yield on cost, sector concentration, and drawdown history.

For investors holding diversified positions — perhaps a mix of individual equities like Apple (AAPL), Microsoft (MSFT), or Unilever (ULVR) alongside broad ETFs — understanding how each component contributes to overall portfolio risk and return is genuinely valuable. That kind of multi-dimensional analysis goes well beyond what any brokerage app provides natively, which is precisely why connecting your Trading 212 data to a dedicated analytics platform makes sense for serious investors.

The combination of Trading 212's accessible API and a purpose-built stock analysis platform creates a workflow where your brokerage handles execution and your analytics layer handles insight — a clean separation that keeps both tools doing what they do best.

You can Compare AAPL, MSFT, ULVR side by side on Openbook, or find stocks with the screener.

Stay ahead of the market

Get new analysis in your inbox

A concise note when we publish fresh stock research, dividend ideas, and screening insights.

No spam. Unsubscribe anytime.