SocialPredict is a prediction market infrastructure platform. Read more about us at our readme on Github here.
This release allows production deployment on a VPN via tightened backend security, standardizesd market math, and a smoother frontend experience. Plus: real search, better stats, and a one-liner DB backup.
🧩 Highlights
- 🔍 Global & Market Search — New /v0/search backend + search components on the frontend for fast market discovery.
- 🗂 Markets by Status — Dedicated endpoint & UI for Active / Closed / Resolved / All. Consistent across tabs & URLs.
📈 Stats & Metrics
-
System Metrics API for platform-level health checks.
-
User Financials view (frontend) with balances, equity, and P&L snapshots.
🛡️ Security Hardening
- Strict security headers, input sanitizer, and lightweight rate limiting.
- Middleware tests included to guard against regressions.
💸 Trading Logic Polish
- Dust-cap protections on sells to avoid tiny, fee-eaten outputs.
- Bets returned in consistent ascending order for stable UIs and bots.
- Market volume & probability math refactors for clarity and testability.
🧭 SPA Routing Fix
- Updated Nginx + Vite config to end those weird not-found refreshes on deep links.
💾 One-Command DB Backups
- New script: scripts/backup/db_backup.sh — portable, simple, documented.
🔨 Developer Experience
- 🧪 Large test sweep across handlers, math, security, and middleware.
- 🧰 CI Workflows for backend builds, Docker images, and staging deploys.
- 📜 Conventions & Docs upgraded: Golang style guidelines, local/stage setup, testing readme.
🐛 Notable Fixes
- 🚫 Prevent intermittent 402 routing errors with improved SPA handling.
- 🔢 Market details now include volume consistency checks in tests.
- 🔁 Consistent GetBetsForMarkets ordering (ascending) across the stack.