> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paperdrill.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List balance history

> Returns recorded balance movements newest first. Use `asset` and `reason`
to narrow the ledger. Requires the `ACCOUNT_READ` scope.




## OpenAPI

````yaml /openapi.yaml get /balances/history
openapi: 3.1.0
info:
  title: PaperDrill REST API
  version: 1.0.0
  description: >
    Trade PaperDrill credit markets and read live market data.


    Prices, quantities, balances, and other decimal values are encoded as
    strings so clients do not lose precision.
servers:
  - url: https://api.paperdrill.dev/v1
    description: Production
security: []
tags:
  - name: Market data
    description: Public markets, tickers, candles, trades, and order-book snapshots.
  - name: Trading
    description: Create, inspect, and cancel orders with a scoped API key.
  - name: Account
    description: Read balances, portfolio performance, and private trade history.
  - name: Leaderboard
    description: Live public standings and your personal ranking.
  - name: Rewards
    description: >-
      Starter and daily simulated-fund credit status and claims for signed-in
      users.
paths:
  /balances/history:
    get:
      tags:
        - Account
      summary: List balance history
      description: >
        Returns recorded balance movements newest first. Use `asset` and
        `reason`

        to narrow the ledger. Requires the `ACCOUNT_READ` scope.
      operationId: listBalanceHistory
      parameters:
        - name: asset
          in: query
          description: Return movements for this asset only.
          schema:
            type: string
          example: USD
        - name: reason
          in: query
          description: Return movements with this reason only.
          schema:
            $ref: '#/components/schemas/BalanceChangeReason'
        - name: page
          in: query
          description: Page number, starting at 1.
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: limit
          in: query
          description: Number of entries per page.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
      responses:
        '200':
          description: Balance history returned successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BalanceHistoryPage'
        default:
          $ref: '#/components/responses/RequestError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    BalanceChangeReason:
      type: string
      enum:
        - initialized
        - deposited
        - credited
        - order.locked
        - order.released
        - fill.settled
    BalanceHistoryPage:
      type: object
      required:
        - entries
        - pagination
        - assets
        - filtered
      properties:
        entries:
          type: array
          items:
            $ref: '#/components/schemas/BalanceHistoryEntry'
        pagination:
          type: object
          required:
            - page
            - limit
            - total
            - totalPages
            - hasNextPage
            - hasPreviousPage
          properties:
            page:
              type: integer
            limit:
              type: integer
            total:
              type: integer
            totalPages:
              type: integer
            hasNextPage:
              type: boolean
            hasPreviousPage:
              type: boolean
        assets:
          type: array
          items:
            $ref: '#/components/schemas/BalanceHistoryAsset'
        filtered:
          type: object
          required:
            - entryCount
            - netChange
          properties:
            entryCount:
              type: integer
            netChange:
              oneOf:
                - $ref: '#/components/schemas/SignedDecimalString'
                - type: 'null'
    BalanceHistoryEntry:
      type: object
      required:
        - id
        - asset
        - available
        - locked
        - total
        - deltaAvailable
        - deltaLocked
        - deltaTotal
        - reason
        - occurredAt
      properties:
        id:
          type: string
        asset:
          type: string
        available:
          $ref: '#/components/schemas/DecimalString'
        locked:
          $ref: '#/components/schemas/DecimalString'
        total:
          $ref: '#/components/schemas/DecimalString'
        deltaAvailable:
          $ref: '#/components/schemas/SignedDecimalString'
        deltaLocked:
          $ref: '#/components/schemas/SignedDecimalString'
        deltaTotal:
          $ref: '#/components/schemas/SignedDecimalString'
        reason:
          $ref: '#/components/schemas/BalanceChangeReason'
        referenceId:
          oneOf:
            - type: string
            - type: 'null'
        symbol:
          oneOf:
            - type: string
            - type: 'null'
        occurredAt:
          type: string
          format: date-time
    BalanceHistoryAsset:
      type: object
      required:
        - asset
        - available
        - locked
        - total
        - netChange
        - entryCount
        - lastChangedAt
      properties:
        asset:
          type: string
        available:
          $ref: '#/components/schemas/DecimalString'
        locked:
          $ref: '#/components/schemas/DecimalString'
        total:
          $ref: '#/components/schemas/DecimalString'
        netChange:
          $ref: '#/components/schemas/SignedDecimalString'
        entryCount:
          type: integer
        lastChangedAt:
          oneOf:
            - type: string
              format: date-time
            - type: 'null'
    SignedDecimalString:
      type: string
      pattern: ^[+-]?\d+(\.\d+)?$
      description: A signed decimal encoded as a string.
      example: '+3.40'
    ApiError:
      type: object
      required:
        - error
        - requestId
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: array
              items:
                $ref: '#/components/schemas/ApiErrorDetail'
        requestId:
          type: string
          format: uuid
      example:
        error:
          code: VALIDATION_ERROR
          message: Request validation failed
          details:
            - field: qty
              message: invalid decimal format
        requestId: f4c0baf4-b8d2-4c9a-a17b-c8656c4a7b0e
    DecimalString:
      type: string
      pattern: ^\d+(\.\d+)?$
      description: A non-negative decimal encoded as a string.
      example: '125.50'
    ApiErrorDetail:
      type: object
      required:
        - message
      properties:
        field:
          type: string
        message:
          type: string
  responses:
    RequestError:
      description: The request failed. See Errors and rate limits for recovery guidance.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: A scoped API key created in the PaperDrill dashboard.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.