
文档
概览
OpenAlgo的AI动力交易助理平台,能利用机器对话协议(MCP)和大语言模型提供智能交易能力. OpenAlgo MCP通过: 1. 一个将OpenAlgo API功能曝光的MCP服务器集成强大的OpenAlgo交易平台,具有高级AI能力,作为AI交互2的工具. 一个智能客户端应用程序,为交易提供对话界面 这个连接OpenAlgo交易能力与AI的桥梁,可以实现与复杂交易业务的自然语言界面,使所有技术背景的用户更容易获得算法交易.
概述(AI 翻译)
OpenAlgo的AI动力交易助理平台,能利用机器对话协议(MCP)和大语言模型提供智能交易能力.
□ 概览
OpenAlgo MCP整合了强大的OpenAlgo交易平台,其高级AI能力通过:
- 一个MCP服务器,将OpenAlgo API功能曝光为AI交互工具
- 提供交易对话界面的智能客户应用程序
这个连接OpenAlgo交易能力与AI的桥梁,可以实现与复杂交易业务的自然语言界面,使所有技术背景的用户更容易获得算法交易.
□ 关键特性
综合贸易能力
- ** 指令管理**: 在支持各种订单类型(市场、限制、停止损失)的情况下,设置、修改和取消订单
- ** 高级命令类型**:篮子命令、分发命令和有位置尺寸的智能命令
- ** 备选交易**:由自动取款机/ITM/OTM抵消的单列和多列选项订单
- 市场数据访问:实时引文、多引文、市场深度、选项链和历史数据
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
OpenAlgo MCP - AI Trading Assistant
An AI-powered trading assistant platform for OpenAlgo, leveraging Machine Conversation Protocol (MCP) and Large Language Models to provide intelligent trading capabilities.
Overview
OpenAlgo MCP integrates the powerful OpenAlgo trading platform with advanced AI capabilities through:
- An MCP server that exposes OpenAlgo API functions as tools for AI interaction
- An intelligent client application providing a conversational interface for trading
This bridge between OpenAlgo’s trading capabilities and AI allows for a natural language interface to complex trading operations, making algorithmic trading more accessible to users of all technical backgrounds.
Key Features
Comprehensive Trading Capabilities
- Order Management: Place, modify, and cancel orders with support for various order types (market, limit, stop-loss)
- Advanced Order Types: Basket orders, split orders, and smart orders with position sizing
- Options Trading: Single-leg and multi-leg options orders with ATM/ITM/OTM offset support
- Market Data Access: Real-time quotes, multi-quotes, market depth, option chains, and historical data
- Portfolio Management: Track holdings, positions, order books, and trade history
- Account Information: Monitor funds, margins, margin calculator, and trading limits
- Utilities: Trading holidays, market timings, Telegram alerts, analyzer mode
Intelligent Symbol Format Handling
- Smart parsing and formatting of instrument symbols across exchanges
- Support for equity, futures, and options symbology
- Built-in knowledge of common indices and exchange-specific formats
AI-Powered Trading Assistant
- Natural language interface for all trading operations
- Contextual understanding of trading terminology and concepts
- Guided assistance for complex trading operations
- Real-time data presentation in human-readable formats
Project Structure
openalgo-mcp/
├── .env # Common environment configuration
├── .env.example # Example configuration template
├── requirements.txt # Common dependencies for both client and server
├── LICENSE # MIT License
├── server/ # MCP Server implementation
│ ├── server.py # OpenAlgo MCP server code
└── client/ # Client implementation
├── trading_agent.py # AI assistant client code
Installation Guide
Prerequisites
- Python 3.9+ installed
- OpenAlgo platform installed and configured
- OpenAI API key (for the client component)
Step 1: Clone the Repository
git clone https://github.com/marketcalls/openalgo-mcp.git
cd openalgo-mcp/mcpserver
Step 2: Set Up Environment
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
Step 3: Configure Environment Variables
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →