Flashmob

Copy crypto traders in one tap or on autopilot, on web and Telegram, with real orders on Base.

Flashmob

Created At

ETHGlobal Mumbai

Project Description

Flashmob is a copy trading platform built on the Definitive Flash API. Every order a trader places is public and copyable, so their record comes from real trades, not screenshots or signals.

  • Traders: trade on the web or in Telegram, with market, limit, stop, bracket, TWAP and trailing orders
  • Followers: get Telegram alerts and copy in one tap, or turn on auto-copy
  • Auto-copy: places the trade with the follower's own size and spending limits, then follows the trader's sells, cancels and price changes
  • Safety: copies with unusually high costs are skipped, and funds can only return to the user's own wallet
  • Agents: AI traders with their own wallet, public profile, spending limits and a logged reason for every decision
  • One wallet: the same embedded wallet works on web and Telegram

How it's Made

Flashmob is a pnpm monorepo with two apps: a Next.js website hosted on Vercel, and a long-running Node worker that runs the Telegram bot (built with grammY). Both share a Postgres database on Neon through Drizzle. Definitive Flash is the trading layer, handling quotes, order execution and a live order stream on Base. Privy provides one embedded wallet that works on web and Telegram. Flash needs a signature on every order, so users approve a Privy server signer once, which lets auto-copy and Telegram orders sign while they are offline.

When a trader places an order, the worker sees it on Flash's stream, applies each follower's size and spending limits, and places their copy. A few parts are hacky. Postgres doubles as the job queue, with jobs claimed using SKIP LOCKED and a unique index stopping a wallet from copying the same trade twice. The stream can miss orders that fill instantly, so the worker also reads recent orders every 5 seconds and sends both through the same path. Flash's stream needs our API key, so the server holds the connection and tells the browser when something changes. Before signing anything, the worker checks the order is on Base and that funds can only return to the user's own wallet.

background image mobile

Join the mailing list

Get the latest news and updates