Trading 212 Accounts API

Access fundamental information about your trading account. Retrieve details such as your account ID, currency, and current cash balance.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /api/v0/equity/account/summary Get account summary #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/trading212:trading212-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

trading212-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Welcome to the official API reference for the Trading 212 Public API!
  title: Trading 212 Public Accounts API
  version: v0
servers:
- url: https://demo.trading212.com
- url: https://live.trading212.com
tags:
- description: Access fundamental information about your trading account. Retrieve details such as your account ID, currency, and current cash balance.
  name: Accounts
paths:
  /api/v0/equity/account/summary:
    get:
      description: 'Provides a breakdown of your account''s cash and investment metrics,

        including available funds, invested capital, and total account value.


        **Rate limit:** 1 req / 5s'
      operationId: getAccountSummary
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountSummary'
          description: OK
        '401':
          description: Bad API key
        '403':
          description: Scope( account ) missing for API key
        '408':
          description: Timed-out
        '429':
          description: 'Limited: 1 / 5s'
      security:
      - authWithSecretKey: []
        legacyApiKeyHeader: []
      summary: Get account summary
      tags:
      - Accounts
components:
  schemas:
    Investments:
      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
    AccountSummary:
      properties:
        cash:
          $ref: '#/components/schemas/Cash'
        currency:
          description: Primary account currency in ISO 4217 format.
          type: string
        id:
          description: Primary trading account number. This is the same account ID you would see in the Trading 212 web or mobile application.
          format: int64
          type: integer
        investments:
          $ref: '#/components/schemas/Investments'
        totalValue:
          description: Investments value in your account's primary currency.
          type: number
      type: object
    Cash:
      properties:
        availableToTrade:
          description: Funds available for investing.
          type: number
        inPies:
          description: It’s the sum of the cash inside of all pies that is not yet invested.
          type: number
        reservedForOrders:
          description: The amount of cash reserved for pending orders. This cash is not available for placing new trades.
          type: number
      type: object
  securitySchemes:
    authWithSecretKey:
      description: Use your API Key as the username and your API Secret as the password
      scheme: basic
      type: http
    legacyApiKeyHeader:
      in: header
      name: Authorization
      type: apiKey