Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

devBuggs/groww-trading-algo

Repository files navigation

Trading-Algo

Build Security Scan

An automated trading application built with Groww API that enables users to create profit from trading through condition-based buy/sell strategies.

Features

  • 🔐 Multiple authentication methods (Access Token, API Key/Secret, TOTP)
  • 📊 Real-time market data and portfolio tracking
  • 🤖 Condition-based automated trading
  • 📈 Order management (Buy/Sell)
  • 💼 Position and holdings management
  • 🎯 Strategy builder with multiple conditions

Project Structure

This is a monorepo containing:

  • packages/backend - Node.js/Express API server for Groww API integration
  • packages/frontend - React/Vite web application
  • packages/shared - Shared types and utilities
  • packages/trading-engine - Core trading logic and condition evaluation

Getting Started

Prerequisites

  • Node.js >= 18.0.0
  • A Groww account with Trading API subscription
  • API credentials from Groww Trading API

Installation

npm install

Environment Setup

  1. Copy .env.example to .env in the backend package
  2. Add your Groww API credentials

Development

Run both backend and frontend:

npm run dev

Or run individually:

# Backend only
npm run dev --workspace=backend

# Frontend only
npm run dev --workspace=frontend

Authentication

The app supports three authentication methods:

  1. Access Token - Direct token (expires daily at 6:00 AM)
  2. API Key + Secret - Requires daily approval
  3. API Key + TOTP - Uses TOTP code from authenticator app

Trading Features

  • Create custom trading strategies with multiple conditions
  • Automated order placement based on market conditions
  • Real-time portfolio and position tracking
  • Order history and trade analysis

Documentation

Comprehensive documentation is available in the docs/ directory:

License

MIT

About

A personal auto-trading app.

Topics

Resources

Stars

Watchers

Forks

Contributors