Get all trades for a coin
Retrieve all trades for a specific coin using its mint address:Filter trades by size
Use theminimumSize parameter to filter out small trades and focus on significant transactions:
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
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.