longbridge
OfficialLongbridge MCP server provides 145 tools for brokerage operations across US and HK markets:
Quotes & Market Data: Real-time and historical quotes, candlesticks, order book depth, broker queues, capital flow, market sentiment/temperature, A/H premium, options chain, short positions, market anomalies, and index constituents.
Trading: Submit, cancel, and replace orders; view positions, account balance, executions, cash flow, and margin ratios.
Fundamentals: Financial statements, business segments, dividends, EPS forecasts, analyst consensus, institutional ratings, company profiles, corporate actions, regulatory filings, and industry valuations.
Market & Industry Data: Industry rankings, broker holdings (HKEX CCASS), trade statistics, popularity leaderboards, stock screener, and calculated financial indexes.
Macroeconomic Data: Access macro indicators (CPI, GDP, NFP, etc.) and their historical values.
IPO: Subscriptions, calendar, recently listed stocks, order details, and profit/loss analysis.
Portfolio: Profit/loss analysis (overall and per-symbol), exchange rates.
DCA (Dollar-Cost Averaging): Create, update, pause, resume, and stop plans; view execution history and statistics.
Alerts: Add, delete, enable, disable, and list price alerts.
Watchlists & Community: Watchlist group management, community sharelist CRUD, member management, and popular lists.
Content & Search: Symbol news, news search, discussion topics, community topic search, and financial calendar (earnings, dividends, IPOs, macro events, market holidays).
Banking & Statements: Bank cards, deposit/withdrawal records, and account statement listing/export.
Quant: Run custom indicator scripts against historical K-line data.
Utility: Retrieve current UTC time.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Official MCP server for the Longbridge brokerage. 164 tools across real-time quotes, options, order routing, fundamentals, analyst ratings, calendars, IPO, price alerts, DCA plans, grid trading, portfolio analytics and community sharelists — covering US and HK markets. Built with Rust using rmcp and axum.
Add it in one place | Then just ask | |
ChatGPT | Settings → Apps & Connectors → add Longbridge | "How's NVDA trading today?" · "Show my HK positions" |
Claude | Settings → Connectors → add Longbridge (web · desktop · mobile) | "Compare AAPL and MSFT valuations" · "Any IPOs this week?" |
Sign in once with your Longbridge account. Every request runs over the same hosted, OAuth 2.1–secured endpoint documented below — read-only market data plus full account, portfolio, and trading tools, all gated by your own credentials.
Highlights
164 tools, one endpoint — quotes, options, order routing, fundamentals, analyst research, screeners, IPO, alerts, DCA, grid trading and portfolio analytics across US and HK markets.
Stateless by design — every request forwards its Bearer token straight to the Longbridge SDK. No sessions, no database, nothing stored server-side.
OAuth 2.1, auto-discovered — RFC 9728 protected-resource and RFC 8414 authorization-server metadata; clients complete the flow with no token to paste.
Clean, typed responses — snake_case fields, RFC 3339 timestamps, human-readable symbols, and typed response schemas available as MCP resources.
Built in Rust with rmcp and axum.
Related MCP server: Finance MCP
Filter tool responses with jq
Every tool accepts an optional _jq string in its arguments. The expression runs
on the complete returned JSON, after the normal response serialization. The _jq
name is reserved for response filtering to avoid conflicts with business parameters.
Usage guidance is sent once in the MCP initialize response's instructions;
each tool schema declares only the optional parameter name and type.
For example:
{
"name": "quote",
"arguments": {
"symbols": ["AAPL.US", "MSFT.US"],
"_jq": "map({symbol, last_done})"
}
}Use .data[:5] to take the first five entries of a data array,
.data | map(select(.price > 10)) to select rows, or {total: .total} to
project fields. Expressions use the embedded jaq
engine's jq-compatible syntax; no separate jq executable is needed.
Omit
_jq(or passnull) to preserve the original response.One output value is returned directly, multiple values as an array, and no values as
[]. Scalars and arrays are JSON text; objects also appear instructuredContent, containing only the filtered fields.Plain text responses are available as JSON strings. Multiple content blocks without structured content are available as an array.
Tool errors and permission/no-data explanations remain unfiltered.
Empty, invalid, or non-string expressions are rejected before the tool runs. If filtering fails at runtime, the response explicitly says the tool already executed. Do not automatically retry writes such as placing an order.
Environment access, filesystem imports, and logging filters are unavailable. Output is limited to 10,000 values and 8 MiB; exceeding a limit returns an error rather than a partial result.
Because filters can change the response shape, tools do not advertise a fixed
outputSchema. Original typed schemas remain available through resources/list
and resources/read at lb://tools/{tool-name}/output-schema for schema-backed tools.
Connect your own client
Longbridge runs a hosted endpoint at https://mcp.longbridge.com — point any MCP client at it and complete OAuth when prompted. Authorization is auto-discovered via RFC 9728; there is no token to paste.
Claude Code
claude mcp add --transport http longbridge https://mcp.longbridge.comClaude Desktop — add to claude_desktop_config.json, then restart:
{ "mcpServers": { "longbridge": { "url": "https://mcp.longbridge.com" } } }Codex — add the server, then complete OAuth in the browser:
codex mcp add longbridge --url https://mcp.longbridge.com
codex mcp login longbridgeCursor · Cline · Windsurf · Zed · other clients — point them at https://mcp.longbridge.com with transport streamable-http.
# Local self-hosted instance (see Self-hosting below)
claude mcp add --transport http longbridge-local http://localhost:8000/mcp
claude mcp list # registered servers
claude mcp get longbridge # config + auth status
claude mcp remove longbridge # unregister
claude mcp logout longbridge # re-trigger OAuth after revocationOn first use, the client reads the WWW-Authenticate challenge, fetches /.well-known/oauth-protected-resource (RFC 9728), and opens your browser for the Longbridge OAuth flow. Tokens are cached per session and refreshed automatically.
The 164 tools
Twenty categories spanning market data, trading, research and account management.
Category | Count | Coverage |
Quote | 32 | Real-time and historical quotes, candlesticks, depth, brokers, options, warrants, watchlists, capital flow, market temperature, short positions, option volume |
Fundamental | 33 | Financial statements/reports, business segments, institutional views, industry peers/valuation, dividends, EPS forecasts, valuations & valuation comparison, company info/executives, shareholders, corporate actions, operating metrics |
Trade | 15 | Order submission/cancellation/replacement, multi-leg option combination orders, positions, balance, executions, cash flow, margin |
Market | 15 | Market status, industry/top-mover rank, broker holdings, A/H premium, trade statistics, anomalies, short trades/margin, index constituents |
DCA | 9 | Dollar-cost averaging plan create/update/pause/resume/stop, execution history, statistics, support check |
Grid | 11 | Grid trading order submit/replace/cancel/suspend/restart, list/detail/trigger-history reads, per-symbol setup info, one-time strategy consent |
Sharelist | 8 | Community sharelist CRUD, member add/remove/sort, popular lists |
IPO | 7 | IPO subscriptions, calendar, listed stocks, order detail, profit/loss analysis |
Content | 7 | News list/detail, discussion topic CRUD and replies |
Alert | 5 | Price alert CRUD (add, delete, enable, disable, list) |
Screener | 5 | Stock screener search, indicators, strategy recommendation/management |
Portfolio | 4 | Exchange rates, profit/loss analysis (summary, detail, realized) |
ATM | 3 | Bank cards, withdrawal records, deposit records |
Macrodata | 2 | Macroeconomic indicator list and detail |
Search | 2 | News search, community topic search |
Statement | 2 | Account statement listing and export |
Calendar | 1 | Finance calendar (earnings, dividends, IPOs, macro data, closures) |
Quant | 1 | Run a quant indicator script against historical K-line data |
Authenticate | 1 | OAuth code exchange for clients that can't complete a browser redirect |
Utility | 1 | Current UTC time |
Self-hosting
Prefer your own instance? Run the published image:
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.pemSet
--base-urlto your externally reachable URL on any public deployment — it is published in the OAuth metadata clients use to discover the authorization server. It defaults tohttp://localhost:{port}, which remote clients cannot use.
Or build from source: cargo build --release && ./target/release/longbridge-mcp.
Config lives at ~/.longbridge/mcp/config.json (override the directory with LONGBRIDGE_MCP_CONFIG_DIR). CLI flags take precedence. When tls_cert and tls_key are both set the server runs HTTPS, otherwise HTTP; base_url defaults to https://localhost:{port} with TLS or http://localhost:{port} without.
Option | Config Key | CLI Flag | Default | Description |
Bind address |
|
|
| HTTP server listen address |
Base URL |
|
| auto | Public base URL for resource metadata |
Log directory |
|
| (stderr) | Directory for rolling log files |
TLS certificate |
|
| (none) | PEM certificate file for HTTPS |
TLS private key |
|
| (none) | PEM private key file for HTTPS |
Canary upstream |
|
|
| Talk to the Longbridge canary environment ( |
The mainland-China environment (*.longbridge.cn) is not a flag: it is auto-selected when LONGBRIDGE_REGION=cn is set (the same variable the SDK uses), so a mainland cluster needs no dedicated setting.
Upstream endpoints are fixed by the selected environment:
Production (default) | Canary ( | Mainland ( | |
OpenAPI |
|
|
|
Quote WebSocket |
|
|
|
Trade WebSocket |
|
|
|
OAuth / connect page |
|
|
|
Canary uses the -global gateway, not openapi.longbridge.xyz: only the former is CloudFront-fronted and performs x-dc-region data-center routing, which this server depends on to serve us_- and ap_-prefixed credentials from one process.
Canary and mainland pin every URL above at startup; production defers to the SDK's own resolution except that a us_ credential with no upstream override is pinned to the global .com gateway. See src/endpoints.rs for the exact selection rules.
Advanced environment variables — most deployments never touch these; they exist for SDK debugging and edge/global-entry deployments.
Variable | Default | Description |
|
| Config file directory |
| (none) | Comma-separated hostnames accepted from the edge-injected |
| (none) | Authorization-server URL advertised to requests arriving via an allowlisted |
|
| Idle seconds before a cached quote WebSocket context is evicted |
|
| Maximum cached quote WebSocket contexts per server process |
| (unset) |
|
| (none) | SDK internal log path. Leave unset in production — the SDK writes unfiltered request/response bodies there |
MCP requests and responses carry customer data — cash balances, positions, order history — and upstream SDK frames carry access tokens. None of it belongs in a log file, so the server caps the log targets that would print it, independent of RUST_LOG:
Target | Cap | What it would otherwise print |
|
| OpenAPI request and full response bodies (INFO) |
|
| Every WebSocket frame, auth token included (INFO) |
|
| Order push events (INFO) |
|
| Decoded MCP requests and full tool results (DEBUG), raw JSON-RPC frames (TRACE) |
So raising verbosity is safe: RUST_LOG=debug (or trace) gives you the server's own logs without leaking customer data. Two switches defeat this, both off by default — LONGBRIDGE_MCP_LOG_PAYLOADS=1 (removes the caps; use only against a test account locally) and LONGBRIDGE_LOG_PATH (makes the SDK write unfiltered bodies to that directory; the server warns at startup when set).
The server expects a Longbridge OAuth access token in Authorization: Bearer <token>. On missing or invalid auth it returns 401 with a WWW-Authenticate header pointing to the protected-resource metadata, which directs clients to the Longbridge OAuth authorization server.
Send x-papertrading: true (or 1) on a request to run it against the paper-trading environment. Upstream rejects a paper-trading request made with a real-money token, so the header is a safety guard rather than a routing switch: it can only narrow what a token may do. LONGBRIDGE_PAPERTRADING=true turns it on for the whole deployment instead.
Method | Path | Description |
GET |
| Protected Resource Metadata (RFC 9728) |
GET |
| Authorization Server Metadata (RFC 8414); advertises direct Longbridge authorize/register and proxied token/revoke endpoints |
POST |
| OAuth token proxy; derives |
POST |
| OAuth revocation proxy; derives |
GET |
| Prometheus metrics |
POST/GET/DELETE |
| MCP Streamable HTTP endpoint (requires Bearer token) |
Prometheus metrics: mcp_tool_calls_total (counter), mcp_tool_call_duration_seconds (histogram), and mcp_tool_call_errors_total (counter) — each labelled by tool_name.
Development
cargo +nightly fmt # format
cargo clippy # lint
cargo test # testLicense
Released under the MIT 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