Skip to main content
Prompts React Paper Trading Simulator Builder

developer coding developer risk: medium

React Paper Trading Simulator Builder

Build a paper trading simulation platform called 'Paper' with portfolio setup, trade execution, performance dashboard, trade journal, behavioral analysis using LLM API, and leaderb…

  • Policy sensitive
  • Human review
  • External action: medium

PROMPT

Build a paper trading simulation platform called "Paper" — a realistic, risk-free environment for learning to trade and invest.

Core features:
- Portfolio setup: user starts with $100,000 in virtual cash. Real-time stock and ETF prices via Yahoo Finance or Alpha Vantage API
- Trade execution: market and limit orders supported. Simulate 0.1% slippage on market orders. Commission of $1 per trade (realistic friction without being punitive)
- Performance dashboard: P&L chart (daily), total return, annualized return, win rate, average gain and loss, Sharpe ratio, and current sector exposure — all updated with each trade. Built with recharts
- Trade journal: required field on every position close — "What was my thesis entering this trade? What happened? What will I do differently?" Three fields, each max 200 characters. Cannot close a position without completing the journal
- Behavioral analysis: [LLM API] analyzes the last 20 trade journal entries and identifies recurring behavioral patterns — "You consistently exit winning positions early when they approach round-number price levels" — surfaced monthly
- Leaderboard: optional, weekly-resetting leaderboard among friend groups — ranked by risk-adjusted return, not raw P&L

Stack: React, Yahoo Finance or Alpha Vantage for market data, [LLM API] for behavioral analysis, recharts. Terminal-inspired design — data dense, no decorative elements.

OPTIONAL CONTEXT

  • friend groups for leaderboard

EXPECTED OUTPUT

Format
markdown
Constraints
  • terminal-inspired design
  • data dense, no decorative elements
  • integrate Yahoo Finance or Alpha Vantage API
  • use recharts for dashboard
  • use LLM API for behavioral analysis

SUCCESS CRITERIA

  • Implement portfolio setup with $100,000 virtual cash and real-time prices
  • Support market and limit orders with 0.1% slippage and $1 commission
  • Build performance dashboard with P&L chart, returns, win rate, Sharpe ratio using recharts
  • Require trade journal entries on position close
  • Integrate LLM for behavioral analysis of trade journals
  • Add optional weekly-resetting leaderboard by risk-adjusted return
  • Use React, market data APIs, recharts with terminal-inspired design

FAILURE MODES

  • Might implement punitive commissions or excessive friction
  • Could allow position closes without journal completion
  • May add decorative UI elements instead of data-dense terminal design
  • Risk incorrect performance metric calculations like Sharpe ratio
  • Potential issues with real-time API integration or rate limits
  • Incomplete behavioral pattern detection in LLM analysis

CAVEATS

Missing context
  • Database/storage for portfolios, trades, journals, leaderboards.
  • User authentication and account management.
  • API key handling for Yahoo Finance/Alpha Vantage.
  • Deployment/hosting instructions.
  • Error handling and edge cases (e.g., market hours, invalid orders).
Ambiguities
  • [LLM API] is a placeholder without specific service or integration details.
  • 'Real-time' prices unspecified (polling interval, websockets, etc.).
  • 'Friend groups' for leaderboard: creation, joining, privacy unspecified.
  • 'Terminal-inspired design' lacks precise style guidelines (fonts, colors, layout).

QUALITY

OVERALL
0.70
CLARITY
0.90
SPECIFICITY
0.80
REUSABILITY
0.15
COMPLETENESS
0.65

IMPROVEMENT SUGGESTIONS

  • Specify [LLM API] as e.g., OpenAI with a sample prompt for behavioral analysis.
  • Add database recommendation, e.g., 'Use Supabase for Postgres + auth'.
  • Detail real-time data: 'Poll Yahoo Finance every 30 seconds via API'.
  • Include authentication: 'Integrate Clerk for user auth and friend groups'.
  • Provide UI mockup descriptions or component breakdowns for dashboard/journal.

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR DEVELOPER