Arshia Heravi

Independent project · Engineering case study

PolyEdge

Market monitoring with account and subscription rules

PolyEdge combines Polymarket activity monitoring with user accounts, follow limits and subscription management. The independent project uses a Python FastAPI backend, SQLAlchemy and SQLite, with an HTML, CSS and JavaScript interface served by the same application.

  • FastAPI
  • SQLAlchemy
  • SQLite
  • JavaScript
  • Stripe

Connecting monitoring to account state

The interface presents a trader leaderboard and lets an account follow selected traders. Scheduled checks retrieve market activity, while the backend keeps the account's subscription tier and permitted number of follows part of the same workflow.

That combination creates application rules beyond displaying external data: a request must belong to an authenticated account, the account's follow limit must be respected, and subscription changes must be reflected in its available features.

A compact application boundary

FastAPI serves both the API and the frontend. SQLAlchemy models the persisted data in SQLite, JWT supports authentication, and APScheduler runs recurring monitoring work. The frontend does not require a separate build step.

Stripe Checkout and webhook handling connect payment events to subscription state. The documented event set includes checkout completion and subscription updates or deletion. This is a useful example of coordinating an external service with local account rules without treating the payment screen alone as the source of access.

Testing invariants across tiers

The invariant tests check that follow responses include tier and limit information, that additional follows are rejected once a tier's limit is reached, and that protected endpoints reject requests without authentication. Property-based input checks also exercise trader-address handling.

The CI configuration runs the offline test suite on Python 3.11 and 3.12. Tests that contact the live market API are excluded from that default run, keeping routine checks independent of an external service's availability.

Integration limits

The README describes notification integrations and identifies additional Telegram message-handling work needed for its verification command. That limitation matters when distinguishing documented application components from a complete notification deployment.

This case study concerns the software's account, monitoring and subscription behavior. It makes no claim about trading performance, notification delivery guarantees or production adoption.

Explore the source

Review the implementation and verification details in the public repository.

This case study was reviewed on . The repository may have changed since that review.

Read the current repository documentation

PolyEdge on GitHub (opens in a new tab)

Want to discuss an implementation or a role?

Get in touch