> For the complete documentation index, see [llms.txt](https://docs.hipersnipe.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hipersnipe.com/features/leaderboard-tournament.md).

# Leaderboard and tournament

HiperSnipe runs ROI-based leaderboards with a periodic trading tournament.

## In-bot leaderboard

Main menu → **🏆 Leaderboard**

Shows the **Extended Tournament Board** — top traders by lifetime ROI and 7-day profit, with private trader labels (`Trader...a3f2`).

### Footer (both empty and populated states)

```
—
🏆 HiperSnipe Trading Tournament (April 20–July 15)
💰 Prize Pool: 🥇 0.5 SOL | 🥈 0.3 SOL | 🥉 0.2 SOL
```

Implemented in `utils/gamification.py` → `format_leaderboard_message()`.

Tournament dates and copy are updated in code when seasons change — check `gamification.py` and `daily_tasks.py` for the current window.

## Community broadcast (War Room)

When `COMMUNITY_CHAT_ID` is set, `utils/daily_tasks.py` posts to the community channel **once per day at 12:00 Europe/Ljubljana** (Slovenia, DST-aware).

### Broadcast copy (summary)

* Extended Tournament Board active through **July 15**
* Prize pool: 0.5 / 0.3 / 0.2 SOL for 1st / 2nd / 3rd
* Footer: next war-room broadcast tomorrow at 12:00 Slovenia time

Includes inline button **🔥 Enter the War Room** via `make_relay_war_room_funnel_keyboard()`.

## Ranking logic

Community leaderboard (`_get_roi_challenge_top_wallets`) ranks by:

* Total realized PnL (SOL) from closed position cycles
* Minimum initial buy threshold (`min_initial_buy_sol`, default 0.15 SOL)
* Wallet must have at least one closed mint with positive PnL

In-bot board uses lifetime ROI and 7-day profit columns from gamification queries.

## Admin test broadcast

Admins can trigger a one-shot broadcast from the admin panel (`/force_leaderboard` or test buttons) to verify copy and CTA wiring.

## Related

* [Gamification](/features/gamification.md)
* [Analytics and PnL](/features/analytics-pnl.md)
* [Call relay](/admin/call-relay.md)
* [Configuration](/for-operators/configuration.md) — `COMMUNITY_CHAT_ID`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hipersnipe.com/features/leaderboard-tournament.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
