Skip to content

Feat/reputation leaderboard api#388

Open
Daveside9 wants to merge 4 commits into
ezedike-evan:mainfrom
Daveside9:feat/reputation-leaderboard-api
Open

Feat/reputation leaderboard api#388
Daveside9 wants to merge 4 commits into
ezedike-evan:mainfrom
Daveside9:feat/reputation-leaderboard-api

Conversation

@Daveside9

Copy link
Copy Markdown

Adds GET /api/reputation/leaderboard — returns anchors ranked by composite score (fill rate, settlement time, slippage) for a corridor or all. Supports optional ?corridor= query param with Zod validation, 60s caching, and ETag.

Closes #312

Daveside9 and others added 4 commits June 1, 2026 15:44
- Zod validation on corridor query param (enum of known corridor IDs)

- Response shape: { anchor_id, composite, fill_rate, settle_p50, slippage_p50, n }

- Cache-Control: public, max-age=60, s-maxage=60

- ETag header + conditional GET (304 on If-None-Match match)

- 18 tests covering happy path, corridor filter, caching, and validation errors
…lve conflicts, fix pre-existing lint warnings
@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the ezedikeevan's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[#157] GET /api/reputation/leaderboard?corridor

1 participant