Skip to main content
The Pump.fun API provides powerful endpoints for tracking trades on specific coins. This guide shows you how to monitor trading activity effectively.

Get all trades for a coin

Retrieve all trades for a specific coin using its mint address:

Filter trades by size

Use the minimumSize parameter to filter out small trades and focus on significant transactions:
The minimumSize parameter helps reduce noise by filtering out small trades, making it easier to track whale activity.

Get trade count

Retrieve the total number of trades for a coin:

Paginate through trades

Implement pagination to efficiently retrieve large trade histories:
Python
When paginating, monitor the number of results returned. If you receive fewer results than your limit, you’ve reached the end of the data.

Track trades from followed users

Monitor trades made by users that a specific user follows:

Get latest trade

Retrieve the most recent trade across all coins:

Real-time monitoring example

Implement a simple trade monitor that polls for new trades:
Python
Polling too frequently can lead to rate limiting. See the best practices guide for recommended polling intervals.

Best practices

1

Use appropriate page sizes

Set limit between 20-100 for optimal performance. Larger values may cause timeouts.
2

Filter by minimum size

Use minimumSize to reduce data volume and focus on significant trades.
3

Implement exponential backoff

When polling, use exponential backoff on errors to avoid overwhelming the API.
4

Cache trade data

Store historical trades locally to minimize redundant API calls.