Inspiration

While using Reddit, I thought about how you could differentiate between popular and unpopular posts in a more engaging way. What if Reddit posts could be traded like stocks? The idea was to gamify Reddit engagement by letting users "invest" in posts they think will become popular, creating a virtual stock market where post popularity drives share prices.

What it does

PostStock transforms Reddit into a virtual stock market where users can buy and sell posts using virtual Reddit coins (℞). Users start with 10,000℞ and can trade by commenting simple commands like "/buy 100" or "/sell 50 120" on posts. Prices fluctuate based on upvotes and trading activity - the more popular a post becomes, the higher its stock price goes. Users can track their portfolio through a real-time dashboard and watch their investments grow (or shrink) as posts gain or lose popularity.

How we built it

We built PostStock using Reddit's Devvit platform, which allows native Reddit app development. The architecture consists of three main components:

  1. Devvit Backend - Handles Reddit integration, comment processing, and trade execution using Redis for data storage
  2. React Dashboard - A webview interface for portfolio tracking and stock analysis
  3. Trading Engine - Processes buy/sell commands from comments and updates prices based on upvote activity The app automatically converts new posts into tradeable stocks with IPO pricing, updates post flairs to show current prices, and provides instant trade confirmations through bot replies.

Challenges we ran into

The biggest challenge was designing a realistic price engine that responds to Reddit's organic voting patterns without being easily manipulated. We had to balance making prices responsive to upvotes while preventing artificial price inflation. Another major challenge was creating an intuitive trading interface that works entirely through Reddit comments - users needed to learn a new command syntax but it had to feel natural within Reddit's existing comment system.

Accomplishments that we're proud of

We're proud of creating a seamless integration that feels native to Reddit - users don't need to leave the platform to trade. The comment-based trading system is intuitive and the real-time price updates based on actual upvote activity create genuine excitement. We successfully built a complete virtual economy within Reddit's ecosystem, complete with portfolio tracking, profit/loss calculations, and automatic market making.

What we learned

We learned how to work within Reddit's unique constraints and leverage its existing social mechanics for game design. Building on Devvit taught us about creating apps that enhance rather than replace existing user behaviors. We also gained insights into designing virtual economies and the importance of balancing game mechanics to maintain engagement without encouraging manipulation.

What's next for PostStock Exchange

Next, we plan to add leaderboards to showcase top traders, implement market events that create temporary price volatility, and introduce creator rewards where post authors earn from trading fees. We're also exploring advanced trading features like limit orders and portfolio analytics, plus potential integration with Reddit's community points system for cross-platform value.

Built With

Share this project:

Updates