perps.fun
About the project
Social perpetuals trading. Sign in, trade crypto perps, copy traders you follow, and post a chart thesis on the market.
Trades execute on Hyperliquid through TrueMarkets. The app keeps the trading keys on the server. A user gets a TrueMarkets account and deposit wallets on first sign-in, then longs and shorts from the site.
What you can do
- Trade. Pick a perp, set margin and leverage, and send a market order with optional take-profit and stop-loss. Live prices and candles come from the TrueMarkets market feed. Only Hyperliquid (HyperCore) USDC counts as margin.
- Copy a trader. From their profile, set a budget in USDC. Nothing is transferred. When they open, add, cut, or close, the same change is placed in your account, sized to the same share of your budget and at their leverage. Your own size and each copied slice stay separate, so you can close one without touching the other. Copies under Hyperliquid’s $10 minimum are skipped.
- Post a thesis. Draw on the chart, add a short caption, and publish a snapshot. It shows up as a marker on that market and on your profile.
- Portfolio. Balances, open positions (yours and copied), who you follow, deposits, and withdrawals.
- Leaderboard. Traders ranked by 24-hour return on equity. Profiles show recent trades and theses.
How it’s built
-
Web (
web/): Next.js app. Google sign-in through Firebase Auth. Markets, chart, order ticket, portfolio, profiles, leaderboard, and thesis pages. -
Backend (
functions/): Firebase Cloud Functions. Onboarding, orders, copy engine, withdrawals, profiles, and theses. A job diffs each account about once a minute so take-profit, stop-loss, and liquidation fills get copied even when nobody placed an order in the app. - Data: Firestore. Clients can read public profiles, trades, theses, and position snapshots. Every write goes through the functions.
Money and access
Deposits land on the wallets TrueMarkets creates (EVM and Solana). Withdrawals send USDC out on the same chain.
Built with
firebasefirestoreapinext.jstypescript
AI tools
Coded with
Claude CodeCursorClaude Opus 5.5Grok 4.7Claude Sonnet 5.5Prize Categories Entered
- Event prizeSubmitted
Best use of True Markets Gateway API