longbridge
OfficialLongbridge証券の公式MCPサーバーです。リアルタイム相場、オプション、注文ルーティング、ファンダメンタルズ、アナリスト評価、カレンダー、価格アラート、DCAプラン、ポートフォリオ分析、コミュニティシェアリストなど、米国および香港市場をカバーする110種類のツールを提供します。rmcpとaxumを使用してRustで構築されています。
特徴
110種類のMCPツール:相場、取引、ファンダメンタルズ、市場データ、カレンダー、ポートフォリオ、アラート、コンテンツ、口座明細、DCA、コミュニティシェアリストの11カテゴリー
ステートレスアーキテクチャ -- 各リクエストはLongbridge SDKに直接転送されるBearerトークンを保持し、サーバー側のセッションやデータベースは使用しません
OAuth 2.1リソースメタデータ -- RFC 9728に準拠し、クライアントをLongbridge OAuth認証へ誘導します
JSONレスポンス変換 -- フィールド名をsnake_caseに正規化、タイムスタンプをRFC 3339に変換、内部のcounter_id値を人間が読み取れるシンボルにマッピング
Prometheusメトリクス -- ツール呼び出し、レイテンシ、エラーの監視
設定可能 -- CLI引数またはJSON設定ファイルで設定可能(CLIが優先)
Related MCP server: Finance MCP
MCPクライアントからの接続
Longbridgeは https://openapi.longbridge.com/mcp でホストされたエンドポイントを運用しているため、ほとんどのユーザーは独自のサーバーを構築する必要はありません。MCPクライアントをこのエンドポイントに向けるだけで、プロンプトに従ってOAuthを完了できます。認証はRFC 9728を通じて自動的に検出されます。
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) またはお使いのOSの同等のファイルに追加してください:
{
"mcpServers": {
"longbridge": {
"url": "https://openapi.longbridge.com/mcp"
}
}
}Claude Desktopを再起動してください。最初のツール呼び出し時にブラウザが開き、Longbridge OAuthフローが完了します。
Claude Code
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcpCursor / Cline / Windsurf / その他のMCPクライアント
トランスポートに streamable-http を使用し、クライアントを https://openapi.longbridge.com/mcp に向けてください。OAuthはRFC 9728を通じて自動的に検出されるため、手動でのトークン入力は不要です。
セルフホスティング
独自のインスタンスを実行したい場合は、Dockerを使用するか、ソースからビルドしてください。
Docker (推奨)
docker run -p 8443:8443 \
-v /path/to/certs:/certs:ro \
ghcr.io/longbridge/longbridge-mcp \
--bind 0.0.0.0:8443 \
--base-url https://mcp.example.com \
--tls-cert /certs/cert.pem \
--tls-key /certs/key.pem重要: パブリックネットワークにデプロイする場合は、
--base-urlにサーバーの外部からアクセス可能なURL(例:https://mcp.example.com)を必ず設定してください。このURLはOAuth保護リソースメタデータで返され、MCPクライアントが認証サーバーを検出するために使用されます。設定されていない場合、デフォルトでhttp://localhost:{port}となり、リモートクライアントからは機能しません。
ソースからビルド
cargo build --release
./target/release/longbridge-mcp設定
~/.longbridge/mcp/config.json に設定ファイルを作成します(オプション):
{
"bind": "127.0.0.1:8000",
"base_url": "https://mcp.example.com",
"log_dir": "/var/log/longbridge-mcp"
}設定
オプション | 設定キー | CLIフラグ | デフォルト | 説明 |
バインドアドレス |
|
|
| HTTPサーバーの待受アドレス |
ベースURL |
|
| 自動 | リソースメタデータ用の公開ベースURL |
ログディレクトリ |
|
| (stderr) | ローリングログファイル用ディレクトリ |
TLS証明書 |
|
| (なし) | HTTPS用PEM証明書ファイル |
TLS秘密鍵 |
|
| (なし) | HTTPS用PEM秘密鍵ファイル |
CLI引数は設定ファイルの値よりも優先されます。設定ファイルは ~/.longbridge/mcp/config.json から読み込まれます(LONGBRIDGE_MCP_CONFIG_DIR で上書き可能)。
tls_cert と tls_key の両方が設定されている場合、サーバーはHTTPSで実行されます。それ以外の場合はHTTPにフォールバックします。base_url はTLS有効時は https://localhost:{port}、無効時は http://localhost:{port} がデフォルトとなります。
環境変数
これらは高度な設定であり、ほとんどのユーザーは変更する必要はありません。主に非本番環境のLongbridgeへの接続や、SDK内部のデバッグに役立ちます。
変数 | デフォルト | 説明 |
|
| 設定ファイルディレクトリ |
|
| Longbridge APIベースURL(OAuthメタデータにも使用) |
|
| 相場WebSocketエンドポイント |
|
| 取引WebSocketエンドポイント |
| (なし) | SDK内部ログパス |
認証
サーバーは Authorization: Bearer <token> ヘッダーでLongbridge OAuthアクセストークンを期待します。認証が欠落または無効な場合、401エラーを返し、保護リソースメタデータエンドポイントを指す WWW-Authenticate ヘッダーを返します。これにより、MCPクライアントはLongbridge OAuth認証サーバーへ誘導されます。
Claude Codeとの統合
接続 → Claude Code にあるワンライナーで接続できます。以下は、このサーバーを使用して開発する際に使用する追加コマンドです。
# Hosted — use this unless you have a reason not to
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp
# Local self-hosted instance (see Self-hosting above)
claude mcp add --transport http longbridge-local http://localhost:8000/mcp
# Inspect
claude mcp list # registered servers
claude mcp get longbridge # config + auth status of one server
claude mcp remove longbridge # unregister
# Re-trigger OAuth (e.g. after token revocation on the Longbridge side)
claude mcp logout longbridge最初のツール呼び出し時に、Claude Codeはサーバーから WWW-Authenticate チャレンジを読み取り、/.well-known/oauth-protected-resource (RFC 9728) を取得し、Longbridge OAuthフローのためにブラウザを開きます。アクセストークンはセッションごとにキャッシュされ、自動的に更新されます。
APIエンドポイント
メソッド | パス | 説明 |
GET |
| 保護リソースメタデータ (RFC 9728) |
GET |
| Prometheusメトリクス |
POST/GET/DELETE |
| MCP Streamable HTTPエンドポイント (Bearerトークンが必要) |
ツールカテゴリー
カテゴリー | 数 | 説明 |
Quote | 32 | リアルタイム/過去の相場、ローソク足、板情報、ブローカー、オプション、ワラント、ウォッチリスト、資金フロー、市場温度、空売り残高、オプション出来高 |
Trade | 14 | 注文の送信/キャンセル/変更、建玉、残高、約定、キャッシュフロー、証拠金 |
Fundamental | 18 | 財務報告、アナリスト評価、配当、EPS予想、バリュエーション、企業情報、株主、コーポレートアクション |
Market | 9 | 市場状況、ブローカー保有状況、A/H株プレミアム、取引統計、異常値、指数構成銘柄 |
Content | 8 | ニュース、ディスカッショントピック、開示情報詳細 |
DCA | 9 | ドルコスト平均法プランの作成/更新/一時停止/再開/停止、実行履歴、統計、サポート確認 |
Sharelist | 8 | コミュニティシェアリストのCRUD、メンバー追加/削除/並べ替え、人気リスト |
Alert | 5 | 価格アラートのCRUD (追加、削除、有効化、無効化、一覧) |
Portfolio | 3 | 為替レート、損益分析(日付範囲指定可能) |
Statement | 2 | 口座明細の一覧表示とエクスポート |
Calendar | 1 | 財務カレンダーイベント (決算、配当、IPO、マクロデータ、市場休場日) |
Utility | 1 | 現在のUTC時刻 |
Prometheusメトリクス
メトリクス | タイプ | 説明 |
| カウンター | ツール呼び出し総数 (ラベル: |
| ヒストグラム | ツール呼び出しレイテンシ (ラベル: |
| カウンター | ツール呼び出しエラー数 (ラベル: |
プロジェクト構造
src/
main.rs CLI args, config loading, axum server setup
auth/
mod.rs Router composition, MCP service wiring
metadata.rs Protected Resource Metadata (RFC 9728)
middleware.rs Bearer token extraction middleware
tools/
mod.rs MCP tool definitions and ServerHandler impl
quote.rs Quote tools (SDK QuoteContext)
trade.rs Trade tools (SDK TradeContext)
fundamental.rs Fundamental data (HTTP API)
market.rs Market data extensions (HTTP API)
calendar.rs Finance calendar (HTTP API)
portfolio.rs Portfolio analytics (HTTP API)
dca.rs Dollar-cost averaging / recurring investment (HTTP API)
sharelist.rs Community sharelist management (HTTP API)
alert.rs Price alerts (HTTP API)
content.rs News, topics, filings (SDK ContentContext + HTTP)
statement.rs Account statements (HTTP API)
http_client.rs Shared HTTP client helpers
parse.rs Parameter parsing helpers
serialize/ JSON transformation (snake_case, timestamps, counter_id -> symbol)
counter.rs Symbol <-> counter_id bidirectional conversion
metrics.rs Prometheus metric definitions and /metrics handler
error.rs Unified error type (thiserror)開発
# Format
cargo +nightly fmt
# Lint
cargo clippy
# Test
cargo testライセンス
詳細は LICENSE を参照してください。
Available Tools
193 toolsaccount_balanceAccount BalanceARead-onlyIdempotentInspect
Get account cash balance and asset summary. Returns balances[]{currency, total_cash, max_finance_amount, remaining_finance_amount, risk_level, margin_call}. Filter by currency (e.g. "USD", "HKD").
Inputs: _jq, currency.
alert_addAdd Price AlertAInspect
Add a price alert. condition: price_rise/price_fall (absolute price) or percent_rise/percent_fall (relative %). frequency: once/daily/every. Returns created alert object.
Inputs: price (required), symbol (required), condition (required), _jq, +1 more.
alert_deleteDelete Price AlertADestructiveIdempotentInspect
Delete a price alert by alert_id (numeric string from alert_list). Returns upstream API response on success; errors if alert_id is invalid.
Inputs: alert_id (required), _jq.
alert_disableDisable Price AlertAIdempotentInspect
Disable a price alert by alert_id. Use alert_list to find the numeric alert_id.
Inputs: alert_id (required), _jq.
alert_enableEnable Price AlertAIdempotentInspect
Enable a price alert by alert_id. Use alert_list to find the numeric alert_id.
Inputs: alert_id (required), _jq.
alert_listList Price AlertsCRead-onlyIdempotentInspect
Get all configured price alerts.
Inputs: _jq.
anomalyMarket AnomalyARead-onlyIdempotentInspect
Get market anomaly alerts (unusual price/volume changes). market: HK/US/CN/SG. symbol: optional, filter to a specific stock. count: results per page (default 50, max 100).
Inputs: market (required), _jq, count, symbol.
bank_cardsBank CardsARead-onlyIdempotentInspect
List linked withdrawal bank cards for the current account. Returns cards[]{id, bank_name, account_number (masked), currency, status}.
Inputs: _jq.
broker_holdingBroker HoldingARead-onlyIdempotentInspect
Get top broker holding data for a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure).
Inputs: symbol (required), _jq, period.
broker_holding_dailyBroker Holding (Daily)ARead-onlyIdempotentInspect
Get daily holding history for a specific broker (by broker_id) in a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure).
Inputs: symbol (required), broker_id (required), _jq.
broker_holding_detailBroker Holding DetailARead-onlyIdempotentInspect
Get full broker holding detail list for a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure).
Inputs: symbol (required), _jq.
brokersBroker QueueARead-onlyIdempotentInspect
Get broker queue (HK stocks only). Map broker IDs to names via participants.
Inputs: symbol (required), _jq.
business_segmentsBusiness SegmentsARead-onlyIdempotentInspect
Get current-period business segment revenue breakdown for a symbol (name, percent, total, currency)
Inputs: symbol (required), _jq.
business_segments_historyBusiness Segments HistoryARead-onlyIdempotentInspect
Get historical business segment revenue trends (by period and category).
Inputs: symbol (required), _jq, cate, report.
calc_indexesCalc IndexesARead-onlyIdempotentInspect
Calculate financial indexes for symbols. Pass symbols, and optionally indexes (e.g. ["PeTtmRatio","PbRatio","LastDone","TurnoverRate"]). When indexes is omitted or empty, defaults to ["LastDone","ChangeValue","ChangeRate","Volume","PeTtmRatio","PbRatio","DividendRatioTtm","TurnoverRate","TotalMarketValue"]. Returns per-symbol index values. When Greek indexes (Delta, Gamma, Theta, Vega, Rho) are requested, they are normalized: theta is the per-day value (one day's time decay), vega is the price change per 1% change in implied volatility, and rho is the price change per 1% change in the risk-free interest rate.
Inputs: symbols (required), _jq, indexes.
cancel_orderCancel OrderADestructiveIdempotentInspect
Cancel an open order by order_id. Returns plain text "order cancelled" on success; errors if the order is already filled or cancelled. TWO-STEP CONFIRMATION IS MANDATORY: this tool is a DRY RUN unless you pass the confirmation_code its own dry run returned. Call it first without execute, show the returned preview to the user, and only call it again with execute="<confirmation_code>" after the user has explicitly confirmed that exact order. The code is derived from the order itself, so it applies only to that exact order. Never quote it back on your own initiative, and never in the same turn the user first asks. The dry run also echoes the order being targeted so the user can verify it is the right one. Set is_attached=true to cancel a single take-profit/stop-loss leg by its own order_id; cancelling a parent order cancels its legs along with it.
Inputs: order_id (required), _jq, execute, is_attached.
candlesticksCandlesticksARead-onlyIdempotentInspect
Get candlestick data (OHLCV). Only symbol is required; period defaults to day, count to 100 (max 1000), forward_adjust to false, trade_sessions to all. period: 1m/5m/15m/30m/60m/day/week/month/year. trade_sessions: intraday/all. If the account's entitlement caps out below the requested count, this returns as many candles as allowed instead of erroring — check the returned array length against count if an exact number matters.
Inputs: symbol (required), _jq, count, period, +2 more.
capital_distributionCapital DistributionARead-onlyIdempotentInspect
Get capital distribution for a symbol. data_available is false for symbols with no capital-flow data (e.g. indices) — the other fields are still present but meaningless zeros in that case.
Inputs: symbol (required), _jq.
capital_flowCapital FlowBRead-onlyIdempotentInspect
Get capital inflow/outflow time series. Returns items[]{timestamp, inflow, outflow, net_flow} for the symbol (same-day data).
Inputs: symbol (required), _jq.
cash_flowCash FlowBRead-onlyIdempotentInspect
Get cash flow records (deposits, withdrawals, dividends). Returns items[]{transaction_type, amount, currency, balance, created_at, remark}. start_at/end_at in RFC3339.
Inputs: end_at (required), start_at (required), _jq.
companyCompany ProfileARead-onlyIdempotentInspect
Get company overview. US accounts querying a .US symbol get a US-specific variant (intro, market_cap, top_rank_tags, sharelist, detail_url). The region is detected from the account automatically.
Inputs: symbol (required), _jq.
consensusAnalyst ConsensusARead-onlyIdempotentInspect
Get financial consensus estimates for upcoming periods. US accounts querying a .US symbol get a US-specific variant (ai_summary plus a details[] list per period, instead of items[]). The region is detected from the account automatically.
Inputs: symbol (required), _jq.
constituentIndex Constituents / ETF Asset AllocationARead-onlyIdempotentInspect
Get the constituents of an index or the asset allocation of an ETF. For an index (e.g. HSI.HK, .DJI.US) returns constituents[]{symbol, name, last_done, change_rate, market_cap, weight}. For an ETF (e.g. QQQ.US, 2800.HK) returns the asset allocation as info[] grouped by asset_type: 1=Holdings (top constituents with code, symbol, holding_detail), 2=Regional (country/region breakdown), 3=AssetClass (stock/bond/cash etc.), 4=Industry (sector breakdown). Each group has report_date and lists[]{name, position_ratio, name_locales}; Holdings groups additionally include code, symbol and holding_detail{industry_name, index_name, holding_type_name}.
Inputs: symbol (required), _jq.
corp_actionCorporate ActionsBRead-onlyIdempotentInspect
Get corporate actions (splits, buybacks, name changes).
Inputs: symbol (required), _jq.
create_watchlist_groupCreate Watchlist GroupBInspect
Create a new watchlist group. Optionally pass securities (e.g. ["AAPL.US", "700.HK"]) to pre-populate.
Inputs: name (required), _jq, securities.
dca_checkCheck DCA SupportARead-onlyIdempotentInspect
Check whether given symbols support DCA recurring investment.
Inputs: symbols (required), _jq.
dca_createCreate DCA PlanAInspect
Create a DCA recurring investment plan. frequency: Daily/Weekly/Monthly. day_of_week (Weekly): Mon/Tue/Wed/Thu/Fri. day_of_month (Monthly): 1-28.
Inputs: amount (required), symbol (required), frequency (required), _jq, +3 more.
dca_historyDCA Execution HistoryARead-onlyIdempotentInspect
Get execution history records for a DCA plan by plan_id.
Inputs: plan_id (required), _jq, page, limit.
dca_listList DCA PlansARead-onlyIdempotentInspect
List DCA recurring investment plans. Filter by status (Active/Suspended/Finished) or symbol.
Inputs: _jq, page, limit, status, +1 more.
dca_pausePause DCA PlanAIdempotentInspect
Pause (suspend) a DCA plan by plan_id. The plan stops executing until resumed. Returns upstream API response. Use dca_resume to restart.
Inputs: plan_id (required), _jq.
dca_resumeResume DCA PlanAIdempotentInspect
Resume a suspended DCA plan by plan_id. Resumes automated execution on the configured schedule. Returns upstream API response.
Inputs: plan_id (required), _jq.
dca_statsDCA StatisticsCRead-onlyIdempotentInspect
Get DCA investment statistics.
Inputs: _jq, symbol.
dca_stopStop DCA PlanADestructiveIdempotentInspect
Permanently stop a DCA plan by plan_id. This cannot be undone. To temporarily pause, use dca_pause instead. Returns upstream API response.
Inputs: plan_id (required), _jq.
dca_updateUpdate DCA PlanADestructiveIdempotentInspect
Update an existing DCA plan by plan_id. Can change amount, frequency (Daily/Weekly/Monthly), day_of_week (Mon-Fri), or day_of_month (1-28). Returns updated plan.
Inputs: plan_id (required), _jq, amount, frequency, +3 more.
delete_watchlist_groupDelete Watchlist GroupADestructiveIdempotentInspect
Delete a watchlist group by id (numeric). Set purge=true to also remove its securities from all other groups.
Inputs: id (required), purge (required), _jq.
depositsDepositsARead-onlyIdempotentInspect
List deposit history for the current account. Returns items[]{id, amount, currency, status, created_at, updated_at}. states: comma-separated (Pending/Finished/Failed). currencies: comma-separated codes.
Inputs: _jq, page, size, states, +1 more.
depthOrder Book DepthBRead-onlyIdempotentInspect
Get order book depth for a symbol. Up to 10 price levels.
Inputs: symbol (required), _jq.
dividendDividendARead-onlyIdempotentInspect
Get dividend history for the symbol. US accounts querying a .US symbol get a US-specific variant (e.g. dividend_yield_ttm is a percent value: 0.34 means 0.34%). The region is detected from the account automatically.
Inputs: symbol (required), _jq.
dividend_detailDividend DetailBRead-onlyIdempotentInspect
Get detailed dividend distribution scheme.
Inputs: symbol (required), _jq.
estimate_max_purchase_quantityEstimate Max Purchase QuantityARead-onlyIdempotentInspect
Estimate maximum buy/sell quantity for a symbol. Only symbol is required; side (case-insensitive Buy/Sell) defaults to Buy, order_type (case-insensitive) defaults to LO, and price is optional.
Inputs: symbol (required), _jq, side, price, +1 more.
etf_docsETF Documents (US)ARead-onlyIdempotentInspect
Get regulatory/prospectus documents (etf-files) for a US ETF. US accounts only; errors with DcRegionRestricted for AP accounts.
Inputs: symbol (required), _jq, limit.
exchange_rateExchange RateARead-onlyIdempotentInspect
Get exchange rates for all supported currencies. Returns list[]{from_currency, to_currency, rate, timestamp} covering USD, HKD, CNY, SGD and others.
Inputs: _jq.
executiveExecutiveBRead-onlyIdempotentInspect
Get company executive and board member information.
Inputs: symbol (required), _jq.
filingsFilingsARead-onlyIdempotentInspect
Get regulatory filings (8-K, 10-Q, 10-K, etc.). Returns items[]{id, title, type, language, filing_date, url} for the symbol.
Inputs: symbol (required), _jq.
finance_calendarFinancial CalendarARead-onlyIdempotentInspect
Finance calendar by category: report (earnings) / dividend / split / ipo / macrodata (CPI, NFP, rates) / closed (holidays). start and end (YYYY-MM-DD) are optional, default today plus 7 days; keep ranges under 2 weeks or results truncate.
Inputs: category (required), _jq, end, start, +1 more.
financial_reportFinancial ReportCRead-onlyIdempotentInspect
Get financial reports (income statement, balance sheet, cash flow). kind: IS/BS/CF/ALL. report_type: af (annual), saf (semi-annual), q1/q2/q3, qf (quarterly full).
Inputs: symbol (required), _jq, kind, report_type.
financial_report_key_metricsFinancial Report Key Metrics (US)ARead-onlyIdempotentInspect
Get key financial metrics (fin-keyfactor) for a US symbol. report: af (annual, default), saf, qf, q1/q2/q3. US accounts only; errors with DcRegionRestricted for AP accounts.
Inputs: symbol (required), _jq, report.
financial_report_latestLatest Financial ReportCRead-onlyIdempotentInspect
Get the latest financial report summary for a security.
Inputs: symbol (required), _jq.
financial_report_snapshotFinancial Report SnapshotARead-onlyIdempotentInspect
Get financial report snapshot: report_desc (text summary), fo_revenue/fo_ebit/fo_eps (actual vs forecast with yoy/cmp), fr_* financial ratios (ROE, margins, assets, cash flow). report: qf/saf/af.
Inputs: symbol (required), _jq, report, fiscal_year, +1 more.
financial_statementFinancial StatementsBRead-onlyIdempotentInspect
Get financial statements (income statement, balance sheet, or cash flow) for a security. kind: IS/BS/CF/ALL. report: af (annual, default), saf (semi-annual), qf (quarterly full), q1/q2/q3.
Inputs: symbol (required), _jq, kind, report.
forecast_epsForecast EPSBRead-onlyIdempotentInspect
Get EPS forecast and analyst estimate history.
Inputs: symbol (required), _jq.
fund_analysisFund AnalysisBRead-onlyIdempotentInspect
Get a fund's top-level analysis (risk/return summary). counter_id from fund_hot / fund_list; optional period selector.
Inputs: counter_id (required), _jq, period.
fund_analysis_detailFund Analysis DetailARead-onlyIdempotentInspect
Get a fund's detailed analysis (deeper metrics behind fund_analysis). counter_id from fund_hot / fund_list; optional period selector.
Inputs: counter_id (required), _jq, period.
fund_annual_returnsFund Annual ReturnsARead-onlyIdempotentInspect
Get a fund's per-year returns (paged). counter_id from fund_hot / fund_list; optional page / size.
Inputs: counter_id (required), _jq, page, size.
fund_cancel_orderCancel Fund OrderADestructiveIdempotentInspect
Cancel a fund order by order_id. DRY RUN unless execute is the confirmation_code from its own dry run: call once without execute, show the returned preview (which echoes the order being cancelled) to the user, then re-call quoting the code only after they explicitly confirm that exact order. Requires auth. order_id from fund_orders.
Inputs: order_id (required), _jq, execute.
fund_detailFund DetailARead-onlyIdempotentInspect
Get a single fund's profile and key figures. counter_id (e.g. UT/FD/HK0000384492) comes from fund_hot / fund_list.
Inputs: counter_id (required), _jq.
fund_filtersFund FiltersARead-onlyIdempotentInspect
Get the filter options (filter object shape and quick-filter ids) accepted by fund_list. No parameters.
Inputs: _jq.
fund_holderFund HoldersBRead-onlyIdempotentInspect
Get funds and ETFs that hold a given symbol.
Inputs: symbol (required), _jq.
fund_holdingsFund HoldingsARead-onlyIdempotentInspect
Get a fund's top-10 holdings. counter_id from fund_hot / fund_list; optional scene selector.
Inputs: counter_id (required), _jq, scene.
fund_hotFund Hot ListARead-onlyIdempotentInspect
List hot-selling funds in the Longbridge fund channel. Each row carries the fund counter_id (e.g. UT/FD/HK0000384492) used by every other fund_* tool. No parameters.
Inputs: _jq.
fund_listFund ListARead-onlyIdempotentInspect
Browse/screen funds. Optional filter (object from fund_filters), quick_ids, and time_interval. Each row carries the fund counter_id used by other fund_* tools.
Inputs: _jq, filter, quick_ids, time_interval.
fund_orderFund Order DetailARead-onlyIdempotentInspect
Get one fund order's detail by order_id (from fund_orders). Requires auth.
Inputs: order_id (required), _jq.
fund_ordersFund OrdersBRead-onlyIdempotentInspect
List the user's fund orders / execution records. Requires auth. Optional counter_ids, actions, states, currency, start / end (unix seconds), page / size.
Inputs: _jq, end, page, size, +5 more.
fund_performanceFund PerformanceARead-onlyIdempotentInspect
Get a fund's daily performance figures. counter_id from fund_hot / fund_list.
Inputs: counter_id (required), _jq.
fund_performance_comparisonFund Performance ComparisonARead-onlyIdempotentInspect
Compare a fund's performance against its benchmark/peers. counter_id from fund_hot / fund_list; optional period selector.
Inputs: counter_id (required), _jq, period.
fund_positionFund PositionARead-onlyIdempotentInspect
Get one held fund's position detail. Requires auth. counter_id from fund_position_overview / fund_hot / fund_list; optional start / end (YYYY-MM-DD).
Inputs: counter_id (required), _jq, end, start.
fund_position_dividendsFund Position DividendsARead-onlyIdempotentInspect
Get a held fund's dividend records (paged). Requires auth. counter_id from fund_position_overview; optional currency, start / end (unix seconds), page / size.
Inputs: counter_id (required), _jq, end, page, +3 more.
fund_position_overviewFund Position OverviewBRead-onlyIdempotentInspect
Get the signed-in user's fund positions overview (all held funds). Requires an authenticated token. No parameters.
Inputs: _jq.
fund_position_performanceFund Position PerformanceBRead-onlyIdempotentInspect
Get a held fund's performance figures. Requires auth. counter_id from fund_position_overview / fund_hot / fund_list.
Inputs: counter_id (required), _jq.
fund_position_profitsFund Position ProfitsARead-onlyIdempotentInspect
Get a held fund's cumulative-profit detail (paged). Requires auth. counter_id from fund_position_overview; optional start / end (YYYY-MM-DD), page / size.
Inputs: counter_id (required), _jq, end, page, +2 more.
fund_positionsFund PositionsCRead-onlyIdempotentInspect
Get current fund positions. counter_id is the fund id (e.g. UT/FD/HK0000384492); its last /-separated segment is the ISIN.
Inputs: _jq.
fund_quarterly_returnsFund Quarterly ReturnsARead-onlyIdempotentInspect
Get a fund's per-quarter returns (paged). counter_id from fund_hot / fund_list; optional page / size.
Inputs: counter_id (required), _jq, page, size.
fund_stock_holdingsFund Stock HoldingsBRead-onlyIdempotentInspect
Reverse-lookup the individual stocks a fund holds. counter_id from fund_hot / fund_list; optional limit.
Inputs: counter_id (required), _jq, limit.
fund_submit_orderSubmit Fund OrderADestructiveInspect
Submit a fund buy/sell order. DRY RUN unless execute is the confirmation_code from its own dry run: call once without execute, show the preview to the user, then re-call quoting the code only after they explicitly confirm. Requires auth. counter_id from fund_hot / fund_list; action is buy or sell; currency e.g. HKD/USD; give either amount (cash to invest) or units (shares to sell); is_sell_all=true redeems the whole position. Use fund_validate_order first for a safe pre-trade check.
Inputs: action (required), currency (required), counter_id (required), _jq, +8 more.
fund_transactionsFund TransactionsBRead-onlyIdempotentInspect
List the user's fund cash-flow records. Requires auth. Optional business_type, category, currencies, start / end (unix seconds), page / size.
Inputs: _jq, end, page, size, +4 more.
fund_trendFund TrendBRead-onlyIdempotentInspect
Get a fund's trend chart series. counter_id from fund_hot / fund_list; optional period selector.
Inputs: counter_id (required), _jq, period.
fund_validate_orderValidate Fund OrderAIdempotentInspect
Pre-trade validation for a fund buy/sell order. Places NO order — it only checks the request against the fund channel and returns the validation result (fees, limits, estimated units/amount). Requires auth. counter_id from fund_hot / fund_list; action is buy or sell; currency e.g. HKD/USD; give either amount (cash) or units (shares).
Inputs: action (required), currency (required), counter_id (required), _jq, +5 more.
grid_cancelCancel Grid OrderADestructiveIdempotentInspect
Cancel (terminate) a grid order by order_id. TWO-STEP CONFIRMATION IS MANDATORY: this tool is a DRY RUN unless you pass the confirmation_code its own dry run returned. Call it first without execute, show the returned preview to the user, and only call it again with execute="<confirmation_code>" after the user has explicitly confirmed it. The code is derived from the order itself, so it applies only to that exact request. Never quote it back on your own initiative.
Inputs: order_id (required), _jq, execute.
grid_detailGrid Order DetailARead-onlyInspect
Full detail for one grid order: rule parameters, status, embedded child orders (grid_sub_orders) and lifecycle history (grid_order_history). Supports history_id cursor + limit paging.
Inputs: order_id (required), _jq, limit, history_id.
grid_listList Grid OrdersBRead-onlyInspect
List grid trading orders. Filter by symbol or comma-joined status (e.g. "Performing,Suspended"); supports page/limit and sort_by/sort_order.
Inputs: _jq, page, limit, status, +3 more.
grid_list_by_idsGet Grid Orders By IDsBRead-onlyInspect
Fetch specific grid orders by their IDs.
Inputs: order_ids (required), _jq.
grid_replaceReplace Grid OrderADestructiveIdempotentInspect
Replace an existing grid order's rule by order_id. Accepts the same grid rule fields as grid_submit. Overwrites the order's entire rule. TWO-STEP CONFIRMATION IS MANDATORY: this tool is a DRY RUN unless you pass the confirmation_code its own dry run returned. Call it first without execute, show the returned preview to the user, and only call it again with execute="<confirmation_code>" after the user has explicitly confirmed it. The code is derived from the order itself, so it applies only to that exact request. Never quote it back on your own initiative. The dry run echoes the rule that would replace the current one.
Inputs: order_id (required), _jq, rth, execute, +21 more.
grid_restartRestart Grid OrderAIdempotentInspect
Restart (resume) a suspended grid order by order_id. TWO-STEP CONFIRMATION IS MANDATORY: this tool is a DRY RUN unless you pass the confirmation_code its own dry run returned. Call it first without execute, show the returned preview to the user, and only call it again with execute="<confirmation_code>" after the user has explicitly confirmed it. The code is derived from the order itself, so it applies only to that exact request. Never quote it back on your own initiative. A restarted grid resumes placing orders on its own.
Inputs: order_id (required), _jq, execute.
grid_submitSubmit Grid OrderAInspect
Submit a grid trading order. DRY RUN unless execute is the confirmation_code from its own dry run: call once without execute, show the preview, then re-call quoting the code only after the user confirms.
Inputs: symbol (required), settlement_currency (required), _jq, rth, +22 more.
grid_suspendSuspend Grid OrderAIdempotentInspect
Suspend (pause) a running grid order by order_id. Resume with grid_restart. TWO-STEP CONFIRMATION IS MANDATORY: this tool is a DRY RUN unless you pass the confirmation_code its own dry run returned. Call it first without execute, show the returned preview to the user, and only call it again with execute="<confirmation_code>" after the user has explicitly confirmed it. The code is derived from the order itself, so it applies only to that exact request. Never quote it back on your own initiative.
Inputs: order_id (required), _jq, execute.
grid_symbol_infoGrid Symbol InfoARead-onlyInspect
Pre-trade grid setup info for a security (takes a symbol, not an order_id): security name, last price, board lot sizes (buy/sell), price-step (bid_size) table, and channel/authorization info (strategy grant flag, RTH support, supported s...
Inputs: symbol (required), _jq.
grid_trigger_historyGrid Trigger HistoryBRead-onlyInspect
Trigger history for one grid order: each triggered child order with price, quantity, executed price/qty, and trigger time. Supports page/limit.
Inputs: order_id (required), _jq, page, limit.
history_candlesticks_by_dateHistorical Candlesticks by DateBRead-onlyIdempotentInspect
Get historical candlestick data by date range. Only symbol is required; period defaults to day (1m/5m/15m/30m/60m/day/week/month/year), forward_adjust to false, trade_sessions to all.
Inputs: symbol (required), _jq, end, start, +3 more.
history_candlesticks_by_offsetHistorical Candlesticks by OffsetARead-onlyIdempotentInspect
Get historical candlestick data by offset from a reference time. Only symbol is required; period defaults to day (1m/5m/15m/30m/60m/day/week/month/year), count to 100, forward_adjust/forward to false, trade_sessions to all. If the account's entitlement caps out below the requested count, this returns as many candles as allowed instead of erroring — check the returned array length against count if an exact number matters.
Inputs: symbol (required), _jq, time, count, +4 more.
history_executionsHistorical ExecutionsARead-onlyIdempotentInspect
Get every trade execution (fill) in a date range, filtered by execution time (trade_done_at) and auto-paginated to return the complete set (never truncated at the 1000-per-page cap). Returns executions[]{order_id, trade_id, symbol, side, quantity, price, trade_done_at}; trade_id is the stable dedupe key. start_at/end_at in RFC3339.
Inputs: end_at (required), start_at (required), _jq, symbol, +2 more.
history_market_temperatureHistorical Market TemperatureARead-onlyIdempotentInspect
Get historical market temperature time series.
Inputs: end (required), start (required), market (required), _jq.
history_ordersHistorical OrdersARead-onlyIdempotentInspect
Get historical orders between dates (excludes today). Returns orders[]{order_id, symbol, side, status, quantity, price, submitted_at}. start_at/end_at in RFC3339. US accounts only: us_page, us_limit paginate via a separate US order endpoint (default page size 20 — pass us_page to see more than the first page).
Inputs: end_at (required), start_at (required), _jq, symbol, +2 more.
industry_peersIndustry PeersARead-onlyIdempotentInspect
Hierarchical sub-sector tree for an industry group. Accepts an industry symbol from industry_rank (e.g. IN00258.US). Each node shows stock count, daily change, and YTD change.
Inputs: symbol (required), _jq.
industry_rankIndustry RankARead-onlyIdempotentInspect
Industry ranking list by market (US/HK/CN/SG) and indicator (0=领涨/1=今日走势/2=人气/3=市值/4=营收/5=营收增长率/6=净利润/7=净利润增长率). sort_type: 0=单级 1=多层. Returns items[]{symbol(IN00258.US), name, chg, lists[]}. Pass a row's symbol directly to industry_peers.
Inputs: market (required), _jq, limit, indicator, +1 more.
industry_valuationIndustry ValuationCRead-onlyIdempotentInspect
Get industry valuation comparison for peers.
Inputs: symbol (required), _jq.
industry_valuation_distIndustry Valuation DistributionBRead-onlyIdempotentInspect
Get industry PE/PB/PS valuation distribution.
Inputs: symbol (required), _jq.
institutional_viewsInstitutional ViewsCRead-onlyIdempotentInspect
Get monthly institutional rating distribution timeline.
Inputs: symbol (required), _jq.
institution_ratingInstitution RatingCRead-onlyIdempotentInspect
Get institution rating summary.
Inputs: symbol (required), _jq.
institution_rating_detailInstitution Rating DetailCRead-onlyIdempotentInspect
Get detailed historical institution ratings and target price history.
Inputs: symbol (required), _jq.
institution_rating_historyInstitution Rating HistoryCRead-onlyIdempotentInspect
Get institution rating history.
Inputs: symbol (required), _jq.
institution_rating_industry_rankInstitution Rating Industry RankARead-onlyIdempotentInspect
Get peers ranked by institution analyst ratings in the same industry. Paginated.
Inputs: symbol (required), _jq, page, size.
intradayIntraday LineBRead-onlyIdempotentInspect
Get intraday minute-by-minute price/volume data. trade_sessions: "intraday" (default, regular hours) or "all" (include pre-market and post-market)
Inputs: symbol (required), _jq, trade_sessions.
invest_relationInvestor RelationsBRead-onlyIdempotentInspect
Get investor relations events and announcements.
Inputs: symbol (required), _jq.
ipo_calendarIPO CalendarCRead-onlyIdempotentInspect
Show the IPO calendar.
Inputs: _jq.
ipo_detailIPO DetailBRead-onlyIdempotentInspect
Show IPO detail for a symbol.
Inputs: symbol (required), _jq, market.
ipo_listedIPO ListedBRead-onlyIdempotentInspect
List recently listed IPO stocks (HK+US).
Inputs: _jq, page, size.
ipo_order_detailIPO Order DetailBRead-onlyIdempotentInspect
Show detailed information for a specific IPO order by order_id.
Inputs: order_id (required), _jq.
ipo_ordersIPO OrdersARead-onlyIdempotentInspect
List IPO orders (active+history). Filter by symbol, market, or status.
Inputs: _jq, page, size, market, +2 more.
ipo_profit_lossIPO Profit / LossARead-onlyIdempotentInspect
Show IPO profit/loss summary and per-stock breakdown. period: all/ytd/1y/3y.
Inputs: _jq, page, size, period.
ipo_subscriptionsIPO SubscriptionsARead-onlyIdempotentInspect
List IPO stocks in subscription/pre-filing stage (HK+US).
Inputs: _jq.
macrodataMacro Indicator DataARead-onlyIdempotentInspect
Get historical observations for one macro-economic indicator. Use indicator_code from macrodata_indicators; start_date/end_date accept YYYY-MM-DD. Supports offset/limit pagination.
Inputs: indicator_code (required), _jq, limit, offset, +2 more.
macrodata_indicatorsMacro Indicator ListARead-onlyIdempotentInspect
List macro-economic indicators. Filter by keyword and country (US/CN/HK/EU/JP/SG). Use the returned indicator_code with macrodata. Supports offset/limit pagination.
Inputs: _jq, limit, offset, country, +1 more.
margin_ratioMargin RatioBRead-onlyIdempotentInspect
Get margin ratio for a symbol.
Inputs: symbol (required), _jq.
market_statusMarket StatusCRead-onlyIdempotentInspect
Get current market trading status for all markets.
Inputs: _jq.
market_temperatureMarket TemperatureCRead-onlyIdempotentInspect
Get current market sentiment temperature. market: HK/US/CN/SG.
Inputs: market (required), _jq.
newsNewsARead-onlyIdempotentInspect
Get latest news articles for a symbol. Returns items[]{id, title, source, publish_time, summary, url, related_symbols[]}.
Inputs: symbol (required), _jq.
news_detailNews DetailARead-onlyIdempotentInspect
Get one news article's full detail by id (from news/news_search).
Inputs: id (required), _jq.
news_searchNews SearchARead-onlyIdempotentInspect
Search news articles by keyword. Returns news_list[]{id, title, description, source_name, publish_at (RFC3339), score}. Paginate with score+publish_at_timestamp+id cursors.
Inputs: keyword (required), _jq, limit.
nowCurrent TimeARead-onlyIdempotentInspect
Get current UTC time as an RFC3339 string (e.g. "2025-01-15T08:30:00Z"). Use to determine current date/time before making date-based queries.
Inputs: _jq.
operatingOperating PerformanceARead-onlyIdempotentInspect
Get company operating metrics (HK stocks only).
Inputs: symbol (required), _jq.
option_chain_expiry_date_listOption Expiry DatesARead-onlyIdempotentInspect
Get option chain expiry dates for a symbol (e.g. AAPL.US). Returns expiry_dates[] as "yyyy-mm-dd" strings. Use with option_chain_info_by_date to get the contracts for one of those dates.
Inputs: symbol (required), _jq.
option_chain_info_by_dateOption Chain by DateARead-onlyIdempotentInspect
Get the option contract list for one expiry date. Returns one entry per contract (calls and puts are NOT paired): {symbol, expiry_date, strike_price, direction (Call/Put), option_type (Monthly/Weekly/Quarterly), standard_attr (Normal/Old), days_to_expiry}. Filter on direction to split calls from puts, and pass standard_only=true to drop the legacy post-corporate-action contracts. Carries no prices or Greeks — pass the symbols to option_quote for those.
Inputs: date (required), symbol (required), _jq, standard_only.
option_quoteOption QuoteARead-onlyIdempotentInspect
Get option quotes (max 500 symbols). Symbols must be option contract symbols (e.g. "AAPL230317P160000.US"), NOT plain stock symbols — obtain valid ones from the symbol field of each option_chain_info_by_date contract. Returns last_done, prev_close, open, high, low, volume, turnover, implied_volatility, delta, gamma, theta, vega, rho, open_interest per symbol. Greeks are normalized: theta is the per-day value (one day's time decay), vega is the price change per 1% change in implied volatility, and rho is the price change per 1% change in the risk-free interest rate.
Inputs: symbols (required), _jq.
option_volumeOption VolumeARead-onlyIdempotentInspect
Get real-time option call/put volume stats for a US stock. Returns {call_volume, put_volume, put_call_ratio, call_oi, put_oi} and top active contracts.
Inputs: symbol (required), _jq.
option_volume_dailyOption Volume (Daily)ARead-onlyIdempotentInspect
Get daily historical option stats for a US stock. Returns items[]{date, call_volume, put_volume, put_call_vol_ratio, call_oi, put_oi, put_call_oi_ratio}.
Inputs: symbol (required), _jq, count.
order_detailOrder DetailARead-onlyIdempotentInspect
Get detailed information about a specific order. To look up such a leg by its own ID instead, pass it as order_id with is_attached=true: the response is then that leg, with charge_detail null.
Inputs: order_id (required), _jq, is_attached.
participantsMarket ParticipantsARead-onlyIdempotentInspect
Get HK market participant broker information. Returns participants[]{broker_ids[], name_en, name_cn, name_hk}. Use broker_ids to interpret broker queue data.
Inputs: _jq.
profit_analysisProfit AnalysisARead-onlyIdempotentInspect
Get portfolio profit and loss analysis summary. start/end: optional date range in yyyy-mm-dd format. Both must be provided together — passing only one returns empty results.
Inputs: _jq, end, start.
profit_analysis_detailProfit Analysis DetailBRead-onlyIdempotentInspect
Get detailed profit and loss analysis for a specific symbol. start/end: optional date range in yyyy-mm-dd format. Both must be provided together — passing only one returns empty results.
Inputs: symbol (required), _jq, end, start.
profit_analysis_realizedProfit Analysis (Realized, US)ARead-onlyIdempotentInspect
Get realized P&L for a US account, broken down by category (stock/option/crypto) and period. US accounts only; errors with DcRegionRestricted for AP accounts.
Inputs: _jq, category, currency.
quant_runQuant — Run Indicator ScriptARead-onlyIdempotentInspect
Run a quant indicator script against historical K-line data on the server. Executes the script server-side and returns the computed indicator/plot values as JSON. Periods: 1m, 5m, 15m, 30m, 1h, day, week, month, year (default: day). The optional input parameter accepts a JSON array matching the order of input.*() calls in the script, e.g. "[14,2.0]".
Inputs: end (required), start (required), symbol (required), _jq, +3 more.
quoteQuoteARead-onlyIdempotentInspect
Get latest price quotes. Returns per symbol: last_done, prev_close, open, high, low, volume, turnover, change_rate, change_value, trade_status, timestamp.
Inputs: symbols (required), _jq.
rank_categoriesRank CategoriesBRead-onlyIdempotentInspect
Get rank tab category configurations for the popularity leaderboard. Pass a second_tags key (e.g. hot_all-us) to rank_list.
Inputs: _jq.
rank_listRank ListARead-onlyIdempotentInspect
Get ranked stock list by leaderboard tab key. key: from rank_categories second_tags[].key (e.g. "hot_all-us", "hot_up-hk", "trade_heat-us"). market: inferred from key suffix (-us/-hk) or pass explicitly. size: results (default 20).
Inputs: key (required), _jq, size, market, +1 more.
replace_orderReplace OrderADestructiveIdempotentInspect
Modify an open order's quantity, price, trigger_price, or trailing params. Returns "order replaced" on success. Only open/pending orders can be modified. TWO-STEP CONFIRMATION IS MANDATORY: this tool is a DRY RUN unless you pass the confirmation_code its own dry run returned. Call it first without execute, show the returned preview to the user, and only call it again with execute="<confirmation_code>" after the user has explicitly confirmed that exact order. The code is derived from the order itself, so it applies only to that exact order. Never quote it back on your own initiative, and never in the same turn the user first asks. The dry run echoes the current order alongside the requested change. Attached take-profit/stop-loss legs are changed here too: attached_order_type with the new attached_profit_taker_price / attached_stop_loss_price adds or reprices a leg, attached_profit_taker_id / attached_stop_loss_id target an existing leg, and attached_cancel_all=true removes every leg while leaving the order in place.
Inputs: order_id (required), quantity (required), _jq, price, +20 more.
screener_indicatorsScreener IndicatorsARead-onlyIdempotentInspect
Get all available screener indicator keys with units and default value ranges. Technical indicators include a tech_values field showing available options (e.g. macd_day: {category:[goldenfork,deadcross], period:[day,week]}).
Inputs: _jq, symbol.
screener_recommend_strategiesScreener Recommend StrategiesARead-onlyIdempotentInspect
List platform-preset screener strategies. market: US|HK|CN|SG (default: US). Pass id to screener_search strategy_id to run, or screener_strategy to inspect filter conditions.
Inputs: _jq, market.
screener_searchScreener SearchARead-onlyIdempotentInspect
Screen stocks. market: US|HK|CN|SG (Mode B required; Mode A uses strategy's market). Mode A: strategy_id from screener_recommend_strategies — auto-runs saved strategy.
Inputs: _jq, page, size, market, +5 more.
screener_strategyScreener StrategyARead-onlyIdempotentInspect
Inspect a screener strategy's filter conditions before running it. Use screener_search strategy_id to execute the strategy.
Inputs: id (required), _jq.
screener_user_strategiesScreener User StrategiesARead-onlyIdempotentInspect
List the current user's saved screener strategies. market: US|HK|CN|SG (default: US). Pass id to screener_search strategy_id to run, or screener_strategy to inspect conditions.
Inputs: _jq, market.
security_factsSecurity FactsARead-onlyIdempotentInspect
List a security's fact (catalyst) events — anomaly detections, factor readings, data sources and natural-language summaries — filtered by time range and count. Facts are what strategies react to: a signal names its trigger in key_fact_id.
Inputs: symbol (required), _jq, limit, end_time, +1 more.
security_listSecurity ListARead-onlyIdempotentInspect
Get security list for a market. Supports market: US, HK, CN, SG. category: "Overnight" (default). page: 1-based page number (default 1). count: records per page (default 50).
Inputs: market (required), _jq, page, count, +1 more.
short_marginShort MarginBRead-onlyIdempotentInspect
Get short margin deposit details for the current account. Returns short positions with margin_amount, margin_rate, interest_rate, symbol, quantity per position.
Inputs: _jq.
short_positionsShort PositionsARead-onlyIdempotentInspect
Get short interest history (open short positions) for HK or US stocks. Market inferred from symbol suffix. count: 1–100 (default 20). Unified data[]{timestamp(RFC3339), short_shares(open short position in shares), rate(decimal ratio e.g. 0.009=0.9%), close}. US-only: avg_daily_vol, days_to_cover. HK-only: balance(outstanding short position in HKD). US source: FINRA bi-weekly. HK source: HKEX daily.
Inputs: symbol (required), _jq, count.
short_tradesShort TradesARead-onlyIdempotentInspect
Get daily short-sale volume history for HK or US stocks. Market inferred from symbol suffix. last_timestamp: unix seconds (omit for latest). page_size: 1–100 (default 20). US source: FINRA/NASDAQ daily. HK source: HKEX daily.
Inputs: symbol (required), last_timestamp (required), _jq, page_size.
signal_detailSignal DetailARead-onlyIdempotentInspect
Get one signal by ID (from signals). Same fields as the list, plus analysis — the full strategy analysis: fit scores, valuation scenarios, evidence sources and related fact IDs.
Inputs: signal_id (required), _jq.
signalsSignalsARead-onlyIdempotentInspect
Query strategy signals — a strategy's take on a security, triggered by a catalyst. Filter by symbol, strategy, catalyst and time range; page with limit/offset. The full strategy analysis is omitted here — fetch it with signal_detail.
Inputs: _jq, limit, offset, end_time, +6 more.
statement_exportExport StatementARead-onlyIdempotentInspect
Get a pre-signed download URL for a statement data file (obtained from statement_list).
Inputs: file_key (required), _jq.
statement_listStatement ListARead-onlyIdempotentInspect
List available account statements (daily/monthly). Use the id with statement_export to download.
Inputs: _jq, limit, start_date, statement_type.
static_infoSecurity Static InfoARead-onlyIdempotentInspect
Get static info for securities. Returns per symbol: symbol, name_cn, name_en, exchange (e.g. NASDAQ), type (e.g. US_Stock), lot_size, listed_date, delisted (bool). US accounts only: .BKKT crypto symbols (e.g. BTCUSD.BKKT) are routed to a separate US crypto overview endpoint; .HAS/.OSL crypto symbols are unaffected.
Inputs: symbols (required), _jq.
stock_positionsStock PositionsARead-onlyIdempotentInspect
Get current stock positions across all channels. US accounts only: an additional us_asset_overview field {cash_list, stock_list, option_list, crypto_list, cash_buy_power, overnight_buy_power} is included alongside the existing data.
Inputs: _jq.
submit_multileg_orderSubmit Multi-Leg OrderADestructiveInspect
Submit a multi-leg option combination order; all legs fill or rest together as one strategy order.
Inputs: legs (required), side (required), strategy (required), order_type (required), +5 more.
submit_orderSubmit OrderADestructiveInspect
Submit a buy/sell order. DRY RUN unless execute is the confirmation_code from its own dry run: call once without execute, show the preview to the user, then re-call quoting the code only after they explicitly confirm.
Inputs: side (required), symbol (required), order_type (required), time_in_force (required), +21 more.
today_executionsToday's ExecutionsARead-onlyIdempotentInspect
Get today's trade executions (fills). Returns executions[]{order_id, trade_id, symbol, side, quantity, price, trade_done_at}. Pass symbol or order_id to filter.
Inputs: _jq, symbol, order_id.
today_ordersToday's OrdersARead-onlyIdempotentInspect
Get orders placed today. Returns orders[]{order_id, symbol, side, order_type, status, quantity, price, submitted_at, executed_quantity, executed_price, attached_orders[]}, where attached_orders[] holds the order's take-profit/stop-loss legs. Pass symbol to filter by security, or order_id for one order. To fetch an attached leg by its own ID, pass that ID as order_id together with is_attached=true — the leg itself comes back as the order entry. is_attached does nothing without order_id, and neither has any effect for US accounts, which are served by the US order endpoint. US accounts only: us_action (Buy/Sell), us_page, us_limit filter/paginate via a separate US order endpoint.
Inputs: _jq, symbol, us_page, order_id, +3 more.
topicTopic ListBRead-onlyIdempotentInspect
Get discussion topics for a symbol. Returns items[]{id, title, author, created_at, like_count, comment_count, content_summary}.
Inputs: symbol (required), _jq.
topic_createCreate TopicAInspect
Create a new discussion topic. topic_type="post" (default) is plain text; "article" requires a non-empty title and accepts Markdown body.
Inputs: body (required), title (required), _jq, symbols, +1 more.
topic_create_replyCreate Topic ReplyAInspect
Create a reply to a discussion topic. Pass reply_to_id to nest under another reply; omit for a top-level reply.
Inputs: body (required), topic_id (required), _jq, reply_to_id.
topic_detailTopic DetailARead-onlyIdempotentInspect
Get discussion topic detail by topic_id.
Inputs: topic_id (required), _jq.
topic_repliesTopic RepliesARead-onlyIdempotentInspect
Get replies to a discussion topic, paginated (page default 1, size default 20, range 1-50)
Inputs: topic_id (required), _jq, page, size.
topic_searchTopic SearchARead-onlyIdempotentInspect
Search community topics/posts by keyword. Returns id, author, time, and excerpt.
Inputs: keyword (required), _jq, limit.
top_moversTop MoversARead-onlyIdempotentInspect
Get stocks whose price fluctuation exceeds the 20-trading-day standard deviation, with correlated news reasons. markets: comma-separated HK/US/CN/SG (omit=all). sort: 0=time 1=change-magnitude 2=popularity/heat (default).
Inputs: _jq, date, sort, limit, +2 more.
tradesRecent TradesARead-onlyIdempotentInspect
Get recent trades (max 1000). Returns trades[]{price, volume, timestamp, trade_type, direction} for the symbol.
Inputs: count (required), symbol (required), _jq.
trade_statsTrade StatisticsARead-onlyIdempotentInspect
Get trade statistics (buy/sell/neutral volume distribution). Returns items[]{price_range, buy_volume, sell_volume, neutral_volume} for price-volume profile.
Inputs: symbol (required), _jq.
trading_daysTrading DaysBRead-onlyIdempotentInspect
Get trading days for a market between dates. market: HK/US/CN/SG.
Inputs: end (required), start (required), market (required), _jq.
trading_sessionTrading SessionsARead-onlyIdempotentInspect
Get trading session schedule for all markets. Returns market_sessions[]{market, trade_sessions[]{beg_time, end_time, trade_session_type}}.
Inputs: _jq.
update_watchlist_groupUpdate Watchlist GroupADestructiveIdempotentInspect
Update a watchlist group by id. Can rename (name param) or modify securities (securities + mode: add/remove/replace).
Inputs: id (required), _jq, mode, name, +1 more.
valuationValuationARead-onlyIdempotentInspect
Get valuation overview with peer comparison. US accounts querying a .US symbol get a US-specific variant (ai_summary plus a metrics.pe object with different sub-fields). The region is detected from the account automatically.
Inputs: symbol (required), _jq.
valuation_comparisonStock ComparisonBRead-onlyIdempotentInspect
Stock valuation comparison. Mode A (single): pass only symbol — server returns stock + auto-selected industry peers.
Inputs: symbol (required), currency (required), _jq, comparison_symbols.
valuation_historyValuation HistoryCRead-onlyIdempotentInspect
Get detailed valuation history time series.
Inputs: symbol (required), _jq.
valuation_rankValuation RankARead-onlyIdempotentInspect
Get daily valuation rank (PE/PB/PS/dividend yield industry percentile) for a security over a date range. start/end in yyyymmdd format.
Inputs: symbol (required), _jq, end, start.
warrant_issuersWarrant IssuersARead-onlyIdempotentInspect
Get HK warrant issuer information. Returns issuers[]{id, name_en, name_cn}. Use id in warrant_list issuer filter.
Inputs: _jq.
warrant_listWarrant ListARead-onlyIdempotentInspect
Get filtered warrant list for an underlying symbol. Returns warrants[]{symbol, name, last_done, change_rate, implied_volatility, expiry_date, strike_price, leverage_ratio, outstanding_ratio}.
Inputs: symbol (required), sort_by (required), sort_order (required), _jq, +5 more.
warrant_quoteWarrant QuoteARead-onlyIdempotentInspect
Get warrant quotes. Returns last_done, prev_close, open, high, low, volume, turnover, implied_volatility, delta, leverage_ratio, effective_leverage per symbol.
Inputs: symbols (required), _jq.
watchlistWatchlistARead-onlyIdempotentInspect
Get all watchlist groups and their securities. Returns groups[]{id, name, securities[]{symbol, market, name, watched_price, watched_at}}.
Inputs: _jq.
withdrawalsWithdrawalsARead-onlyIdempotentInspect
List withdrawal history for the current account. Returns items[]{id, amount, currency, status, created_at, bank_name, account_number (masked)}.
Inputs: _jq, page, size.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 193 tools
Many tool families overlap in purpose, e.g. fund_analysis vs fund_analysis_detail vs fund_detail, fund_nav vs fund_nav_history vs fund_nav_range, and candlesticks vs history_candlesticks_by_date/offset. Descriptions help distinguish them, but with 193 tools an agent must still read carefully to avoid misselection.
Most names use snake_case, but the pattern is mixed: noun-only tools (quote, depth, trades, candlesticks) sit alongside verb_noun tools (submit_order, create_watchlist_group), and related concepts use inconsistent stems (financial_report vs financial_statement). It remains readable but not highly predictable.
193 tools is an extreme overload for a single MCP server. Even for a broad brokerage platform, this far exceeds a well-scoped set and will make discovery and correct selection very difficult.
The surface covers an unusually wide domain: quotes, candles, fundamentals, options, warrants, funds, DCA, IPO, community, account/order lifecycle, calendars, and screeners. Some niche assets or edge-case operations may be missing, but core lifecycle coverage is strong.
Maintenance
Related MCP Connectors
Live US options chains with Greeks and IV, a screener, SQL, and FMP fundamentals.
Live market data, financial analysis, and portfolio research tools across 10,000+ tickers.
Watchlist, signals, trades and journal for HK, US and China A-share stocks. Records only; no orders.
Real-time Yahoo Finance stock/crypto quotes & options, Google Trends, News & Reddit/HN sentiment.
Related MCP Servers
- FlicenseDqualityDmaintenanceProvides real-time stock data and AI-powered analysis for A-shares, Hong Kong stocks, and US stocks. Features sentiment analysis of financial news, deep research reports, and comprehensive market data through multiple integrated data sources.22177-
- AlicenseCqualityDmaintenanceEnables financial research and analysis through AI agents that combine web search, content crawling, entity extraction, and deep research workflows. Supports extracting stock/fund entities with security codes and conducting structured financial investigations.926Apache 2.0
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive stock market data across US, Hong Kong, and Chinese markets, combining real-time quotes, historical data, fundamentals, and financial statements from multiple sources including Yahoo Finance, Finnhub, Tushare, and Futu OpenAPI.-
- AlicenseBqualityBmaintenanceUnified MCP gateway for AI agents with 56+ tools and growing. Travel (Amadeus, Sabre GDS), e-commerce, local services, financial markets (Polymarket), and marketing APIs — all through a single endpoint. Pay-per-call via x402 micropayments in USDC.50010MIT