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

# Index As Of Date

> Returns EWMA-smoothed transaction index values as of a specific date

<Note>
  This series is moving to the officially administered GX feed behind the scenes. GX does not publish the `p5`/`p95` envelope or transaction counts, so after the swap `p5`, `p95`, and `txn_count` will remain in the response but return `null`. Avoid building dependencies on these fields.
</Note>

Returns the latest published value **on or before** `as_of_date`, so weekends and holidays resolve to the prior business day. Takes either `gpu_family` or `gpu_group` (both returns `400`) — see [Current Index](/pricing/endpoint/txn-index-current) for the granularity rules.

## Example

```bash theme={null}
# Family-level: Hopper (US, combined) as of a date
curl -H "Authorization: Bearer $TOKEN" \
  "https://data-api.compute-index.com/v1/txn-index/as-of?as_of_date=2026-01-01&gpu_family=hopper&region_group=US&contract_type=combined"

# Daily GPU-level: H100 as of a date
curl -H "Authorization: Bearer $TOKEN" \
  "https://data-api.compute-index.com/v1/txn-index/as-of?as_of_date=2026-01-01&gpu_group=h100"
```


## OpenAPI

````yaml pricing/openapi.json GET /v1/txn-index/as-of
openapi: 3.1.0
info:
  title: GPU Pricing API
  description: |2-

        **GPU Pricing API** provides real-time and historical pricing data
        for GPU compute across 50+ cloud providers and GPU marketplaces.

        ## Features
        - Search current prices across vendors
        - Historical price trends
        - GPU transaction data
        - **Informational Price Index** — EWMA-smoothed composite indices by GPU family, region, and contract type
        - **Transaction Price Index** — smoothed indices derived from verified GPU transactions
        - **Custom Index** — EWMA-smoothed H100 sub-model indices by region, contract type, and vendor category
        - Global region coverage (US, EU, APAC)
        - GPU availability tracking
        - Scope-based API key access control

        ## Authentication
        Send your token as a Bearer token in the `Authorization` header on every request:
        ```
        Authorization: Bearer YOUR_TOKEN
        ```
        Example:
        ```bash
        curl -H "Authorization: Bearer $TOKEN" "https://data-api.compute-index.com/v1/vendors"
        ```
        Tokens are issued by Compute Index (david@compute-index.com); long-lived, treat as secrets.

        > The legacy `X-API-Key` header is deprecated — use the `Authorization: Bearer` header above.

        ## Rate Limits
        - **Free tier**: 100 requests/minute, 10,000/day
        - **Pro tier**: 1,000 requests/minute, 100,000/day
        - **Enterprise**: Custom limits

        ## Data Coverage
        - 50+ vendors (AWS, Azure, GCP, Oracle, CoreWeave, Lambda, RunPod, Vast.AI, FluidStack, Vultr, etc.)
        - 30M+ historical pricing records
        - Updated multiple times daily

        ## Support
        - Support: david@compute-index.com
        
  contact:
    name: API Support
    email: david@compute-index.com
  license:
    name: Commercial License
    url: https://compute-desk.com/license
  version: 1.0.0
servers:
  - url: https://data-api.compute-index.com
security: []
paths:
  /v1/txn-index/as-of:
    get:
      tags:
        - Transaction Index
      summary: Get transaction index values on a specific date
      description: Returns EWMA-smoothed transaction index values as of a specific date
      operationId: get_txn_index_as_of_v1_txn_index_as_of_get
      parameters:
        - name: as_of_date
          in: query
          required: true
          schema:
            type: string
            description: 'Target date (YYYY-MM-DD). Example: 2025-06-15'
            title: As Of Date
          description: 'Target date (YYYY-MM-DD). Example: 2025-06-15'
        - name: index_type
          in: query
          required: false
          schema:
            type: string
            description: 'Index type: blended_sigmoid, raw'
            default: blended_sigmoid
            title: Index Type
          description: 'Index type: blended_sigmoid, raw'
        - name: gpu_family
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              GPU family (e.g., hopper, blackwell). Mutually exclusive with
              gpu_group
            title: Gpu Family
          description: >-
            GPU family (e.g., hopper, blackwell). Mutually exclusive with
            gpu_group
        - name: gpu_group
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              GPU group for daily GPU-level indices (h100, h200, a100, b200,
              b300). Mutually exclusive with gpu_family
            title: Gpu Group
          description: >-
            GPU group for daily GPU-level indices (h100, h200, a100, b200,
            b300). Mutually exclusive with gpu_family
        - name: region_group
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Region group (US only at launch)
            title: Region Group
          description: Region group (US only at launch)
        - name: contract_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Contract type (combined only)
            title: Contract Type
          description: Contract type (combined only)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TxnIndexListResponse'
              example:
                data:
                  - date: '2026-04-22'
                    gpu_family: hopper
                    gpu_group: null
                    region_group: US
                    contract_type: combined
                    index_type: blended_sigmoid
                    index_value: 2.3379
                    p5: 1.4311
                    p95: 4.4856
                    txn_count: 10
                total_count: 1
                filters:
                  index_type: blended_sigmoid
                  gpu_family: hopper
                  gpu_group: null
                  region_group: US
                  contract_type: combined
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    TxnIndexListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/TxnIndexDataPoint'
          type: array
          title: Data
        total_count:
          type: integer
          title: Total Count
        filters:
          additionalProperties: true
          type: object
          title: Filters
      type: object
      required:
        - data
        - total_count
        - filters
      title: TxnIndexListResponse
      description: Response for current/as-of transaction index queries
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TxnIndexDataPoint:
      properties:
        date:
          type: string
          title: Date
          description: Index date (YYYY-MM-DD)
        gpu_family:
          type: string
          title: Gpu Family
          description: GPU family (e.g., hopper, blackwell)
        gpu_group:
          anyOf:
            - type: string
            - type: 'null'
          title: Gpu Group
          description: >-
            GPU group (e.g., h100) for daily GPU-level index points; null for
            family-level
        region_group:
          type: string
          title: Region Group
          description: Region group (US at launch)
        contract_type:
          type: string
          title: Contract Type
          description: Contract type (combined)
        index_type:
          type: string
          title: Index Type
          description: Index type (blended_sigmoid, raw)
        index_value:
          anyOf:
            - type: number
            - type: 'null'
          title: Index Value
          description: Smoothed index value ($/GPU-hr)
        p5:
          anyOf:
            - type: number
            - type: 'null'
          title: P5
          description: Smoothed 5th percentile price (clipped <= index_value)
        p95:
          anyOf:
            - type: number
            - type: 'null'
          title: P95
          description: Smoothed 95th percentile price (clipped >= index_value)
        txn_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Txn Count
          description: Transaction count
      type: object
      required:
        - date
        - gpu_family
        - region_group
        - contract_type
        - index_type
      title: TxnIndexDataPoint
      description: Single data point from the transaction index (all values EWMA-smoothed)
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````