---
title: "Get account details"
method: GET
path: "/v4/user/accounts/{server}/{accountId}"
tags: ["Accounts (v4)"]
---

# Get account details

`GET /v4/user/accounts/{server}/{accountId}`

## Request

- Base URL: `https://trading-api.oanda.com` (the document declares no server; this is the origin it was published from)
- URL: `https://trading-api.oanda.com/v4/user/accounts/{server}/{accountId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oanda/apis/up-gateway-v1/docs/v4/user/accounts/:server/:accountId/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns details for the specified account

## Path parameters

- `server` 'oanda' | 'oanda-demo' | 'otms' | 'v20' | 'v20-demo' | 'oj' | 'oj-demo' | 'opt' | 'ftmo-1', required
- `accountId` string, required

## Response `200`

Success response

- object
  - `data` object, required
    - `id` string, required
    - `balance` number, required
    - `bonus` number
    - `netAccountValue` number, required
    - `netAssetsValue` number, required
    - `realisedPL` number
    - `unrealisedPL` number, required
    - `disabled` boolean
    - `margin` object, required
      - `marginUsed` number
      - `marginLevel` number
      - `marginAvailable` number
      - `marginCall` 'NONE' | 'WARNING' | 'CLOSEOUT'
      - `marginCloseoutPercent` number
      - `marginRate` number
    - `spot` object
      - `freeEquity` number
      - `reservedAmount` number

## Other responses

- `400`: FAIL

---

[API](https://skmtc.dev/oanda/apis/up-gateway-v1.md) - [All operations](https://skmtc.dev/oanda/apis/up-gateway-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/oanda/apis/up-gateway-v1/revisions/395d645513bf?raw)
