---
updatedAt: 2026-03-26T12:27:31.000Z
agentTools:
  projectIndex: https://public-api.tradelocker.com/llms.txt
---

# List all accounts

List all of the users accounts, find the accNum for making requests to the /trade api

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "Trading API",
    "version": "2.11.0",
    "title": "Trading API",
    "contact": {}
  },
  "tags": [
    {
      "name": "Auth",
      "description": "JWT access and refresh tokens, list of all accounts."
    }
  ],
  "paths": {
    "/auth/jwt/all-accounts": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "List all accounts",
        "description": "List all of the users accounts, find the accNum for making requests to the /trade api",
        "operationId": "getAllAccounts",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAllAccountsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://demo.tradelocker.com/backend-api"
    },
    {
      "url": "https://live.tradelocker.com/backend-api"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "GetAllAccountsResponse": {
        "type": "object",
        "properties": {
          "accounts": {
            "type": "array",
            "items": {
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Account ID",
                  "example": "7080"
                },
                "name": {
                  "type": "string",
                  "description": "Account Name",
                  "example": "BRAND1#DEVCLL9g4isTOEiKjfNdJw13#1#1"
                },
                "currency": {
                  "type": "string",
                  "description": "Account currency",
                  "example": "USD"
                },
                "status": {
                  "type": "string",
                  "description": "Account status",
                  "example": "ACTIVE"
                },
                "accNum": {
                  "type": "string",
                  "description": "Account number - used to select the account on /trade API",
                  "example": "1"
                },
                "aaccountBalance": {
                  "type": "number",
                  "description": "Account balance",
                  "example": "2024.75"
                }
              }
            }
          }
        },
        "title": "GetAllAccountsResponse"
      }
    }
  }
}
```