# Cache KOL rankings while streaming trades

Keep the Solana KOL feed current and reuse a seven-day leaderboard across viewers with different refresh needs.

Access: Free REST · Pro and above for streaming

[Compare plans and subscribe](https://madeonsol.com/pricing#pricing)

## Integration choice

Cache the ranking by period, sort and filters. Give the live feed its own subscription and cursor. Share identical leaderboard reads across simultaneous viewers and set the expiry from your product’s freshness target.

## Implementation steps

1. Load the feed for recent trades and request the seven-day leaderboard separately. The ranking describes a window of activity and cannot be reconstructed from the latest page of trades.
2. Use the kol:trades channel for new trades with an eligible plan. Cache the leaderboard separately with an expiry that matches how often your interface needs to update.
3. Before embedding a public feed, check the display rights in your plan and the terms. A successful request confirms technical access only.

## Recent trades

~~~bash
curl -s "https://madeonsol.com/api/v1/kol/feed?limit=5" \
  -H "Authorization: Bearer $MADEONSOL_API_KEY"
~~~

## Seven-day ranking

~~~bash
curl -H "Authorization: Bearer $MADEONSOL_API_KEY" "https://madeonsol.com/api/v1/kol/leaderboard?period=7d&limit=10"
~~~

## Verify your integration

Open two matching leaderboard views and count upstream reads during one cache lifetime. They should share the result. Switching the ranking window should fetch the matching ranking, while incoming trades continue updating the feed.

## Related reference

- [KOL reference](https://madeonsol.com/api-docs#kol-tracker)
- [Terms and display rights](https://madeonsol.com/terms)

[Canonical guide](https://madeonsol.com/docs/kol-feed)
