YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Trading Dashboard

A simplified Flask-based trading dashboard inspired by the React trading dashboard project. This version focuses on core functionality without the complexity of the original ui-trading-system.

Features

  • Influencer Management: Register and manage trading influencers
  • Access Control: Private influencer terminals with passcode protection
  • Live P&L Tracking: Real-time profit/loss display for trading positions
  • Order Book: Live order book visualization
  • Recent Trades: Stream of recent trading activity
  • Zerodha Integration: Ready for Zerodha Kite Connect API integration
  • User Authentication: Login system with role-based access

Quick Start

Installation

cd /Users/wkp270/Documents/DNH_Trash/Trash/trading-dashboard
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt

Running the Application

python app.py

The app will start on http://127.0.0.1:5000

Default Admin Credentials

Project Structure

trading-dashboard/
β”œβ”€β”€ app.py                 # Main Flask application
β”œβ”€β”€ requirements.txt       # Python dependencies
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ login.html        # Login page
β”‚   └── dashboard.html    # Main dashboard
β”œβ”€β”€ data/                 # Data storage (JSON files)
β”‚   β”œβ”€β”€ approved_influencers.json
β”‚   β”œβ”€β”€ users.json
β”‚   β”œβ”€β”€ broker_credentials.json
β”‚   └── pending_registrations.json
└── README.md

Key Differences from Original Projects

Compared to React Project (tradewithlive)

  • Simplified Architecture: Flask backend instead of React frontend
  • No Build Process: Direct Python execution, no npm/webpack
  • Same Core Features: Influencer tabs, P&L tracking, access control
  • Mock Data: Includes mock data generation for testing
  • Ready for Zerodha: Structure supports Zerodha integration

Compared to Original Flask Project (ui-trading-system)

  • Removed Complex Trading Logic: No algorithmic trading strategies
  • Simplified Dependencies: Only Flask and Werkzeug required
  • Cleaner UI: Modern dark theme with glassmorphism design
  • Focus on Dashboard: P&L tracking instead of order placement
  • No WebSocket: Uses polling for data updates

API Endpoints

Authentication

  • POST /api/login - User login
  • POST /api/logout - User logout

Influencers

  • GET /api/influencers - Get all influencers
  • POST /api/influencers/register - Register new influencer
  • GET /api/influencer/<id>/data - Get influencer trading data
  • POST /api/influencer/<id>/unlock - Unlock private influencer
  • POST /api/influencer/<id>/lock - Lock private influencer

Broker Integration

  • POST /api/broker/connect - Connect Zerodha broker
  • POST /api/broker/disconnect/<id> - Disconnect broker

Admin

  • GET /api/admin/pending-registrations - Get pending registrations
  • POST /api/admin/approve-registration/<id> - Approve influencer registration

Future Enhancements

  1. Real Zerodha Integration: Connect to actual Kite Connect API
  2. Database: Replace JSON storage with SQLite/PostgreSQL
  3. WebSocket: Add real-time data streaming
  4. More Brokers: Support for other trading platforms
  5. Mobile App: React Native mobile version
  6. Analytics: Advanced P&L analytics and charts

Security Notes

  • Uses session-based authentication
  • Passwords are hashed using Werkzeug
  • Private influencer data requires passcode
  • Admin-only endpoints protected
  • In production, use HTTPS and proper secret key

License

MIT License - Feel free to use and modify as needed.

Support

For issues or questions, refer to the original React project documentation or the ui-trading-system project for Zerodha integration details.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support