Skip to content

sanprat/Findian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

157 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Findian: AI-Powered Market Assistant ๐Ÿ“ˆ๐Ÿค–

Implementation Status License

A conversational fintech platform that allows users to interact with the stock market using natural language via Telegram Bot. Findian bridges professional-grade data with a simple, chat-based interface.

๐Ÿš€ Current Status: 85% Complete

โœ… Completed Features (MVP)

  1. Core Architecture

    • โœ… Microservices: FastAPI Backend + Telegram Bot Frontend
    • โœ… Database: MySQL (Relational) + Redis (Real-time PubSub)
    • โœ… AI Engine: Chutes AI (Llama 3.3) for Intent Parsing & Smart Clarification
  2. Market Data Engine

    • โœ… Robust Feed: Pure Yahoo Finance (yfinance) integration
    • โœ… Hyper-Precision: 1-minute Price + Daily Volume/High/Low accuracy
    • โœ… Resilience: Mock Data simulation during API blackouts
  3. Telegram Interface

    • โœ… Conversational UI: Natural language commands ("Price of Reliance", "Alert if TCS > 3000")
    • โœ… Financial Formatting: Consistent โ‚น1,234.50 format
    • โœ… Interactive Menus: Screener, Portfolio, Disclaimer inline buttons
  4. Core Features

    • โœ… Smart Alerts: Redis-backed instant monitoring
    • โœ… AI Screener: Custom scans ("RSI < 30") + Pre-built strategies
    • โœ… Basic Portfolio: Add/View holdings with real-time P&L

โณ In Progress (Next 15%)

  1. Portfolio Management (Critical)

    • โณ Sell Logic & Position Exit
    • โณ Tax & Fees Calculation
    • โณ Daily Portfolio Reports (5:00 PM cron)
  2. Monetization & Security

    • โณ User Tiers (Free vs Premium limits)
    • โณ Access Control for Pro features
    • โณ API Key Encryption
  3. Cloud Deployment

    • โณ Webhooks for <100ms latency
    • โณ Production Server (AWS/DigitalOcean)

Core Capabilities

โšก Data Engine

  • Primary: Yahoo Finance (yfinance) for 100% uptime and 1-minute precision
  • Stability: Zero-login architecture with no session management required

๐Ÿ”” Intelligent Alerts

  • Redis-backed monitoring system
  • Real-time price target and technical indicator tracking
  • Instant notifications to users

๐Ÿ” Auto-Screener

  • Continuous Nifty 50 scanning
  • Technical signals (RSI, breakouts, volume spikes)
  • Custom AI Scans based on natural language

๐Ÿ› ๏ธ Technology Stack

Component Technology
Frontend Python-Telegram-Bot
Backend FastAPI
AI Engine Chutes AI (Llama 3.3)
Database MySQL + Redis
Data Feeds Yahoo Finance (yfinance)
Container Docker
Memory System Agent Memory for AI persistence

๐Ÿš€ Quick Start

  1. Clone the repository

    git clone http://localhost:8443/sanprat/Findian.git
    cd Findian
  2. Set up environment

    cp .env.example .env
    # Edit .env with your API keys
  3. Run with Docker

    docker-compose up -d
  4. Start the bot

    python bot/main.py
  5. Try commands on Telegram

    • /start - Begin your journey
    • "Price of Reliance" - Get current price
    • "Alert me when TCS crosses 3500" - Set price alert
    • "Show me stocks with RSI < 30" - AI screener

๐Ÿ” Security Checks

Before committing or pushing, run the repo secret scan:

pre-commit run --all-files

.env must remain gitignored and never be committed.

๐Ÿ“‹ Agent Memory System

Findian includes an innovative Agent Memory System that enables AI agents to:

  • Learn from user interactions
  • Remember successful strategies
  • Share knowledge across sessions
  • Maintain project continuity

All AI agents must follow memory guidelines in GEMINI.md

๐Ÿ“ Project Structure

Findian/
โ”œโ”€โ”€ backend/                    # FastAPI backend services
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”‚   โ”œโ”€โ”€ core/              # Core trading logic
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ai.py          # AI and NLP processing
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ market_data.py # Data integration
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ scanner.py     # Auto-screener logic
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ scheduler.py   # Task scheduler
โ”‚   โ”‚   โ”œโ”€โ”€ db/                # Database models
โ”‚   โ”‚   โ””โ”€โ”€ main.py            # FastAPI entry
โ”œโ”€โ”€ bot/                       # Telegram bot frontend
โ”‚   โ””โ”€โ”€ main.py                # Bot logic
โ”œโ”€โ”€ agent_memory.sh            # Memory system
โ”œโ”€โ”€ universal_agent_hooks.py   # Multi-agent integration
โ””โ”€โ”€ docker-compose.yml         # Container orchestration

๐Ÿ”ฎ Roadmap

  • Portfolio sell functionality
  • Tax calculation engine
  • Daily portfolio reports
  • Premium subscription tiers
  • Cloud webhook deployment
  • Mobile app companion

๐Ÿ“Š Usage Examples

Natural Language Commands

User: "What's the price of Infosys?"
Bot: "โ‚น1,456.30 โ–ฒ +12.50 (+0.86%)"

User: "Alert me if Reliance goes above 2500"
Bot: "โœ… Alert set: Notify when RELIANCE > โ‚น2,500"

User: "Show me oversold stocks"
Bot: "๐Ÿ” Found 5 stocks with RSI < 30: [List]"

๐Ÿค Contributing

This project uses AI agent collaboration with memory persistence. All agents follow guidelines in GEMINI.md for consistent development.


Findian: Democratizing algorithmic trading through conversation ๐Ÿ’ฌ๐Ÿ“ˆ

๐Ÿ“œ License

This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.

About

Findian is a conversational fintech platform that allows users to interact with the stock market using natural language via a Telegram Bot. It bridges professional-grade data with a simple, chat-based interface.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors