---
title: "Point-in-time financial query, as of date Y (premium)"
method: GET
path: "/api/v1/entities/{entity_id}/financials/as-of"
tags: ["Entities"]
---

# Point-in-time financial query, as of date Y (premium)

`GET /api/v1/entities/{entity_id}/financials/as-of`

## Request

- Base URL: `https://api.hub-equity.com`
- URL: `https://api.hub-equity.com/api/v1/entities/{entity_id}/financials/as-of`
- Auth: HTTP bearer

Returns the time-series of a Hub concept as it was *known on a historical date*. Filters out filings that did not exist yet at `as_of` ; per-fiscal-year the value is taken from the most recent filing whose `filing_date ≤ as_of`.

Answers *"what did Apple's FY2023 revenue look like in March 2024 before the FY2024 amendment landed?"* without manual filing archeology.

Use cases :
- **Backtest hygiene** — quant strategies must not peek at facts that didn't exist on the strategy date (survivorship/lookahead bias).
- **Restatement audit** — confirm whether a fact was already known on a regulatory deadline or arrived later via 10-K/A.
- **Time-machine BI** — replay an analyst's view to debug a decision retrospectively.

Query params :
- `as_of` (YYYY-MM-DD, required) — point-in-time cutoff.
- `hub_concept_code` (required) — Hub concept (e.g. REVENUE).
- `years` 1-30, default 5.
- `period_type` FY (default) or Q.

Current limitations:
- Currency is reported in native currency only — no historical FX translation (would require a point-in-time ECB feed).
- Only values read directly from filings; values Hub-Equity computes from several tags are not included yet.
- Restatements carried by the comparative columns of later filings are not taken into account yet.

## Path parameters

- `entity_id` string, required

## Query parameters

- `as_of` string, date, required: Historical cutoff date (ISO YYYY-MM-DD). Only filings with `filing_date ≤ as_of` are considered.
- `hub_concept_code` string, required: Hub concept code (e.g. REVENUE, NET_INCOME).
- `years` integer: Lookback window (1-30, default 5).
- `period_type` string: `FY` for annual (default) or `Q` for quarterly.

## Response `200`

Point-in-time time-series.

- ApiResponseAsOfResponse
  - `success` boolean, required
  - `data` AsOfResponse
    - `entity_id` string, required
    - `entity_name` string, required
    - `hub_concept_code` string, required
    - `as_of` string, required
    - `fiscal_period_type` string, required
    - `points` AsOfPoint[]
      - `fiscal_year` integer, required
      - `fiscal_period` string, nullable
      - `period_end` string, required
      - `value` number, nullable
      - `currency` string, nullable
      - `filing_id` string, required
      - `filing_date` string, required
      - `form_type` string, nullable
    - `notes` string[]
  - `error` ApiError: API error details.
    - `code` string, required
    - `message` string, required
    - `details` object, nullable
  - `meta` ApiMeta: API response metadata. Pagination fields (``page`` / ``per_page`` / ``total``) are populated on collection endpoints only. They are omitted from the payload on single-resource endpoints.
    - `timestamp` string, date-time
    - `request_id` string, nullable
    - `page` integer, nullable
    - `per_page` integer, nullable
    - `total` integer, nullable
  - `links` ApiLinks: HATEOAS-style pagination cursors. Host-relative path + query links for a collection page. Present on collection endpoints, ``null`` fields where a page doesn't exist (``next`` on the last page, ``prev`` on the first). The whole ``links`` object is omitted from single-resource responses (see ``ApiResponse`` serializer).
    - `self` string, nullable
    - `first` string, nullable
    - `prev` string, nullable
    - `next` string, nullable
    - `last` string, nullable

## Other responses

- `404`: Entity not found.
- `422`: Validation Error

---

[API](https://skmtc.dev/hub-equity/apis/hub-equity-api.md) · [All operations](https://skmtc.dev/hub-equity/apis/hub-equity-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hub-equity/apis/hub-equity-api/revisions/e8eeda5dc13e?raw)
