Tradovate MCP Server
Tradovate MCP サーバー
Tradovate APIと連携するためのモデルコンテキストプロトコル(MCP)サーバー。このサーバーは、Tradovateで契約、ポジション、注文、口座を管理するためのツールを提供します。
特徴
Tradovate APIによる認証
キャッシュによるリアルタイムデータ取得
契約の詳細、ポジション管理、注文の配置などのためのツール
API が利用できない場合はシミュレートされたデータにフォールバックします
Related MCP server: Zerodha Kite MCP Server
インストール
リポジトリをクローンする
依存関係をインストールします:
npm installTradovate の資格情報を使用して
.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…
This server cannot be deployed
Maintenance
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