Commit Graph
3 Commits
Author SHA1 Message Date
github-actions[bot] ebfe021b50 style: auto format 2026-04-14 15:15:05 +00:00
Tony 33996701af refactor: fix first() and undefined fallback abuse 2026-04-14 08:26:28 +08:00
Qi He (Heki)andClaude Opus 4.6 42c6b49a1d feat(route): add Polymarket (#21445)
* feat: add Polymarket

* feat(route): add Polymarket routes using Gamma API

Routes:
- /polymarket/events/:tag_slug? - List events by category
- /polymarket/event/:slug - Event details with markets
- /polymarket/search/:query - Keyword subscription
- /polymarket/series/:slug? - Recurring event series
- /polymarket/user/:address - User trading activity
- /polymarket/positions/:address - User positions
- /polymarket/leaderboard/:category?/:timePeriod? - Trader rankings

APIs used:
- Gamma API (gamma-api.polymarket.com): events, series
- Data API (data-api.polymarket.com): activity, positions, leaderboard

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(route): add Polymarket routes using Gamma API and Data API

Routes:
- /polymarket/events/:tagSlug? - List events by category
- /polymarket/event/:slug - Event details with markets
- /polymarket/search/:query - Keyword subscription
- /polymarket/series/:slug? - Recurring event series
- /polymarket/user/:address - User trading activity
- /polymarket/positions/:address - User positions
- /polymarket/leaderboard/:category?/:timePeriod? - Trader rankings

APIs used:
- Gamma API (gamma-api.polymarket.com): /events/pagination, /events/slug, /series, /public-search
- Data API (data-api.polymarket.com): /activity, /positions, /v1/leaderboard

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 23:05:05 +08:00