openalgo  by marketcalls

Algo trading platform for seamless broker integration

Created 1 year ago
773 stars

Top 45.2% on SourcePulse

GitHubView on GitHub
Project Summary

OpenAlgo is an open-source, Flask-based Python platform designed to simplify algorithmic trading by providing a unified interface for numerous Indian brokers and trading tools. It targets individual traders and developers looking to automate strategies, offering real-time data, order execution, and portfolio management through a user-friendly web UI and a comprehensive RESTful API.

How It Works

OpenAlgo employs a WebSocket architecture with ZeroMQ (ZMQ) for efficient, real-time market data distribution. Broker-specific adapters handle unique protocols and transform data into a unified format, publishing it to a central ZMQ message bus. A proxy server then routes this data to clients. The platform exposes a standardized RESTful API for order management, account inquiries, and market data retrieval, abstracting away broker-specific complexities.

Quick Start & Requirements

  • Install: pip install openalgo
  • Prerequisites: Python 3.x. Broker API keys and credentials are required.
  • Resources: Minimum 0.5GB RAM, 1GB disk space, 1vCPU recommended.
  • Docs: https://docs.openalgo.in/

Highlighted Details

  • Supports over 20 Indian brokers with dedicated adapters.
  • Features an API Analyzer for risk-free strategy testing and validation.
  • Integrates with AI assistants via the Model Context Protocol (MCP) for natural language trading.
  • Includes advanced monitoring tools for latency and traffic analysis.

Maintenance & Community

  • Active development with a Discord community for support and discussion.
  • Links: Discord, Twitter, YouTube

Licensing & Compatibility

  • License: AGPL V3.0.
  • Compatibility: The AGPL license may impose copyleft restrictions on derivative works, potentially requiring modifications to be open-sourced if linked.

Limitations & Caveats

The project is intended for educational purposes, and users trade at their own risk. While it supports numerous brokers, the reliability and feature completeness of each broker adapter may vary. The AGPL V3.0 license requires any modifications or derivative works to be shared under the same license, which may impact commercial or closed-source integrations.

Health Check
Last Commit

19 hours ago

Responsiveness

Inactive

Pull Requests (30d)
41
Issues (30d)
28
Star History
77 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.