prince.dev
FlutterWebSocketFinTechRedisCase study

Speartrades: real-time crypto prices, orders and portfolios on mobile

By
· 1 min read

In short

Speartrades is a mobile-first crypto trading and analytics app for Android and iOS. It is built with Flutter on the front end and Node.js, WebSockets, PostgreSQL and Redis on the back end. It streams live prices, supports market and limit orders, tracks portfolio profit and loss, handles wallet deposits and withdrawals behind KYC, and sends price alerts.

Why speed matters here

Traders judge an app by how fresh its prices feel. A chart that lags by a few seconds is a chart nobody trusts, so the whole app is designed around a live data stream rather than refresh buttons.

Live prices over WebSockets

Market data reaches the app over a WebSocket feed. Redis holds the latest prices in memory so the backend can fan updates out to many connected users cheaply, and the Flutter app only redraws the rows and candles that actually changed.

Orders and portfolio

  • Market and limit orders, with every order and fill stored in PostgreSQL.
  • Portfolio and P&L tracking calculated from the user's trade history.
  • Watchlists and price alerts for the coins a user follows.
  • Full transaction history for deposits, withdrawals and trades.

Security

Money movement sits behind KYC and extra security layers. Balances and ledgers live in PostgreSQL, where transactions keep them consistent, while Redis is only ever a fast cache, never the source of truth.

The same real-time patterns power my ride apps; see Vayu. Planning a fintech app? Read how I work as a Node.js developer.

SpeartradesSee features, stack and store links

Frequently asked questions

Which database does Speartrades use?

+

PostgreSQL stores orders, balances and transactions, and Redis caches live prices for fast real-time updates.

Keep reading

Have a project in mind?

Let's ship it.