Broker API HubMenu

Trading 212 API GET /api/v0/equity/account/summary

GET/api/v0/equity/account/summaryversion v0Accounts

Cash and investment figures for the account: funds free to trade, cash reserved for pending orders, the value and cost of holdings, and the total.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

Independent and unofficialdocs.trading212.comchecked

Read on 12 Oct 2026 in Trading 212's own API reference at docs.trading212.com/api and the OpenAPI description that page offers for download (docs.trading212.com/_bundle/api.json). The reference calls the API a beta and says it works only for Invest and Stocks ISA accounts. Documented rate limit: 1 request every 5 seconds.

Parameters

No parameters recorded beyond authentication.

Authentication headers

NameTypeDescription
AuthorizationrequiredstringSend Basic followed by the Base64 encoding of your API key, a colon and your API secret. Placeholder only: never paste real credentials into this site.

Request

Written from the method, path and parameters recorded on this page, against the demo host. Not executed against a live or demo account. Credentials are read from environment variables on your own machine and are never entered on this site. The request builder writes these same snippets, from the same record.

Python
# Set T212_API_KEY, T212_API_SECRET as environment variables first. Never paste real values into code.
import base64
import os
import requests

BASE_URL = "https://demo.trading212.com"  # the demo host
headers = {
    "Authorization": "Basic " + base64.b64encode((os.environ["T212_API_KEY"] + ":" + os.environ["T212_API_SECRET"]).encode()).decode(),
}
resp = requests.get(BASE_URL + "/api/v0/equity/account/summary", headers=headers, timeout=10)
resp.raise_for_status()
print(resp.json())
JavaScript
// Set T212_API_KEY, T212_API_SECRET as environment variables first. Never paste real values into code.
// Run as a module, for example a .mjs file, on a Node version that has fetch built in.
const BASE_URL = "https://demo.trading212.com"; // the demo host
const res = await fetch(BASE_URL + "/api/v0/equity/account/summary", {
  method: "GET",
  headers: {
    "Authorization": "Basic " + Buffer.from(process.env.T212_API_KEY + ":" + process.env.T212_API_SECRET).toString("base64"),
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());
curl
# Set T212_API_KEY, T212_API_SECRET as environment variables first. Never paste real values into code.
curl -X GET "https://demo.trading212.com/api/v0/equity/account/summary" \
  -u "$T212_API_KEY:$T212_API_SECRET"

Response

A mock response. The values are invented, so check field names against the official reference.

{
  "_mock": true,
  "id": 1000001,
  "currency": "GBP",
  "totalValue": 10250.5,
  "cash": {
    "availableToTrade": 2500,
    "reservedForOrders": 100,
    "inPies": 0
  },
  "investments": {
    "currentValue": 7650.5,
    "totalCost": 7400,
    "unrealizedProfitLoss": 250.5,
    "realizedProfitLoss": 120
  }
}

Limits that apply at Trading 212

LimitValueScopeSource
Headline limit1 req/5s, account summary (example)accountdocs.trading212.comchecked

Trading 212 API errors you may meet

All Trading 212 API error codes, including 2 more not listed here.