> ## 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.

# Get balance history series

> Returns a chart-ready balance trajectory for one asset or for the whole
account valued at current market prices. Requires the `ACCOUNT_READ` scope.




## OpenAPI

````yaml /openapi.yaml get /balances/history/series
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/series:
    get:
      tags:
        - Account
      summary: Get balance history series
      description: >
        Returns a chart-ready balance trajectory for one asset or for the whole

        account valued at current market prices. Requires the `ACCOUNT_READ`
        scope.
      operationId: getBalanceHistorySeries
      parameters:
        - name: asset
          in: query
          description: Chart this asset only instead of the total account value.
          schema:
            type: string
          example: USD
        - name: range
          in: query
          description: Time window for the series.
          schema:
            type: string
            enum:
              - 24h
              - 7d
              - 30d
              - 90d
              - all
            default: 30d
      responses:
        '200':
          description: Balance series returned successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BalanceSeries'
        default:
          $ref: '#/components/responses/RequestError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    BalanceSeries:
      type: object
      required:
        - mode
        - asset
        - unit
        - precision
        - partial
        - range
        - from
        - to
        - points
        - current
        - change
      properties:
        mode:
          type: string
          enum:
            - asset
            - total
        asset:
          oneOf:
            - type: string
            - type: 'null'
        unit:
          type: string
        precision:
          type: integer
        partial:
          type: boolean
        range:
          type: string
          enum:
            - 24h
            - 7d
            - 30d
            - 90d
            - all
        from:
          type: string
          format: date-time
        to:
          type: string
          format: date-time
        points:
          type: array
          items:
            $ref: '#/components/schemas/BalanceSeriesPoint'
        current:
          oneOf:
            - type: object
              required:
                - available
                - locked
                - total
              properties:
                available:
                  $ref: '#/components/schemas/DecimalString'
                locked:
                  $ref: '#/components/schemas/DecimalString'
                total:
                  $ref: '#/components/schemas/DecimalString'
            - type: 'null'
        change:
          $ref: '#/components/schemas/SignedDecimalString'
    BalanceSeriesPoint:
      type: object
      required:
        - at
        - available
        - locked
        - total
      properties:
        at:
          type: string
          format: date-time
        available:
          $ref: '#/components/schemas/DecimalString'
        locked:
          $ref: '#/components/schemas/DecimalString'
        total:
          $ref: '#/components/schemas/DecimalString'
    DecimalString:
      type: string
      pattern: ^\d+(\.\d+)?$
      description: A non-negative decimal encoded as a string.
      example: '125.50'
    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
    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.