Tradovate MCP Server
Tradovate MCP 服务器
用于与 Tradovate API 交互的模型上下文协议 (MCP) 服务器。该服务器提供用于管理 Tradovate 中的合约、仓位、订单和账户的工具。
特征
使用 Tradovate API 进行身份验证
通过缓存获取实时数据
合同细节、头寸管理、订单下达等工具
当 API 不可用时,回退到模拟数据
Related MCP server: Zerodha Kite MCP Server
安装
克隆存储库
安装依赖项:
npm install使用您的 Tradovate 凭证创建一个
.env文件:
TRADOVATE_API_ENVIRONMENT=demo
TRADOVATE_USERNAME=your_username
TRADOVATE_PASSWORD=your_password
TRADOVATE_APP_ID=Sample App
TRADOVATE_APP_VERSION=1.0
TRADOVATE_CID=your_cid
TRADOVATE_SEC=your_sec用法
启动服务器:
npm start或者与 MCP Inspector 一起使用:
npm run inspector发展
项目结构
src/index.ts- 主服务器入口点src/auth.ts- 身份验证函数src/data.ts- 数据获取和缓存src/tools.ts- MCP 的工具处理程序src/types.ts- TypeScript 类型定义tests/——测试文件
建筑
npm run build测试
运行测试:
npm test运行覆盖测试:
npm run test:coverage生成覆盖徽章:
npm run coverage:badge可用工具
该服务器提供以下工具:
get_contract_details- 根据代码获取特定合约的详细信息list_positions- 列出账户的仓位place_order- 下新订单modify_order- 修改现有订单cancel_order- 取消现有订单liquidate_position- 清算头寸get_account_summary- 获取帐户摘要信息get_market_data- 获取市场数据(报价、DOM、图表)
API 端点
服务器与以下 Tradovate API 端点交互:
验证
/auth/accessTokenRequest- 获取访问令牌/auth/renewAccessToken- 更新访问令牌
合同
/contract/list列出所有合同/contract/find查找特定合同
职位
/position/list– 列出所有职位
订单
/order/list– 列出所有订单/order/placeOrder– 下新订单/order/modifyOrder– 修改现有订单/order/cancelOrder– 取消现有订单/order/liquidatePosition- 清算头寸
账户
/account/list– 列出所有账户/account/find查找特定帐户/cashBalance/getCashBalanceSnapshot- 获取账户的现金余额
市场数据
/md/getQuote获取报价数据/md/getDOM获取市场深度数据/md/getChart获取图表数据
执照
MIT 许可证
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
Model Context Protocol server for todo.vu task management and time tracking.
Model Context Protocol server for Studex tools, notifications, and profile integrations
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA server that implements the Model Context Protocol for Schwab API, allowing access to account information, positions, stock quotes, and order/transaction history designed for integration with Large Language Models.72MIT
- AlicenseNot gradedqualityDmaintenanceImplements a Model Context Protocol server that connects with Zerodha Kite API, allowing users to buy/sell stocks and retrieve holdings and positions information.1ISC
- FlicenseBqualityDmaintenanceA Model Context Protocol server that enables users to interact with Polygon.io API for retrieving financial market data including ticker details, quotes, aggregates, market status and news.81-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that integrates with Zerodha APIs for automated trading, providing tools for authentication, market data retrieval, order placement, and portfolio management.MIT