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

# Aptos API

> Access real-time Aptos token prices, trading pairs, wallet analytics, and live WebSocket subscriptions through the Codex API.

Move-based blockchain designed for safety, scalability, and upgradability with parallel execution via Block-STM. Codex tracks tokens, trading pairs, and wallet activity across Aptos DeFi protocols.

## Supported Networks

| Network | Chain ID | Status |
| - | - | - |
| Aptos | `49705` | Live |

> [!TIP]
>
> Filter queries to Aptos by passing `network: 49705`.

> [!NOTE]
>
> Aptos uses the Move programming language for smart contracts. Address formats differ from EVM chains.

## Supported APIs

### Token API

* [Get Token Prices on Aptos](https://docs.codex.io/api-reference/queries/gettokenprices.md) — Retrieve current USD prices for any token
* [Search and Filter Tokens on Aptos](https://docs.codex.io/api-reference/queries/filtertokens.md) — Discover trending tokens, filter by liquidity, volume, and market cap
* [Get OHLCV Chart Data on Aptos](https://docs.codex.io/api-reference/queries/gettokenbars.md) — Fetch candlestick price data for any token
* [Get Token Sparklines on Aptos](https://docs.codex.io/api-reference/queries/tokensparklines.md) — Retrieve sparkline chart data for tokens
* [Get Top Traders for a Token on Aptos](https://docs.codex.io/api-reference/queries/tokentoptraders.md) — Find the most active traders for any token

### Pair & Trading API

* [Filter Trading Pairs on Aptos](https://docs.codex.io/api-reference/queries/filterpairs.md) — Search pairs by liquidity, volume, or token
* [Get Detailed Pair Stats on Aptos](https://docs.codex.io/api-reference/queries/getdetailedpairstats.md) — Fetch comprehensive trading metrics for any pair
* [Get Token Events on Aptos](https://docs.codex.io/api-reference/queries/gettokenevents.md) — Track buys and sells in real-time
* [List Pairs for a Token on Aptos](https://docs.codex.io/api-reference/queries/listpairsfortoken.md) — Find all trading pairs for a specific token
* [Get Pair Metadata on Aptos](https://docs.codex.io/api-reference/queries/pairmetadata.md) — Retrieve metadata for any trading pair

### Wallet API

* [Get Token Holders on Aptos](https://docs.codex.io/api-reference/queries/holders.md) — Query token holders with balances
* [Get Top 10 Holder Concentration on Aptos](https://docs.codex.io/api-reference/queries/top10holderspercent.md) — Check how concentrated a token's supply is among top holders
* [Filter Wallets on Aptos](https://docs.codex.io/api-reference/queries/filterwallets.md) — Discover active traders and smart money wallets
* [Get Wallet Balances on Aptos](https://docs.codex.io/api-reference/queries/balances.md) — Retrieve token balances for any wallet

### Real-time WebSocket API

* [Subscribe to Price Updates on Aptos](https://docs.codex.io/api-reference/subscriptions/onpriceupdated.md) — Get real-time token price changes
* [Subscribe to Trade Events on Aptos](https://docs.codex.io/api-reference/subscriptions/oneventscreated.md) — Stream live swap events for any token
* [Subscribe to Chart Updates on Aptos](https://docs.codex.io/api-reference/subscriptions/onbarsupdated.md) — Get live candlestick chart data
* [Subscribe to Pair Metadata Updates on Aptos](https://docs.codex.io/api-reference/subscriptions/onpairmetadataupdated.md) — Track pair metadata changes in real-time

## Try It in the Explorer

Test any Aptos query directly in the [Codex GraphQL Explorer](https://docs.codex.io/explore.md).


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