---
openapi: 3.0.1
info:
  title: Trading API v3
  description: APIs related to trading operations
  version: v3
paths:
  /frontoffice/api/v3/accounts:
    get:
      tags:
        - AccountControllerV
      description: "Required operations: trading-ui"
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/BBP.TradingServer.TradingApi.Models.Accounts.ApiGetAccounts.ResponseAccount
components:
  schemas:
    BBP.TradingServer.TradingApi.Models.Accounts.ApiGetAccounts.ResponseAccount:
      type: object
      properties:
        accountId:
          type: string
        publicAccountId:
          type: integer
          description: Public account ID for display to the client UI
          example: 1234567
        accountName:
          type: string
        accountType:
          $ref: >-
            #/components/schemas/BBP.TradingServer.TradingApi.Models.Enums.ApiAccountType
        totalBalanceInRAT:
          type: string
        isCopyTradingAccount:
          type: boolean
        accountStatus:
          $ref: >-
            #/components/schemas/BBP.TradingServer.TradingApi.Models.Enums.ApiAccountStatus
          example: Active
      additionalProperties: false
    BBP.TradingServer.TradingApi.Models.Enums.ApiAccountType:
      enum:
        - Hedging
        - Netting
      type: string
    BBP.TradingServer.TradingApi.Models.Enums.ApiAccountStatus:
      enum:
        - Active
        - Halted
        - Frozen
        - Archived
      type: string
