Next.js Interface Shell
The platform repository contains dashboard, status, orders, positions, PnL, logs, and prompt surfaces backed by React Query, local state, typed client helpers, and schema validation.
Technical Deep Dive
Simulation-first AI trading decision support system.
Crypto Copilot is a full-stack trading copilot prototype designed around a safe boundary: market analysis and structured trade planning are allowed; live execution is not. The system combines a Next.js interface shell with a typed FastAPI backend that normalizes exchange market data, generates schema-constrained AI trade plans, validates those plans against guardrails, and routes them into simulation-only execution.
The system explores the right boundary for financial AI: structured decision support over real market context, with validation before anything reaches even simulated execution.
AI trading demos often collapse into two bad patterns: vague chatbot advice or unsafe agent places trades automation. Crypto Copilot explores a better architecture: use AI for structured decision support while keeping execution constrained, inspectable, and simulation-only. The engineering challenge is to connect market context, typed APIs, schema-constrained LLM output, validation guardrails, and a frontend workflow without pretending the prototype is a production trading platform.
The platform repository contains dashboard, status, orders, positions, PnL, logs, and prompt surfaces backed by React Query, local state, typed client helpers, and schema validation.
The API exposes public health and market-data routes plus protected LLM decision and execution-simulation routes behind X-Demo-Api-Key.
Services normalize BYBIT spot candles, order books, recent trades, and read-only DEX snapshots into structured Pydantic models.
LLM decisions are schema-constrained and validated before they can be submitted to simulated execution; no exchange-write path or live trading is implemented.
System Flow
Fetch BYBIT spot market context through CCXT-backed services.Normalize candles, order book, and recent trades into typed models.Generate a schema-constrained AI trade plan from structured context.Validate the plan against Pydantic contracts and guardrails.Submit only to simulation endpoints; live exchange writes stay out of scope.The AI component is treated as a decision-support module, not an autonomous trader. It receives structured market context and produces a schema-constrained trade plan. That output is validated before it can move into the execution simulator. This is the correct boundary for a credible financial AI prototype: AI can reason over context, the API constrains output shape, guardrails validate the plan, execution remains simulated, and no real credentials or exchange-write paths are required.
Crypto Copilot intentionally does not implement live trading, account management, broker writes, production-grade user authentication, or production trading guarantees. That restraint is part of the architecture. The project focuses on backend/API judgment, safe AI integration, typed contracts, market-data normalization, and trading workflow design while keeping real-money execution outside the system.
Crypto Copilot demonstrates that I can build AI-assisted systems in a domain where correctness and safety matter. It connects my professional exposure to crypto and trading environments with product engineering: market data ingestion, typed service design, structured AI output, validation, simulation boundaries, and a user-facing copilot workflow.