> ## 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 round-trip trades

> One account's completed round-trip trades, newest exit first: one row per position from flat back to flat, with scale-ins and scale-outs merged into that trade. These are the same trades the trader sees in their journal, so you don't need to pair fills yourself.

- `pnl` is gross (price difference only). `fee` and `commission` are the totals of the trade's fills, and `netPnl` = `pnl` − `fee` − `commission`.
- A position that is still open is not included until it is back to flat.
- Fills voided by a Time Machine revert don't count.
- Each order's executed quantity and volume-weighted average fill price are used; executed contracts count even when the rest of the order was cancelled.
- `entryOrderIds` and `exitOrderIds` are the order IDs from `GET /organization/trading-accounts/{accountId}/orders`.
- At most 120 requests a minute per organization; above that you get `429 RATE_LIMITED` with a `Retry-After` header.

```bash
curl -X GET "https://api.hyperprop.com/platform/v1/organization/trading-accounts/7c9e6679-7425-40de-944b-e07fc1f90ae7/trades?since=2026-11-01T00:00:00Z" \
  -H "X-API-Key: hp_live_your_key_here"
```

**Access:** read-only and full-access API keys. Dashboard members need view access to Traders & accounts.



## OpenAPI

````yaml https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/trades
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: Trading accounts
    description: Create, update, and inspect trading accounts.
  - name: Traders
    description: Look up and update the traders in your organization.
  - name: Trading plans
    description: Define the plans you sell.
  - name: Trading rules
    description: Define how accounts are evaluated.
  - name: Instruments
    description: >-
      The contracts your organization's accounts can trade, with their
      specifications.
  - name: Lockouts
    description: Pause and resume trading on an account.
  - name: Payouts
    description: Check payout eligibility and record payouts.
  - name: Purchases
    description: Purchases recorded for your organization.
  - name: Time Machine
    description: Restore accounts to an earlier trading day or instant.
  - name: Mass credit
    description: >-
      Credit back losses across many accounts after an incident, as background
      jobs you can follow, pause, export and reverse.
  - name: Webhooks
    description: Register webhook endpoints and inspect deliveries.
  - name: Events
    description: Your organization's event history, to replay or audit what happened.
  - name: Real-time streams
    description: >-
      Live events and trading data over a WebSocket, for dashboards and CRMs
      that update as things happen.
  - name: Reconciliation
    description: Balances, end-of-day snapshots, and fills for reconciliation.
  - name: Analytics
    description: Organization performance, revenue and top traders.
  - name: Revenue
    description: >-
      Totals of what your traders bought and were paid out, and how many buyers
      stopped buying.
  - name: Risk
    description: >-
      Firm profit and loss, plan economics, open exposure, and the alert limits
      you set.
  - name: Trader insights
    description: Your organization's open positions right now and over time.
  - name: Billing and invoices
    description: >-
      Your Hyperprop invoices, credits and billing details, with usage so far
      this month, billing cycles, forecasts and CSV exports.
  - name: Team and roles
    description: Manage dashboard access for your staff.
  - name: API keys
    description: >-
      Manage your organization's API keys: rotation, read-only keys and IP
      allowlists.
  - name: Logs and health
    description: >-
      API request logs, the audit log, integration health, and idempotency key
      recovery.
  - name: Organization profile
    description: Your organization's profile and logo.
  - name: Support
    description: Open and follow up on support tickets.
  - name: Partner access
    description: >-
      Read a trader's journal as an approved partner app, with the trader's own
      key.
paths:
  /v1/organization/trading-accounts/{accountId}/trades:
    get:
      tags:
        - Trading accounts
      summary: Get an account's round-trip trades
      description: >-
        One account's completed round-trip trades, newest exit first: one row
        per position from flat back to flat, with scale-ins and scale-outs
        merged into that trade. These are the same trades the trader sees in
        their journal, so you don't need to pair fills yourself.


        - `pnl` is gross (price difference only). `fee` and `commission` are the
        totals of the trade's fills, and `netPnl` = `pnl` − `fee` −
        `commission`.

        - A position that is still open is not included until it is back to
        flat.

        - Fills voided by a Time Machine revert don't count.

        - Each order's executed quantity and volume-weighted average fill price
        are used; executed contracts count even when the rest of the order was
        cancelled.

        - `entryOrderIds` and `exitOrderIds` are the order IDs from `GET
        /organization/trading-accounts/{accountId}/orders`.

        - At most 120 requests a minute per organization; above that you get
        `429 RATE_LIMITED` with a `Retry-After` header.


        ```bash

        curl -X GET
        "https://api.hyperprop.com/platform/v1/organization/trading-accounts/7c9e6679-7425-40de-944b-e07fc1f90ae7/trades?since=2026-11-01T00:00:00Z"
        \
          -H "X-API-Key: hp_live_your_key_here"
        ```


        **Access:** read-only and full-access API keys. Dashboard members need
        view access to Traders & accounts.
      operationId: getV1OrganizationTradingaccountsAccountidTrades
      parameters:
        - description: Trading account ID
          x-format:
            guid: true
          name: accountId
          in: path
          required: true
          example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
          schema:
            type: string
        - description: >-
            Only trades whose exit is at or after this time (for incremental
            refreshes)
          name: since
          in: query
          required: false
          example: '2026-11-01T00:00:00Z'
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: >-
            Success - Returns the account's completed round-trip trades, newest
            exit first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model1347'
        '400':
          description: >-
            The request does not match the documented parameters or body;
            `message` names the field
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Always false on errors
                    example: false
                  statusCode:
                    type: integer
                    example: 400
                  error:
                    type: string
                    example: Bad Request
                  message:
                    type: string
                    example: '"limit" must be less than or equal to 100'
                  code:
                    type: string
                    enum:
                      - VALIDATION_ERROR
                    example: VALIDATION_ERROR
                    description: >-
                      Machine-readable error code — switch on this, not on
                      message text
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model15'
        '403':
          description: The API key may not make this request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Always false on errors
                    example: false
                  statusCode:
                    type: integer
                    example: 403
                  error:
                    type: string
                    example: Forbidden
                  message:
                    type: string
                    example: >-
                      Your role does not have view access to "Traders &
                      accounts"
                  code:
                    type: string
                    description: >-
                      `INSUFFICIENT_PERMISSIONS` = the role or key lacks the
                      permission this endpoint needs; `READ_ONLY_KEY` = a
                      read-only API key sent a request that changes data;
                      `IP_NOT_ALLOWED` = the request came from an address
                      outside the key's IP allowlist; `ORG_INACTIVE` = the
                      organization is not active
                    example: INSUFFICIENT_PERMISSIONS
                    enum:
                      - INSUFFICIENT_PERMISSIONS
                      - READ_ONLY_KEY
                      - IP_NOT_ALLOWED
                      - ORG_INACTIVE
        '404':
          description: Not Found - No account with this ID exists in your organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model1348'
        '422':
          description: >-
            This account's trading history is too large to load at once. Use the
            orders endpoint instead.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model1349'
        '429':
          description: Too many requests to this endpoint. Try again in 12 second(s).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model1350'
        '500':
          description: An unexpected error occurred
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model10'
        '504':
          description: >-
            Gateway Timeout - The request did not complete within 25 seconds
            (`REQUEST_TIMEOUT`). Nothing was changed; retry, or narrow the
            request (for example a shorter date range).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model1351'
      security:
        - X-API-Key: []
components:
  schemas:
    Model1347:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          $ref: '#/components/schemas/Model1346'
    Model15:
      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
    Model1348:
      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
    Model1349:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 422
        error:
          type: string
          example: Unprocessable Entity
        message:
          type: string
          example: >-
            This account's trading history is too large to load at once. Use the
            orders endpoint instead.
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: JOURNAL_TOO_LARGE
    Model1350:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 429
        error:
          type: string
          example: Too Many Requests
        message:
          type: string
          example: Too many requests to this endpoint. Try again in 12 second(s).
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: RATE_LIMITED
    Model10:
      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
    Model1351:
      type: object
      properties:
        statusCode:
          type: number
          example: 504
        error:
          type: string
          example: Gateway Timeout
        message:
          type: string
          example: >-
            The request did not complete within 25 seconds. Try again, or narrow
            it (for example a shorter date range).
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: REQUEST_TIMEOUT
    Model1346:
      type: object
      properties:
        accountId:
          type: string
          example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
          x-format:
            guid: true
        trades:
          $ref: '#/components/schemas/Model1345'
        total:
          type: number
          example: 1
        generatedAt:
          type: string
          example: '2026-11-16T19:20:00.000Z'
          x-format:
            isoDate: true
    Model1345:
      type: array
      items:
        $ref: '#/components/schemas/Model1344'
    Model1344:
      type: object
      properties:
        id:
          type: string
          example: trade-31023653-a76ea170
        contract:
          type: string
          example: NQZ6
        product:
          type: string
          example: CME
        symbol:
          type: string
          example: NQ
        side:
          $ref: '#/components/schemas/side'
        quantity:
          type: number
          description: Contracts closed in the trade (all of its exits together)
          example: 2
        entryPrice:
          type: number
          description: Volume-weighted average entry price
          example: 21771.25
        entryTime:
          type: string
          example: '2026-11-13T15:00:22.498Z'
          x-format:
            isoDate: true
        exitPrice:
          type: number
          description: Volume-weighted average exit price
          example: 21774
        exitTime:
          type: string
          example: '2026-11-13T15:04:35.260Z'
          x-format:
            isoDate: true
        entryOrderIds:
          $ref: '#/components/schemas/Model1342'
        exitOrderIds:
          $ref: '#/components/schemas/Model1343'
        durationMs:
          type: number
          example: 252762
        pnl:
          type: number
          description: Gross realized P&L
          example: 110
        pnlTicks:
          type: number
          example: 11
        fee:
          type: number
          description: Exchange fees of the trade's fills
          example: 5.7
        commission:
          type: number
          description: Your commission on the trade's fills
          example: 2
        netPnl:
          type: number
          description: pnl − fee − commission
          example: 102.3
    side:
      type: string
      example: long
      enum:
        - long
        - short
    Model1342:
      type: array
      example:
        - 3f2b8c1e-9d4a-4e7b-8a61-0c5d2e9f7a10
      items:
        type: string
    Model1343:
      type: array
      example:
        - 8a61c5d2-0c5d-4e7b-9d4a-3f2b8c1e7a10
      items:
        type: string
  securitySchemes:
    X-API-Key:
      type: apiKey
      name: X-API-Key
      in: header
      description: >-
        Organization API key (`hp_live_...`), sent in the `X-API-Key` header.
        Create, rotate and restrict keys in the dashboard or with the API keys
        endpoints; an organization can have two active keys, so you can rotate
        without downtime. A **full-access** key can call every endpoint in this
        reference. A **read-only** key can call `GET` endpoints (and create a
        trading stream token); any other request returns `403 READ_ONLY_KEY`. A
        key with an IP allowlist returns `403 IP_NOT_ALLOWED` from any other
        address. Each endpoint lists which keys can call it under **Access**.

````

## Related topics

- [Get completed round-trip trades (server-derived)](https://docs.hyperprop.com/platform-api/partner-access/get-completed-round-trip-trades-server-derived.md)
- [Get daily account and trader activity](https://docs.hyperprop.com/platform-api/trading-accounts/get-daily-account-and-trader-activity.md)
- [Get traders for your organization](https://docs.hyperprop.com/platform-api/traders/get-traders-for-your-organization.md)
- [Get account lockout status](https://docs.hyperprop.com/trade-api/account/get-account-lockout-status.md)
- [Get a specific trader](https://docs.hyperprop.com/platform-api/traders/get-a-specific-trader.md)


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