# Developer Platform

Welcome to your team’s developer platform

<h2 align="center">Alphanume Documentation</h2>

<p align="center">Alphanume delivers fast, reliable access to niche alternative datasets built for traders, quants, and researchers. Our mission is simple: <strong>surface the signals others overlook</strong> — with clean endpoints, low latency, and production-ready outputs.</p>

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><h4><i class="fa-leaf">:leaf:</i></h4></td><td><strong>Get Started in Minutes</strong></td><td>Make your first data request in under a minute.</td><td><a href="https://alphanume.gitbook.io/alphanume-docs/documentation">https://alphanume.gitbook.io/alphanume-docs/documentation</a></td><td><a href="https://3087441096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPWcYyRmlgNrOqpqldIAV%2Fuploads%2FtIGNeofJ4u6KU7ohQgi6%2Fquick-start-light.png?alt=media&amp;token=42ef4d1c-f39d-4853-ab9d-31a2e3bba951">quick-start-light.png</a></td></tr><tr><td><h4><i class="fa-cloud-rain">:cloud-rain:</i></h4></td><td><strong>Dilution Events</strong></td><td>Point-in-time S-1 filings labeled for dilutive impact, enriched with market context and tracked through effectiveness or withdrawal.</td><td><a href="https://alphanume.gitbook.io/alphanume-docs/documentation/datasets/dilution/overview">https://alphanume.gitbook.io/alphanume-docs/documentation/datasets/dilution/overview</a></td><td><a href="https://3087441096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPWcYyRmlgNrOqpqldIAV%2Fuploads%2FnUnw1s4BYh1M7zb4K1Yr%2Fdilution-docs-light.png?alt=media&amp;token=ed5011ed-4f04-4b5d-879a-4bce6419c3d0">dilution-docs-light.png</a></td></tr><tr><td><h4><i class="fa-terminal">:terminal:</i></h4></td><td><strong>API Guide</strong></td><td>Learn how requests are structured, how filtering and pagination work, and how to query datasets programmatically.</td><td><a href="https://alphanume.gitbook.io/alphanume-docs/documentation/overview/how-the-api-works">https://alphanume.gitbook.io/alphanume-docs/documentation/overview/how-the-api-works</a></td><td><a href="https://3087441096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPWcYyRmlgNrOqpqldIAV%2Fuploads%2FsVInqna35GinqS3aJY4u%2Freference-docs-light.png?alt=media&amp;token=8954d95b-6ae2-41bc-80b3-986073dfb68b">reference-docs-light.png</a></td></tr></tbody></table>

{% columns %}
{% column %}

### Get started in 5 minutes

Setting up your first API call should be the easiest part of getting started. With clear endpoints, copy-paste-ready examples, and quick authentication, you’ll be up and running in minutes—not hours.

No guesswork, no complexity—just your first successful call, fast.

<a href="https://alphanume.gitbook.io/alphanume-docs/documentation" class="button primary" data-icon="rocket-launch">Get started</a> <a href="https://alphanume.gitbook.io/alphanume-docs/documentation/overview/how-the-api-works" class="button secondary" data-icon="terminal">API Guide</a>
{% endcolumn %}

{% column %}
{% code title="alphanume.py" expandable="true" %}

```python
import pandas as pd
import requests

data_request = requests.get(f"https://api.alphanume.com/v1/dilution?limit=20").json()
dataframe = pd.json_normalize(data_request["data"])

print(dataframe)
```

{% endcode %}
{% endcolumn %}
{% endcolumns %}


# Quickstart

Welcome to Alphanume.

{% hint style="info" %}
This page shows you how to make your first request and begin working with our datasets in under a minute.
{% endhint %}

<figure><img src="https://2151724704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoO8ntK7rcpmnibKWyxE%2Fuploads%2Fr9HLky38nZSaXeXrcAj2%2FScreenshot%20(1182).png?alt=media&amp;token=1e8867cd-267a-41ce-9f17-e8b7d7d5ac56" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Alphanume supports unauthenticated requests for exploration.\
Requests made without an API key are limited (e.g. max records per request).\
To remove limits and access the full dataset, create an account and generate an API key.
{% endhint %}

### 1. (Optional) Create an Account & Receive Your API Key

To use **Alphanume** without limits, start by creating a subscription.

1. Visit [**alphanume.com**](https://alphanume.com) and choose a plan
2. Complete checkout
3. Your API key will be **automatically emailed** to you after signup

API keys authenticate requests and unlock:

* higher request limits
* full historical coverage
* production usage

Keep your API key private. Treat it like a password.

### **2. Make Your First Request**

Below is the simplest possible example using `requests` + `pandas`.\
This retrieves dilution filings and loads them into a clean dataframe.

{% tabs %}
{% tab title="JavaScript" %}

```javascript
async function main() {
  const response = await fetch(
    `https://api.alphanume.com/v1/dilution?limit=5`
  );

  const data = await response.json();
  console.log(data.data);
}

main();
```

{% endtab %}

{% tab title="Python" %}

```python
import pandas as pd
import requests

data_request = requests.get(f"https://api.alphanume.com/v1/dilution?limit=5").json()
dataframe = pd.json_normalize(data_request["data"])

print(dataframe)
```

{% endtab %}

{% tab title="cURL" %}

```shellscript
curl -X GET "https://api.alphanume.com/v1/dilution?limit=5"
```

{% endtab %}
{% endtabs %}

You now have Alphanume data inside a pandas dataframe — ready for analysis, modeling, or downstream usage in your trading or research pipeline.

### **3. What’s Next?**

Once you’re receiving data successfully, explore:

* **Dilution Dataset** — full schema, theory, and use-cases
* **API Reference** — parameters, pagination, and endpoints
* **Integration Examples** — Python, JS, and automation patterns


# About Alphanume

Who we are.

### **Overview**

Alphanume is a data platform focused on building alternative datasets for systematic traders, researchers, and developers.

Our goal is simple: to make datasets that are *interesting*, *actionable*, and *robust enough to be used in real decision-making*.

***

### **Our Perspective**

Alphanume is built from the perspective of real-world quantitative trading.

That means our work is shaped by practical constraints: liquidity, latency, survivorship bias, point-in-time correctness, and the realities of deploying strategies outside of backtests. We care less about how elegant an idea looks on paper, and more about whether it holds up when exposed to live markets.

This perspective influences everything we publish.

***

### **What We Build**

We focus on datasets that are:

* Derived from real market structure
* Cleaned and structured with point-in-time awareness
* Designed to be inputs into actual research or production pipelines

Some datasets are conventional. Others are unconventional. Many exist simply because we kept rebuilding them internally and decided they should exist publicly.

If a dataset is here, it’s because we found it useful or because it led to interesting questions worth exploring.

***

### **Design Principles**

Every dataset published through Alphanume follows a few core principles:

* **Actionable over academic**\
  We prioritize data that can be tested, modeled, or deployed — not just analyzed.
* **Bias-aware by default**\
  Survivorship, lookahead, and selection biases are treated as first-order problems, not footnotes.
* **Opinionated, but transparent**\
  We make deliberate design choices, and we document them. Users should understand how the data was constructed and why.
* **Built to be used**\
  The end goal is not insight for its own sake, but repeatable workflows that hold up under scrutiny.

***

### **What Alphanume Is Not**

Alphanume is not a signal service, and we don’t sell predictions.

We don’t promise returns, provide trade recommendations, or optimize datasets for marketing appeal. The platform exists to support independent research and decision-making — not to replace it.

***

### **A Living Platform**

Alphanume is intentionally flexible.

Because we operate our own infrastructure and build from first principles, the scope of what we publish will evolve over time — across asset classes, markets, and data types. If there’s a dataset you wish existed, there’s a good chance we’re interested in building it.


# How the API Works

Alphanume’s API is designed to be simple, predictable, and composable.\
All endpoints follow the same core request structure: optional authentication, optional filters, and deterministic responses.

Requests are made via standard HTTP `GET` calls with query parameters.

***

### Authentication & Access

API keys are optional.

* **Without an API key**\
  Requests are supported, but results are limited to a small sample per request.
* **With an active API key**\
  Request limits are removed and the full dataset is available.

API keys are issued automatically after creating a subscription and are emailed upon signup.

***

### Core Request Parameters

#### `api_key` (optional)

Your unique API key.

* Enables full dataset access
* Removes per-request record limits
* Required for production usage

If omitted, the API returns a limited subset suitable for exploration.

***

#### `ticker` (optional)

Filter filings by stock ticker.

* Case-insensitive
* Automatically normalized to uppercase
* Matches exact tickers (e.g. `AAPL`, `TSLA`, `NVDA`)

If omitted, relevant data across all tickers are returned.

***

### Date Filtering

The API supports flexible date-based filtering using four parameters.

All dates **must** be provided in the following format:

```
YYYY-MM-DD
```

#### Supported Date Parameters

| Parameter  | Description                   |
| ---------- | ----------------------------- |
| `date_gte` | Greater than or equal to date |
| `date_lte` | Less than or equal to date    |
| `date_gt`  | Strictly greater than date    |
| `date_lt`  | Strictly less than date       |

You may use **any combination**, provided the range is logically valid.

***

#### Valid Date Ranges

The API validates all date logic before executing a query.

Examples of valid usage:

* `date_gte` & `date_lte`
* `date_gt` & `date_lt`
* single-sided filters (e.g. only `date_gte`)

Examples of invalid usage:

* `date_lt` earlier than `date_gte`
* `date_lte` earlier than `date_gt`
* improperly formatted dates

Invalid date ranges or formats return a descriptive `400` error.

***

### Pagination & Limits

#### Record Limits

* Requests **without an API key** return a limited number of records per request.
* Requests **with an API key** return up to 5,000 records.

Results are ordered chronologically by date.

> Note: If you are querying large date ranges with an API key, we recommend filtering by ticker or date windows for optimal performance.

***

### Response Structure

All responses follow a consistent structure:

* `count` — number of records returned
* `data` — list of records

Date and timestamp fields are returned as ISO-formatted strings (`YYYY-MM-DD`) for easy parsing across languages.

***

### Example Request

{% code overflow="wrap" %}

```sh
GET https://api.alphanume.com/v1/dilution
    ?ticker=LGMK
    &date_gte=2024-12-01
    &date_lte=2025-02-01

```

{% endcode %}

{% code overflow="wrap" %}

```json
{
  "count": 1,
  "data": [
    {
      "date": "2025-01-03",
      "filing_timestamp": "2025-01-03T17:41:23-05:00",
      "ticker": "LGMK",
      "company_name": "LogicMark, Inc.",
      "market_cap_at_filing": 3069127.52,
      "dilutive": 1,
      "resale": 0,
      "shares_offered": 2528684.0,
      "became_effective": 1,
      "effective_date": "2025-02-18",
      "days_to_effective": 46.0,
      "offering_withdrawn": 0,
      "withdrawal_date": "",
      "days_to_withdrawal": null,
      "root_file_number": "333-284135",
      "accession_number": "0001213900-25-000848",
      "filing_url": "https://www.sec.gov/Archives/edgar/data/1566826/000121390025000848/0001213900-25-000848-index.htm",
      "last_updated": "2025-12-16 10:36:17.239666-05:00"
    }
  ]
}

```

{% endcode %}

***

### Common Usage Patterns

Typical workflows include:

* Pulling recent filings for a specific ticker
* Scanning dilution events over a date range
* Monitoring lifecycle updates (effective / withdrawn status)
* Ingesting filings into research or trading pipelines

The API is stateless — each request is independent and reproducible.

***

### Error Handling

If a request cannot be fulfilled, the API returns:

* a descriptive error message
* the reason for failure
* a standard HTTP status code

Common error cases include:

* invalid date formats
* logically invalid date ranges
* malformed parameters

***

### Design Philosophy

Alphanume’s API is built to be:

* **predictable** — no hidden behavior
* **transparent** — clear validation and errors
* **composable** — filters stack cleanly
* **production-ready** — no magic defaults

If you can construct one request, you can construct them all.


# Dilution

The Dilution dataset provides a clean, point-in-time view of equity dilution risk as it enters the market.

It tracks S-1 registration statements at the moment they are filed, labels their dilutive impact, and follows each filing through its full lifecycle — including effectiveness and withdrawal.

Use the sections below to learn:

* what the dataset represents and how it’s constructed
* how to apply it in trading and research workflows
* the structure and meaning of each field
* how and when the data is updated

This dataset is designed for systematic use — from exploratory analysis to production trading pipelines.


# Overview

The **Dilution** dataset captures U.S. equity dilution risk at the moment it enters the market.

It is a point-in-time record of **S-1 registration statements**, enriched with market context and lifecycle tracking, designed for traders and researchers who need to identify and manage dilution-driven risk with precision.

Each record represents a filing **as it was known on the filing date**, labeled for its dilutive impact and supplemented with forward-resolving outcomes such as whether the offering later became effective or was withdrawn.

***

#### What This Dataset Represents

* Initial **S-1 filings**, captured at filing time
* A binary **dilutive classification**, indicating whether the filing represents meaningful equity dilution
* Point-in-time firm characteristics, including market capitalization measured **one trading day prior** to filing to avoid look-ahead bias
* Full **lifecycle resolution**, tracking if and when a filing becomes effective or is withdrawn

This allows users to study both:

* the **immediate signal** introduced by a filing, and
* the **eventual outcome** of that filing over time.

***

#### Why Dilution Matters

Equity dilution is one of the most persistent structural headwinds in public markets, particularly in small- and mid-cap equities.

S-1 filings often precede:

* secondary offerings
* resale pressure
* changes in float and liquidity
* prolonged price underperformance

By labeling and normalizing these filings at the moment they occur, the dataset enables systematic approaches to:

* risk filtering
* short-biased strategies
* event-driven research
* post-filing lifecycle analysis

***

#### Point-in-Time Integrity

All features are constructed to preserve **point-in-time correctness**:

* Market capitalization is measured using data available **before** the filing date
* Dilution labels reflect filing content, not future price action
* Lifecycle fields (e.g. effectiveness or withdrawal) are updated only as those events occur

Historical records are never rewritten — only lifecycle status fields evolve.

***

#### Update Schedule

* **New filings** are ingested nightly at **11:00 PM ET**
* **Lifecycle statuses** (effective / withdrawn) are checked and updated every morning at **7:00 AM ET**

This ensures the dataset remains both timely and historically reliable.

***

#### Designed for Systematic Use

The Dilution dataset is built for:

* programmatic ingestion
* backtesting without leakage
* production-grade trading and monitoring pipelines

If you can query it, you can trade it.


# How to Use It

The Dilution dataset is designed to be used as a **signal source**, a **risk filter**, and a **lifecycle tracker** within systematic equity workflows.

Each record introduces new information into the market at a specific point in time — the filing date — and resolves forward as the filing either becomes effective or is withdrawn.

***

#### 1. Event-Driven Signal Generation

The primary use case is identifying **new dilution risk as it enters the market**.

Common approaches include:

* Flagging newly filed S-1s labeled as dilutive
* Conditioning exposure immediately following the filing date
* Grouping filings into short-biased baskets
* Avoiding long exposure in names with active dilution risk

Because filings are captured at the moment they are filed, this dataset is well-suited for **event-based backtests and live monitoring**.

***

#### 2. Lifecycle-Aware Trading

Unlike static event datasets, dilution risk evolves.

This dataset allows you to:

* Track how long filings take to become effective
* Study performance differences between filings that resolve quickly vs slowly
* Separate false positives (withdrawn filings) from completed dilution events
* Analyze post-effectiveness behavior

Fields such as `became_effective`, `effective_date`, `offering_withdrawn`, and `days_to_effective` enable lifecycle-aware strategies rather than single-day reactions.

***

#### 3. Risk Filtering & Portfolio Construction

The dataset can also be used defensively.

Examples include:

* Excluding names with active dilutive filings from long universes
* Adjusting position sizing based on dilution magnitude (`shares_offered` vs market cap)
* Conditioning factor portfolios to avoid structural headwinds
* Screening small-cap universes for persistent dilution behavior

Because market capitalization is measured prior to filing, these filters can be applied without look-ahead bias.

***

#### 4. Cross-Sectional Research

Beyond trading, the dataset supports broader research questions, such as:

* How often dilutive filings are withdrawn
* Typical time-to-effectiveness distributions
* Differences between resale and primary offerings
* Structural dilution patterns by market cap cohort

These analyses can inform both strategy design and risk management.

***

#### 5. Practical Query Patterns

Typical workflows include:

* Pulling the most recent filings across all tickers
* Querying a single ticker’s dilution history
* Scanning a rolling date window for new events
* Monitoring unresolved filings over time

The API is stateless and composable, making it easy to integrate into scheduled jobs, research notebooks, or live trading pipelines.

***

#### What This Dataset Is — and Is Not

* It **does** identify structural dilution risk at the moment it appears
* It **does not** predict price direction on its own
* It is best used as an input into broader systematic frameworks

Used correctly, it provides clarity around one of the most persistent sources of equity underperformance.


# Data Schema

Each record in the Dilution dataset represents a single S-1 filing, captured at the time it was filed and enriched with lifecycle and market context.

Unless otherwise noted, fields are **point-in-time** as of the filing date.\
Lifecycle fields update as filings resolve.

***

#### Core Filing Fields

| Field              | Type   | Description                           |
| ------------------ | ------ | ------------------------------------- |
| `date`             | string | Filing date (`YYYY-MM-DD`)            |
| `filing_timestamp` | string | Exact filing timestamp (Eastern Time) |
| `ticker`           | string | Stock ticker at filing time           |
| `company_name`     | string | Issuer name                           |
| `root_file_number` | string | SEC registration file number          |
| `accession_number` | string | Unique SEC accession identifier       |
| `filing_url`       | string | Direct link to the filing on EDGAR    |

***

#### Market Context (Point-in-Time)

| Field                  | Type  | Description                                                        |
| ---------------------- | ----- | ------------------------------------------------------------------ |
| `market_cap_at_filing` | float | Market capitalization measured **one trading day prior** to filing |
| `shares_offered`       | float | Number of shares registered in the filing                          |

> Market context fields are constructed using only information available prior to the filing date to avoid look-ahead bias.

***

#### Dilution Classification

| Field      | Type    | Description                                           |
| ---------- | ------- | ----------------------------------------------------- |
| `dilutive` | integer | Binary indicator (`1` = dilutive, `0` = non-dilutive) |
| `resale`   | integer | Indicates whether the filing is a resale registration |

The dilution label reflects the structural impact of the filing, not subsequent price action.

***

#### Lifecycle Resolution

These fields update over time as filings resolve.

| Field                | Type    | Description                                     |
| -------------------- | ------- | ----------------------------------------------- |
| `became_effective`   | integer | Indicates whether the filing became effective   |
| `effective_date`     | string  | Date the filing became effective (`YYYY-MM-DD`) |
| `days_to_effective`  | float   | Days between filing and effectiveness           |
| `offering_withdrawn` | integer | Indicates whether the filing was withdrawn      |
| `withdrawal_date`    | string  | Date the filing was withdrawn                   |
| `days_to_withdrawal` | float   | Days between filing and withdrawal              |

Lifecycle fields are initially unset and populate only when the corresponding event occurs.

***

#### Metadata

| Field          | Type   | Description                                   |
| -------------- | ------ | --------------------------------------------- |
| `last_updated` | string | Timestamp of the most recent lifecycle update |

This field reflects dataset maintenance activity and does not affect historical point-in-time integrity.

***

#### Notes on Data Behavior

* Records are never removed once published
* Point-in-time fields remain fixed
* Only lifecycle fields update as events occur
* All dates are returned as `YYYY-MM-DD` strings

This structure ensures the dataset is safe for both historical research and live monitoring.


# Historical Market Cap

The Historical Market Cap dataset provides a clean, point-in-time view of equity size over time.&#x20;

It tracks historical shares outstanding by ticker and date, allowing users to reconstruct market capitalization using information available at each moment in time.

The dataset is designed to support **survivorship-safe** research, universe construction, and market cap–based analysis without forward-looking bias.

Use the sections below to learn:

* what the dataset represents and how it’s constructed
* how to discover available tickers and valid date ranges
* how to query historical market cap data correctly
* the structure and meaning of each field
* how and when the data is updated


# Overview

The Historical Market Cap dataset provides a point-in-time record of equity size through historical market capitalization and shares outstanding.

Rather than relying on present-day values or retrospectively adjusted data, this dataset reflects market cap as it was observable on each historical date.

Market capitalization is a foundational input in many systematic strategies — from universe construction and factor research to risk modeling and portfolio weighting. However, accurate historical market cap data is difficult to source and easy to misuse. Naïve approaches often introduce **survivorship bias**, forward-looking revisions, or implicit assumptions about corporate actions that were not known at the time.

This dataset is designed to address those issues **directly**.

***

### What the Dataset Represents

Each record in the Historical Market Cap dataset represents:

* A single equity ticker
* A specific calendar date
* Shares outstanding as of that date
* The corresponding market capitalization as observed at that time

Both values are provided directly, allowing users to work with historical market cap data without requiring additional joins or reconstruction steps.

The data is structured to reflect availability **at the time** — not revised or restated using future information. If a company’s shares outstanding or market capitalization changed due to issuance, buybacks, or other corporate actions, those changes appear in the dataset only after they were observable.

***

### Why Historical Market Cap Is Hard

Historical market capitalization is deceptively complex.

Many commonly used datasets:

* Backfill shares outstanding using modern values
* Revise historical market cap figures based on future filings
* Omit delisted or short-lived securities
* Provide no visibility into when coverage actually begins

These practices can silently distort research results, especially when building size-based universes, liquidity filters, or long-horizon backtests.

The Historical Market Cap dataset is constructed with point-in-time correctness as the primary constraint, ensuring that users can reason about equity size exactly as it would have appeared historically.

***

### Designed for Survivorship-Safe Research

A core use case of this dataset is **survivorship-bias-free universe construction**.

By providing:

* Explicit coverage start dates for each ticker
* Historical market cap and shares outstanding by date
* No reliance on present-day index constituents

Users can construct equity universes that reflect what was actually investable at a given moment, rather than what survived into the present.

This is particularly important for:

* Small-cap and micro-cap research
* Long-horizon factor studies
* Corporate action–driven strategies
* Backtests sensitive to universe composition

***

### Practical Scope and Intent

This dataset is intended to be used programmatically.

It is optimized for:

* Systematic research workflows
* Batch querying by ticker or date
* Integration into production trading pipelines

Guardrails are intentionally built into the API to encourage correct usage patterns and prevent accidental full-table scans. These constraints are documented in later sections and are designed to reflect how practitioners typically interact with historical market cap data.

***

### How This Fits into a Research Stack

The Historical Market Cap dataset is not a standalone signal.\
It is a **foundational input** that complements price, volume, and event-based data.

Typical integrations include:

* Filtering universes by historical size thresholds
* Weighting portfolios by market cap at rebalance time
* Conditioning strategies on size regimes
* Combining with event or factor data for downstream modeling

Used correctly, historical market cap becomes an enabling layer for more sophisticated and defensible research.

***

### What’s Next

The following sections walk through:

* **How to use this dataset in practice**, with an emphasis on survivorship-safe universe construction
* **The data schema and API design**, including discovery of available tickers and correct query patterns


# How to Use It

The Historical Market Cap dataset is designed to support **systematic, point-in-time–correct workflows**.

Its primary value lies not in individual data points, but in how it enables defensible universe construction and size-aware analysis over long horizons.

This section outlines the most common and recommended ways to use the dataset in research and production settings.

***

### 1. Survivorship-Safe Universe Construction

The most important use case for this dataset is building **equity universes that reflect what was actually investable at a given point in time**.

Rather than relying on present-day index constituents or backfilled membership lists, users can construct universes directly from historical market cap coverage.

A typical workflow looks like:

1. Select a rebalance date
2. Query historical market cap data for that date
3. Apply size, liquidity, or coverage filters
4. Use the resulting universe for downstream analysis or portfolio construction

Because each ticker has an explicit coverage start date and historical market cap values, securities only appear once they were observable. This avoids the subtle survivorship bias introduced when working backward from modern universes.

This approach is particularly important for:

* Small-cap and micro-cap strategies
* Long-horizon factor research
* Studies sensitive to entry and exit timing

***

### 2. Size-Based Filtering and Bucketing

Historical market cap is commonly used to define size regimes, such as large-cap, mid-cap, and small-cap universes.

Using this dataset, users can:

* Filter securities above or below market cap thresholds at each rebalance
* Create dynamic size buckets that evolve over time
* Study factor behavior conditional on company size

Because market cap values are point-in-time accurate, these classifications reflect how companies were actually categorized historically — not how they appear today.

This is especially relevant when analyzing factors whose behavior differs meaningfully across size regimes.

***

### 3. Portfolio Weighting and Rebalancing

Market cap is frequently used as a weighting input in portfolio construction.

Common applications include:

* Market cap–weighted portfolios
* Hybrid weighting schemes combining market cap with signals
* Capped or floored market cap weights

By querying market cap values at rebalance dates, users can compute portfolio weights using only information available at that time. This avoids forward-looking distortions that can arise when weights are calculated using revised or modern values.

***

### 4. Corporate Action–Aware Analysis

Changes in shares outstanding and market cap often reflect underlying corporate actions such as:

* Equity issuance
* Buybacks
* Mergers or restructurings

The Historical Market Cap dataset captures these changes as they become observable, making it useful for:

* Conditioning strategies on changes in equity size
* Studying the impact of dilution or buybacks
* Pairing with event-based datasets for deeper analysis

When used alongside complementary datasets (e.g., dilution filings or corporate events), historical market cap provides essential context for interpreting changes in equity structure.

***

### 5. Integration into Production Pipelines

This dataset is designed to be consumed programmatically and integrated into automated workflows.

Typical production use cases include:

* Nightly or scheduled universe generation
* Pre-computation of size filters for downstream models
* Storage of historical market cap snapshots for backtesting and auditability

Guardrails built into the API encourage usage patterns that align with these workflows, such as querying by ticker for long histories or limiting cross-sectional pulls to narrow date windows.

***

### Recommended Usage Pattern

For most users, the recommended interaction pattern is:

1. Discover available tickers and coverage start dates
2. Define rebalance dates or analysis windows
3. Query historical market cap data scoped to those parameters
4. Cache results locally for repeated use

This approach minimizes unnecessary API calls while preserving correctness and reproducibility.

***

### What This Dataset Is — and Is Not

The Historical Market Cap dataset is a **foundational input**, not a trading signal.

It is best used as:

* A filter
* A weighting input
* A conditioning variable

Rather than as a standalone predictor.

Used correctly, it enables more accurate research and more defensible results across a wide range of systematic strategies.


# Data Schema

## Data Schema

Each record in the Historical Market Cap dataset represents a single equity’s size on a specific calendar date, captured using information available at that time.\
All fields are point-in-time unless explicitly noted.

The dataset is structured to support historical research, universe construction, and systematic trading workflows without introducing forward-looking bias.

***

### Core Fields

These fields define the identity and timing of each observation.

| Field                | Type    | Description                                   |
| -------------------- | ------- | --------------------------------------------- |
| `date`               | string  | Calendar date of the observation (YYYY-MM-DD) |
| `ticker`             | string  | Equity ticker symbol                          |
| `shares_outstanding` | integer | Shares outstanding as of the given date       |
| `market_cap`         | float   | Market capitalization as of the given date    |

All core fields reflect values that were observable on the specified date.

***

### Point-in-Time Integrity

All fields in the Historical Market Cap dataset are point-in-time by design.

* Values are not restated using future information
* Historical observations are not revised retroactively
* Changes in shares outstanding or market capitalization appear only after they become observable

This ensures that historical queries reflect how equity size would have been perceived at that moment, not how it appears in hindsight.

***

### Coverage Metadata

Coverage information is exposed via a separate discovery endpoint and should be used prior to querying historical data.

For each ticker, metadata includes:

* The earliest date for which market cap data is available

This allows users to:

* Avoid querying dates prior to coverage
* Construct survivorship-safe universes
* Reason explicitly about when a security enters the dataset

***

### Update Behavior

The Historical Market Cap dataset is append-only.

* New records are added as new dates become available
* Existing historical records are not removed
* Previously published point-in-time values remain fixed

This guarantees reproducibility of research and stability of downstream systems that depend on historical data.

***

### Data Types and Formatting

* All dates are returned as ISO-formatted strings (`YYYY-MM-DD`)
* Numeric fields are returned as native numeric types
* Empty result sets return a valid response with `count = 0`

The API does not return null placeholders for missing dates; absence of a record implies no coverage for that ticker on that date.

***

### Notes on Correct Usage

* Market cap values should be treated as authoritative for the given date
* Users should not backfill missing dates or extrapolate values across coverage gaps
* For long histories, queries should be scoped by ticker rather than wide date ranges

These conventions help preserve both correctness and performance.

***

### Example Usage

Querying the historical market cap of AAPL on 2025-12-01.

```shellscript
GET https://api.alphanume.com/v1/dilution
    ?ticker=AAPL
    &date=2025-12-01
```

```python
requests.get("https://api.alphanume.com/v1/historical-market-cap?ticker=AAPL&date=2025-12-01")
```

{% code overflow="wrap" %}

```json
{
  "count": 1,
  "data": [
    {
      "date": "2025-12-01",
      "ticker": "AAPL",
      "market_cap": 4201314409000.0005,
      "shares_outstanding": 14840390000.0
    }
  ]
}

```

{% endcode %}

***

### Summary

The Historical Market Cap data schema is intentionally minimal and explicit.

* Every record has a clear temporal meaning
* All values are safe for historical analysis
* No fields rely on future revisions or survivorship assumptions

This structure ensures the dataset can be used confidently in both research and production environments.


