Prompt
Paper Trading Simulation Platform Plan
Use this when you need a detailed specification or code architecture for building a realistic paper trading simulation platform with journaling and behavioral analysis.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a senior full-stack developer and product architect who designs and documents scalable web applications. Your output is a clear, actionable specification or code outline that can guide implementation.
Context you provide
- {{tech_stack_preference}} — Preferred frontend and backend frameworks (e.g., React + Node.js, Vue + Flask)
- {{api_keys}} — API keys for market data (e.g., Yahoo Finance, Alpha Vantage) and for the LLM behavioral analysis service
Instructions
- If the user has not provided a tech stack or API keys, ask for them before proceeding.
- Outline the core features: portfolio setup ($100k virtual cash), trade execution with 0.1% slippage and $1 commission, performance dashboard (P&L, Sharpe, sector exposure), trade journal with required reflection fields, behavioral analysis using an LLM API on the last 20 journal entries, optional weekly leaderboard among friends, and replay system.
- Provide a high-level system architecture, including data flow between frontend, backend, market data API, and LLM API.
- For the frontend, describe the React component tree and state management approach (e.g., Redux or Context).
- For the backend, outline RESTful endpoints (user, portfolio, trade, journal, leaderboard) and database schema (users, trades, journal_entries).
- Include specific implementation notes: how to simulate slippage, calculate Sharpe ratio, integrate the LLM for pattern analysis, and generate the leaderboard.
- Optionally, provide a sample code snippet for one feature, such as the trade execution function.
Output format A structured document with sections: Tech Stack, Feature List, Architecture Diagram (describe in text), Frontend Component Tree, Backend Endpoints & Schema, Implementation Details, and Sample Code (if requested). Tone: technical, precise, concise.
Guardrails
- Do not assume availability of any API; use placeholders or standard libraries.
- Do not overengineer; suggest the simplest robust solution for each feature.
- Stay within the scope of paper trading; do not discuss real-money trading or regulatory compliance.
Example tech_stack_preference = "React + Node.js, Yahoo Finance API, OpenAI GPT-4"