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

# Codex API

> Polymarket, rebuilt from the chain: holders, positions, PnL, trades, leaderboards and live fills for every market.

Codex is Nomos's own Polymarket indexer. It reads every Polymarket event on Polygon and rebuilds holders, positions, cost basis, PnL, trades, splits, merges and redemptions for every market, then serves them over a read-only JSON API with live streams. Every number comes from the chain itself, not from Polymarket's data API.

> [card] Every Market
>
> The whole on-chain history since 2020, the AMM era included.

> [card] 2B+ Fills
>
> Every order-book fill since November 21, 2022.

> [card] Seconds Behind
>
> Finalized Polygon blocks; the live tape is at the chain head.

> [card] GET Only
>
> JSON over HTTPS, plus two Server-Sent Event streams.

## What You Can Build

* Holder and top-trader tables for any market, with exact counts.
* A wallet's full profile: its open book, closed positions, trades, and PnL by day or over any window.
* Leaderboards over all of Polymarket or one category.
* Trade tapes, candles and backtests from raw fills.
* Live alerts from the head stream.

> [card] [Quickstart](https://dash-docs.nomos.trade/quickstart.md)
>
> Make your first call in a minute.

> [card] [API Reference](https://dash-docs.nomos.trade/api-reference/markets/holders.md)
>
> Every endpoint, with a playground.

> [!NOTE]
>
> Example responses in these docs are trimmed, and their numbers are illustrative.


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