Skip to main content
Glama

Tradovate MCP Server

Tradovate MCP 服务器

用于与 Tradovate API 交互的模型上下文协议 (MCP) 服务器。该服务器提供用于管理 Tradovate 中的合约、仓位、订单和账户的工具。

特征

  • 使用 Tradovate API 进行身份验证
  • 通过缓存获取实时数据
  • 合同细节、头寸管理、订单下达等工具
  • 当 API 不可用时,回退到模拟数据

安装

  1. 克隆存储库
  2. 安装依赖项:
npm install
  1. 使用您的 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

可用工具

该服务器提供以下工具:

  1. get_contract_details - 根据代码获取特定合约的详细信息
  2. list_positions - 列出账户的仓位
  3. place_order - 下新订单
  4. modify_order - 修改现有订单
  5. cancel_order - 取消现有订单
  6. liquidate_position - 清算头寸
  7. get_account_summary - 获取帐户摘要信息
  8. 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文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

模型上下文协议服务器可与 Tradovate API 进行交互,以管理交易合约、头寸、订单和账户。

  1. 特征
    1. 安装
      1. 用法
        1. 发展
          1. 项目结构
          2. 建筑
          3. 测试
        2. 可用工具
          1. API 端点
            1. 验证
            2. 合同
            3. 职位
            4. 订单
            5. 账户
            6. 市场数据
          2. 执照

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables Claude to interact with the ConnectWise Manage API to perform operations like retrieving, creating, updating, and deleting tickets, companies, contacts, and other entities.
              Last updated -
              JavaScript
              MIT License
              • Apple
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that enables AI assistants to interact with the Deriv trading API, providing access to active trading symbols and account balance information.
              Last updated -
              2
              Python
              • Apple
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.
              Last updated -
              46
              2
              Python
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that provides tools for interacting with the Paddle Billing API, enabling users to manage products, prices, customers, transactions, subscriptions, and create custom financial reports.
              Last updated -
              8
              43
              19
              TypeScript
              Apache 2.0

            View all related MCP servers

            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