Inspiration

Global and NRI investors who follow India face a flood of noisy headlines, and most Indian news sites can’t take their payments easily. We wanted a news product that filters and explains the news with AI, and that anyone in the world can pay for with PayPal.

What it does

MarketPulse AI pulls Indian market headlines from RSS feeds every 5 minutes. An AI model gives each story a category, a bullish, bearish or neutral sentiment, and a one-line note on why it matters. The front page looks like a newspaper, with a 24-hour market mood bar and category filters.

Free readers see stories 30 minutes after publication. Newer ones are locked, and the server never sends their text. Pro ($5/month) removes the delay, using PayPal Subscriptions. Deep Brief ($1 each) is a one-time purchase using PayPal Orders. The AI writes four sections: what happened, why it matters, who is affected and what to watch next. PayPal webhooks keep plan status correct when a subscription is cancelled, suspended, expires or renews.

How we built it

FastAPI, SQLAlchemy with SQLite, Jinja2, and Groq’s Llama 3.3 70B. PayPal’s Subscriptions API sells the Pro plan, and Orders v2 sells Deep Briefs. Every payment is checked against the logged-in account, the amount and the currency. Webhooks are verified with PayPal’s signature endpoint, and event and capture ids are stored so retries never fulfil twice. Tests mock PayPal and run without credentials.

Challenges we ran into

The project began as a FastAPI RSS classifier with an LLM and a Flutter desktop client. Since 1 October we added accounts, the Free and Pro paywall, the PayPal subscriptions and orders, webhook verification and idempotency, sentiment and AI Deep Briefs, a new newspaper-style web interface, tests, Docker and a PayPal setup script.

Challenges

Sandbox accounts created in India failed at PayPal’s approval page. Creating US sandbox accounts fixed it. PayPal rejected our webhook URL because of a stray trailing slash. Some news publishers block automated feed requests.

Accomplishments that we're proud of

A working end-to-end payment flow, a paywall that really hides locked text, and duplicate-safe webhook handling.

What we learned

PayPal’s webhooks and the return URL both need handling, because either can arrive first.

What's next for MarketPulse

UPI and Razorpay for Indian readers, watchlists and alerts, and a mobile app.

Built With

Share this project:

Updates

Submission history