> ## 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

> Recent DEX trades for a pool or token in the past 24 hours, 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](/demo/reference/pool-trades-contract-address) | Last 300 trades in past 24 hours by pool address |

<OverviewFooter api="demo" />
