CodeLessQuant is a low-code, modular platform that empowers users to visually create, backtest, and analyze algorithmic trading strategies — no coding required. It features a drag-and-drop Blockly editor, a FastAPI backend, and intuitive performance visualization tools. Built for retail traders with minimal coding experience.
- Drag-and-drop strategy builder using custom indicator/action blocks
- JSON generation for backend strategy processing
- Powerful backtesting engine with:
- Sharpe Ratio
- Win Rate
- Equity Curve
- Live stock price preview
- JWT-based user authentication (Register/Login)
- Clean, modular codebase (React + FastAPI)
CodeLessQuant/
├── frontend/ # React + Blockly
└── backend/ # FastAPI app
| File | Description |
|---|---|
BlocklyEditor.js |
Visual editor with custom blocks (RSI, SMA, EMA, MACD, BUY, SELL) |
customBlocks.js |
Defines custom Blockly trading blocks |
jsonGenerator.js |
Converts blocks into structured strategy JSON |
MetricsTable.js |
Displays performance metrics |
EquityChart.js |
Shows profit/loss equity curve |
LoginPage.js & RegisterPage.js |
Handles user authentication |
LivePriceViewer.jsx |
Real-time stock price display |
| File | Description |
|---|---|
main.py |
Entry point for FastAPI |
routes/backtest.py |
Handles /backtest and /live-price APIs |
routes/auth.py |
Handles /register and /login APIs |
services/backtester.py |
Runs strategy backtest |
services/data_fetcher.py |
Fetches historical stock data (Yahoo Finance) |
services/auth_service.py |
Handles user registration & JWT login |
models/strategy_model.py |
Strategy JSON Pydantic schema |
models/user_model.py |
User schema for auth |
utils/indicators.py |
Technical indicator functions |
| Method | Endpoint | Description |
|---|---|---|
POST |
/backtest |
Submit strategy JSON for backtesting |
GET |
/live-price/{ticker} |
Get real-time price of a stock |
POST |
/register |
Create a new user |
POST |
/login |
Authenticate and receive JWT token |
- RSI (Relative Strength Index)
- SMA (Simple Moving Average)
- EMA (Exponential Moving Average)
- MACD (Moving Average Convergence Divergence)
- Bollinger Bands
- ATR (Average True Range)
cd backend
pip install -r requirements.txt
uvicorn main:app --reloadSECRET_KEY=your_secret_key
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=60
cd frontend
npm install
npm start- Lavisha Kapoor (22112061)
- Kanishka Soni (22112050)
- Soumya Kumari (22322027)


