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

# Get an account's order history

> Every order the engine recorded for one account — filled, working, cancelled, rejected or expired — newest first, across all trading days. Each row carries the engine's free-text `reason` and the derived `trigger` / `triggerLabel` (see the fills endpoint), plus realized P&L, fees, bracket links and the account balance after the fill.

Use `GET /organization/snapshots/fills` for a whole-organization, one-trading-day view; use this endpoint for one account's history.

```bash
curl -X GET "https://api.hyperprop.com/platform/v1/organization/trading-accounts/7c9e6679-7425-40de-944b-e07fc1f90ae7/orders?limit=100" \
  -H "X-API-Key: hp_live_your_key_here"
```



## OpenAPI

````yaml /api-reference/openapi.json get /v1/organization/trading-accounts/{accountId}/orders
openapi: 3.0.0
info:
  title: Hyperprop Platform API
  version: 1.0.0
  description: >-
    REST API for the Hyperprop Trading Platform — provision evaluation and
    funded trading accounts, manage traders and plans, react to account
    lifecycle events via signed webhooks, and reconcile billing. Built for prop
    firms integrating from their own backend.


    Authentication, quick start, error handling, idempotency, pagination, custom
    metadata, webhooks, and the MCP connector are documented at
    https://docs.hyperprop.com.
  x-logo:
    url: https://app.hyperprop.com/logo-icon.svg
    altText: Hyperprop
    href: https://hyperprop.com
servers:
  - url: https://api.hyperprop.com/platform
    description: Production
security: []
tags:
  - name: Authentication
    description: >-
      User authentication - signup, signin, signout, password reset, email
      verification, OAuth, and MFA
  - name: User
    description: >-
      User account management - profile, notifications, agreements, dismissals,
      and audit logs. Requires Bearer token.
  - name: Organization
    description: >-
      Organization management - profile, team, trading accounts, plans, and
      rules. Supports **dual authentication**: Bearer JWT token (dashboard
      users) OR X-API-Key (programmatic access).
  - name: Market Data
    description: CME futures contracts and market data. Requires Bearer token.
  - name: Indicator Builder
    description: >-
      AI-assisted authoring of custom Hyperprop Script indicators for the web
      terminal. Requires Bearer token.
  - name: System
    description: System endpoints - health checks and connectivity
paths:
  /v1/organization/trading-accounts/{accountId}/orders:
    get:
      tags:
        - Organization
      summary: Get an account's order history
      description: >-
        Every order the engine recorded for one account — filled, working,
        cancelled, rejected or expired — newest first, across all trading days.
        Each row carries the engine's free-text `reason` and the derived
        `trigger` / `triggerLabel` (see the fills endpoint), plus realized P&L,
        fees, bracket links and the account balance after the fill.


        Use `GET /organization/snapshots/fills` for a whole-organization,
        one-trading-day view; use this endpoint for one account's history.


        ```bash

        curl -X GET
        "https://api.hyperprop.com/platform/v1/organization/trading-accounts/7c9e6679-7425-40de-944b-e07fc1f90ae7/orders?limit=100"
        \
          -H "X-API-Key: hp_live_your_key_here"
        ```
      operationId: getV1OrganizationTradingaccountsAccountidOrders
      parameters:
        - x-format:
            guid: true
          name: accountId
          in: path
          required: true
          schema:
            type: string
        - description: >-
            Comma-separated order statuses to include (e.g. filled, pending,
            cancelled, rejected, expired). Default: all
          name: status
          in: query
          required: false
          schema:
            type: string
        - description: >-
            Include orders voided by a Time Machine revert (they carry
            revertedAt)
          name: includeReverted
          in: query
          schema:
            type: boolean
            default: false
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 100
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            default: 0
      responses:
        '200':
          description: Success - Returns the account's orders
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model403'
        '401':
          description: Authentication required
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model9'
        '403':
          description: Forbidden - This account belongs to a different organization
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model404'
        '404':
          description: Not Found - No account exists with this ID
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model405'
        '500':
          description: An unexpected error occurred
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model5'
      security:
        - Bearer: []
        - X-API-Key: []
components:
  schemas:
    Model403:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          $ref: '#/components/schemas/Model402'
    Model9:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 401
        error:
          type: string
          example: Unauthorized
        message:
          type: string
          example: Authentication required
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: UNAUTHORIZED
    Model404:
      type: object
      properties:
        statusCode:
          type: number
          example: 403
        error:
          type: string
          example: Forbidden
        message:
          type: string
          example: This account does not belong to your organization
        code:
          type: string
          example: ACCOUNT_NOT_IN_ORG
    Model405:
      type: object
      properties:
        statusCode:
          type: number
          example: 404
        error:
          type: string
          example: Not Found
        message:
          type: string
          example: Trading account not found
        code:
          type: string
          example: ACCOUNT_NOT_FOUND
    Model5:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 500
        error:
          type: string
          example: Internal Server Error
        message:
          type: string
          example: An unexpected error occurred
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: INTERNAL_ERROR
    Model402:
      type: object
      properties:
        accountId:
          type: string
          x-format:
            guid: true
        orders:
          $ref: '#/components/schemas/Model400'
        pagination:
          $ref: '#/components/schemas/Model401'
    Model400:
      type: array
      items:
        $ref: '#/components/schemas/Model399'
    Model401:
      type: object
      properties:
        total:
          type: number
        limit:
          type: number
        offset:
          type: number
        hasMore:
          type: boolean
    Model399:
      type: object
      properties:
        id:
          type: string
        contract:
          type: string
          example: ESH6
        product:
          type: string
          example: CME
        symbol:
          type: string
          example: ES
        side:
          type: string
          example: sell
        orderType:
          type: string
          example: market
        status:
          type: string
          example: filled
        quantity:
          type: number
        filledQuantity:
          type: number
        limitPrice:
          type: number
        stopPrice:
          type: number
        filledPrice:
          type: number
        realizedPnl:
          type: number
        fee:
          type: number
        commission:
          type: number
        balanceAfter:
          type: number
          description: Account balance right after this fill, as stamped by the engine
        bracketType:
          type: string
        bracketParentId:
          type: string
        plannedTakeProfit:
          type: number
        plannedStopLoss:
          type: number
        reason:
          type: string
        rejectReason:
          type: string
        trigger:
          type: string
          example: auto_liquidation_breach
        triggerLabel:
          type: string
          example: 'Auto Liquidation: Breach'
        processedAt:
          type: string
        filledAt:
          type: string
        updatedAt:
          type: string
        revertedAt:
          type: string
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header
      description: >-
        JWT Bearer token for user session auth. Format: "Bearer {token}". Used
        by User and Organization endpoints.
    X-API-Key:
      type: apiKey
      name: X-API-Key
      in: header
      description: >-
        Organization API key for programmatic access. Format: "hp_live_{key}".
        Used by Organization endpoints as an alternative to Bearer token. Keys
        are managed in the dashboard.

````

## Related topics

- [Get order history (keyset-paginated)](/platform-api/user/get-order-history-keyset-paginated.md)
- [Get order history from database (append-only lifecycle events)](/trade-api/orders/get-order-history-from-database-append-only-lifecycle-events.md)
- [GET /depth/history — rolling order-book depth history.](/market-data-api/historical/get-depthhistory-—-rolling-order-book-depth-history.md)
- [Get account change history](/platform-api/organization/get-account-change-history.md)
- [Get an account's event log and session history](/platform-api/organization/get-an-accounts-event-log-and-session-history.md)
