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

# Onchain Trades

> DEX trade history for a pool or token, plus a token's top traders.

export const OverviewFooter = ({api = "pro"}) => {
  const isDemo = api === "demo";
  return <>
      <hr />
      <CardGroup cols={2}>
        <Card title="Full endpoint list" icon="map" href={isDemo ? "/demo/reference/endpoint-overview" : "/reference/endpoint-overview"} horizontal arrow="true">
          Browse every endpoint in {isDemo ? "Demo" : "Pro"} API.
        </Card>
        <Card title="Build with AI" icon="robot" href="/ai-integration" horizontal arrow="true">
          Connect AI agents and integration.
        </Card>
      </CardGroup>
    </>;
};

| Endpoint | Description |
| - | - |
| [/onchain/networks/\{network}/pools<br />/\{pool\_address}/trades](/reference/pool-trades-contract-address) | Trades by pool address |
| 💼 [/onchain/networks/\{network}/pools<br />/\{pool\_address}/trades/range](/reference/pool-trades-contract-address-range) | Trades within a time range by pool address |
| 💼 [/onchain/networks/\{network}/tokens<br />/\{token\_address}/trades](/reference/token-trades-contract-address) | Trades across all pools by token address |
| 💼 [/onchain/networks/\{network}/tokens<br />/\{token\_address}/trades/range](/reference/token-trades-contract-address-range) | Trades within a time range across all pools by token address |
| 💼 [/onchain/networks/\{network}/tokens<br />/\{token\_address}/top\_traders](/reference/top-token-traders-token-address) | Top token traders by token contract address |

<OverviewFooter />


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