© Made by Adam Bellanger
← ProjectsPersonal

Bot tracking Polymarket's top traders, with a web dashboard and real-time Discord alerts.

Preview

polytrack.adambellanger.pro
PolyTrack sign-in page
PolyTrack on mobile

Stack

Back-end
  • Node.js
  • Discord.js
Data
  • PostgreSQL
Infra
  • PM2
  • Docker
Tools & APIs
  • Polymarket CLOB API

Context

On Polymarket, a handful of traders show gains of several million dollars. PolyTrack watches their wallets, records every trade and makes them searchable in a dashboard, with a Discord alert for each new position.

Role

Full design and development: monitoring bot, API, database, dashboard and deployment on my server.

Architecture

  1. Polymarket

    Top traders' wallets, CLOB API

  2. Node.js bot

    Continuous monitoring, under PM2

  3. PostgreSQL

    Trade history

    Discord

    Alert on every trade

  4. Node.js API

    :4000, under PM2

  5. Web dashboard

    Docker container behind NPM

Challenges

Polymarket blocks automated trading from Europe: I tested several network setups (OpenVPN, SOCKS5 proxy, proxychains, Cloudflare Warp) before concluding that automatic execution requires a US-hosted server. On the data side: a missing UNIQUE constraint on the transaction hash that broke upserts, wrongly typed UUIDs, and a CORS error when the domain changed.

Outcome

A live service: the bot runs continuously under PM2, trades are stored in PostgreSQL, and the dashboard is served on its own HTTPS subdomain.

Highlights

  • Continuous monitoring of top traders' wallets
  • Discord alert for every new trade
  • Bot + API under PM2, frontend in a Docker container
Next projectDocsDesk →