Tradovate MCP Server
Tradovate MCP 服务器
用于与 Tradovate API 交互的模型上下文协议 (MCP) 服务器。该服务器提供用于管理 Tradovate 中的合约、仓位、订单和账户的工具。
特征
使用 Tradovate API 进行身份验证
通过缓存获取实时数据
合同细节、头寸管理、订单下达等工具
当 API 不可用时,回退到模拟数据
Related MCP server: Alpaca Trading 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文件。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.58MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that interfaces with Alpaca trading API, allowing users to manage portfolios, place trades, and access market data through natural language interactions.836MIT
- FlicenseNot gradedqualityDmaintenanceImplements a Model Context Protocol server that connects with Zerodha Kite API, allowing users to buy/sell stocks and retrieve holdings and positions information.1
- 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
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexanimal/tradovate-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server