Tradovate MCP サーバー
Tradovate APIと連携するためのモデルコンテキストプロトコル(MCP)サーバー。このサーバーは、Tradovateで契約、ポジション、注文、口座を管理するためのツールを提供します。
特徴
Tradovate APIによる認証
キャッシュによるリアルタイムデータ取得
契約の詳細、ポジション管理、注文の配置などのためのツール
API が利用できない場合はシミュレートされたデータにフォールバックします
インストール
リポジトリをクローンする
依存関係をインストールします:
Tradovate の資格情報を使用して
.envファイルを作成します。
使用法
サーバーを起動します。
または、MCP Inspector と一緒に使用します。
発達
プロジェクト構造
src/index.ts- メインサーバーのエントリポイントsrc/auth.ts- 認証関数src/data.ts- データの取得とキャッシュsrc/tools.ts- MCP のツールハンドラーsrc/types.ts- TypeScript 型定義tests/- テストファイル
建物
テスト
テストを実行します:
カバレッジ付きのテストを実行します。
カバレッジバッジを生成:
利用可能なツール
サーバーは次のツールを提供します。
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
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityA 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 -
- -securityAlicense-qualityA 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.Last updated -33MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that enables AI models to interact with the Monad testnet for checking token balances, sending transactions, and deploying smart contracts.Last updated -78Apache 2.0
- -securityAlicense-qualityA Model Context Protocol server that enables AI models to interact with the Zerodha trading platform, allowing users to execute trades, view portfolio holdings, and manage positions through a standardized interface.Last updated -2MIT License