Trading 212 · Schema

Investments

Trading 212 Investments schema

InvestingFinanceTradingStocksPortfolioCommission-FreeISA

Properties

Name Type Description
currentValue number Current value of all the investments.
realizedProfitLoss number The all-time realised profit loss from all of the trades executed.
totalCost number The cost basis of your current investments. The total amount of funds you've invested in the shares you currently own.
unrealizedProfitLoss number The potential profit/loss of your current investments, showing how much you could gain or lose if you were to sell them now.
View JSON Schema on GitHub

JSON Schema

Investments.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/trading212/refs/heads/main/json-schema/Investments.json",
  "title": "Investments",
  "description": "Trading 212 Investments schema",
  "properties": {
    "currentValue": {
      "description": "Current value of all the investments.",
      "type": "number"
    },
    "realizedProfitLoss": {
      "description": "The all-time realised profit loss from all of the trades executed.",
      "type": "number"
    },
    "totalCost": {
      "description": "The cost basis of your current investments. The total amount of funds you've invested in the shares you currently own.",
      "type": "number"
    },
    "unrealizedProfitLoss": {
      "description": "The potential profit/loss of your current investments, showing how much you could gain or lose if you were to sell them now.",
      "type": "number"
    }
  },
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/Investments"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.