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

# Generate EOFY Closing Statement PDF

> Generate a PDF End-of-Financial-Year closing price statement.

Data is pure market data (identical for every customer) so there is no
customer block in the PDF. Lives on the private router for rate-limiting
reasons, not data sensitivity.



## OpenAPI

````yaml /openapi.json get /api/private/eofy-closing-statement/pdf/
openapi: 3.0.3
info:
  title: Digital Surge API
  version: '2.0'
  description: >-
    Digital Surge is an Australian cryptocurrency exchange. This API provides
    programmatic access to your account: live AUD pricing for hundreds of
    assets, instant swaps, recurring buys, price triggers, portfolio balances,
    transaction history, and crypto withdrawals.


    **Authentication** — create an API key in the Digital Surge app under
    *Account Settings → API Keys* and send it with every request:
    `Authorization: Bearer <your-api-key>`. Read-only and read & write keys are
    available.


    **Guides and interactive documentation** — https://digitalsurge.com.au/docs


    **AI agents** — connect via the Digital Surge MCP server:
    https://mcp.digitalsurge.com.au/mcp
servers:
  - url: https://app.digitalsurge.com.au
    description: Production
security: []
tags:
  - name: Public
    description: Unauthenticated endpoints — market data, asset info, pricing
  - name: Private
    description: Authenticated endpoints — trading, portfolio, account management
paths:
  /api/private/eofy-closing-statement/pdf/:
    get:
      tags:
        - Private
      summary: Generate EOFY Closing Statement PDF
      description: |-
        Generate a PDF End-of-Financial-Year closing price statement.

        Data is pure market data (identical for every customer) so there is no
        customer block in the PDF. Lives on the private router for rate-limiting
        reasons, not data sensitivity.
      operationId: private_eofy_closing_statement_pdf_list
      parameters:
        - in: query
          name: year
          schema:
            type: integer
          description: End-of-FY calendar year, e.g. 2025 = FY 2024-2025
          required: true
      responses:
        '200':
          description: PDF binary (application/pdf)
        '400':
          description: Validation error
        '404':
          description: No EOFY data for that year
        '503':
          description: PDF generation service unavailable
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal API key, created in the Digital Surge app under Account
        Settings → API Keys. Send it with every request as `Authorization:
        Bearer <your-api-key>`.

````