Skip to main content
Glama
longbridge

longbridge

Official

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 pass null) 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 in structuredContent, 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.com

Claude 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 longbridge

Cursor · 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 revocation

On 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.pem

Set --base-url to your externally reachable URL on any public deployment — it is published in the OAuth metadata clients use to discover the authorization server. It defaults to http://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

bind

--bind

127.0.0.1:8000

HTTP server listen address

Base URL

base_url

--base-url

auto

Public base URL for resource metadata

Log directory

log_dir

--log-dir

(stderr)

Directory for rolling log files

TLS certificate

tls_cert

--tls-cert

(none)

PEM certificate file for HTTPS

TLS private key

tls_key

--tls-key

(none)

PEM private key file for HTTPS

Canary upstream

canary

--canary

false

Talk to the Longbridge canary environment (*.longbridge.xyz). --canary=false forces production even when the config file enables it

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 (--canary)

Mainland (LONGBRIDGE_REGION=cn)

OpenAPI

https://openapi.longbridge.com

https://openapi-global.longbridge.xyz

https://openapi.longbridge.cn

Quote WebSocket

wss://openapi-quote.longbridge.com/v2

wss://openapi-global-quote.longbridge.xyz/v2

wss://openapi-quote.longbridge.cn/v2

Trade WebSocket

wss://openapi-trade.longbridge.com/v2

wss://openapi-global-trade.longbridge.xyz/v2

wss://openapi-trade.longbridge.cn/v2

OAuth / connect page

openapi.longbridge.com / open.longbridge.com

openapi-global.longbridge.xyz / open.longbridge.xyz

openapi.longbridge.cn / open.longbridge.cn

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

LONGBRIDGE_MCP_CONFIG_DIR

~/.longbridge/mcp

Config file directory

LONGBRIDGE_PUBLIC_HOSTS

(none)

Comma-separated hostnames accepted from the edge-injected X-Host header; matching requests echo that host in the 401 challenge / RFC 9728 metadata. Unset = X-Host ignored

LONGBRIDGE_GLOBAL_OAUTH_URL

(none)

Authorization-server URL advertised to requests arriving via an allowlisted X-Host (global single-domain entry). Unset = fall back to the mode's OpenAPI base URL

LONGBRIDGE_MCP_QUOTE_WS_IDLE_TTL_SECS

600

Idle seconds before a cached quote WebSocket context is evicted

LONGBRIDGE_MCP_QUOTE_WS_MAX_CONTEXTS

1024

Maximum cached quote WebSocket contexts per server process

LONGBRIDGE_MCP_LOG_PAYLOADS

(unset)

1 lifts the payload log caps (see below). Never set this in production

LONGBRIDGE_LOG_PATH

(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

longbridge_httpcli

warn

OpenAPI request and full response bodies (INFO)

longbridge_wscli

warn

Every WebSocket frame, auth token included (INFO)

longbridge::trade

warn

Order push events (INFO)

rmcp

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

/.well-known/oauth-protected-resource

Protected Resource Metadata (RFC 9728)

GET

/.well-known/oauth-authorization-server

Authorization Server Metadata (RFC 8414); advertises direct Longbridge authorize/register and proxied token/revoke endpoints

POST

/oauth2/token

OAuth token proxy; derives x-dc-region from the code/refresh token, defaulting to AP

POST

/oauth2/revoke

OAuth revocation proxy; derives x-dc-region from the token, defaulting to AP

GET

/metrics

Prometheus metrics

POST/GET/DELETE

/mcp

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              # test

License

Released under the MIT License.

Available Tools

193 tools
account_balanceAccount BalanceA
Read-onlyIdempotent
Inspect

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.

ah_premiumA/H PremiumA
Read-onlyIdempotent
Inspect

Get A/H share premium historical K-line data. Returns items[]{timestamp, open, high, low, close} representing the premium percentage over the given period.

Inputs: symbol (required), _jq, count, period.

ah_premium_intradayA/H Premium (Intraday)A
Read-onlyIdempotent
Inspect

Get A/H share premium intraday time-share data. Returns items[]{timestamp, premium_rate} showing the intraday A/H premium percentage minute by minute.

Inputs: symbol (required), _jq.

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 AlertA
DestructiveIdempotent
Inspect

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 AlertA
Idempotent
Inspect

Disable a price alert by alert_id. Use alert_list to find the numeric alert_id.

Inputs: alert_id (required), _jq.

alert_enableEnable Price AlertA
Idempotent
Inspect

Enable a price alert by alert_id. Use alert_list to find the numeric alert_id.

Inputs: alert_id (required), _jq.

alert_listList Price AlertsC
Read-onlyIdempotent
Inspect

Get all configured price alerts.

Inputs: _jq.

anomalyMarket AnomalyA
Read-onlyIdempotent
Inspect

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 CardsA
Read-onlyIdempotent
Inspect

List linked withdrawal bank cards for the current account. Returns cards[]{id, bank_name, account_number (masked), currency, status}.

Inputs: _jq.

broker_holdingBroker HoldingA
Read-onlyIdempotent
Inspect

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)A
Read-onlyIdempotent
Inspect

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 DetailA
Read-onlyIdempotent
Inspect

Get full broker holding detail list for a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure).

Inputs: symbol (required), _jq.

brokersBroker QueueA
Read-onlyIdempotent
Inspect

Get broker queue (HK stocks only). Map broker IDs to names via participants.

Inputs: symbol (required), _jq.

business_segmentsBusiness SegmentsA
Read-onlyIdempotent
Inspect

Get current-period business segment revenue breakdown for a symbol (name, percent, total, currency)

Inputs: symbol (required), _jq.

business_segments_historyBusiness Segments HistoryA
Read-onlyIdempotent
Inspect

Get historical business segment revenue trends (by period and category).

Inputs: symbol (required), _jq, cate, report.

calc_indexesCalc IndexesA
Read-onlyIdempotent
Inspect

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 OrderA
DestructiveIdempotent
Inspect

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.

candlesticksCandlesticksA
Read-onlyIdempotent
Inspect

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 DistributionA
Read-onlyIdempotent
Inspect

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 FlowB
Read-onlyIdempotent
Inspect

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 FlowB
Read-onlyIdempotent
Inspect

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 ProfileA
Read-onlyIdempotent
Inspect

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 ConsensusA
Read-onlyIdempotent
Inspect

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 AllocationA
Read-onlyIdempotent
Inspect

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 ActionsB
Read-onlyIdempotent
Inspect

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 SupportA
Read-onlyIdempotent
Inspect

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 HistoryA
Read-onlyIdempotent
Inspect

Get execution history records for a DCA plan by plan_id.

Inputs: plan_id (required), _jq, page, limit.

dca_listList DCA PlansA
Read-onlyIdempotent
Inspect

List DCA recurring investment plans. Filter by status (Active/Suspended/Finished) or symbol.

Inputs: _jq, page, limit, status, +1 more.

dca_pausePause DCA PlanA
Idempotent
Inspect

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 PlanA
Idempotent
Inspect

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 StatisticsC
Read-onlyIdempotent
Inspect

Get DCA investment statistics.

Inputs: _jq, symbol.

dca_stopStop DCA PlanA
DestructiveIdempotent
Inspect

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 PlanA
DestructiveIdempotent
Inspect

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 GroupA
DestructiveIdempotent
Inspect

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.

depositsDepositsA
Read-onlyIdempotent
Inspect

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 DepthB
Read-onlyIdempotent
Inspect

Get order book depth for a symbol. Up to 10 price levels.

Inputs: symbol (required), _jq.

dividendDividendA
Read-onlyIdempotent
Inspect

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 DetailB
Read-onlyIdempotent
Inspect

Get detailed dividend distribution scheme.

Inputs: symbol (required), _jq.

estimate_max_purchase_quantityEstimate Max Purchase QuantityA
Read-onlyIdempotent
Inspect

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)A
Read-onlyIdempotent
Inspect

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 RateA
Read-onlyIdempotent
Inspect

Get exchange rates for all supported currencies. Returns list[]{from_currency, to_currency, rate, timestamp} covering USD, HKD, CNY, SGD and others.

Inputs: _jq.

executiveExecutiveB
Read-onlyIdempotent
Inspect

Get company executive and board member information.

Inputs: symbol (required), _jq.

filingsFilingsA
Read-onlyIdempotent
Inspect

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 CalendarA
Read-onlyIdempotent
Inspect

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 ReportC
Read-onlyIdempotent
Inspect

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)A
Read-onlyIdempotent
Inspect

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 ReportC
Read-onlyIdempotent
Inspect

Get the latest financial report summary for a security.

Inputs: symbol (required), _jq.

financial_report_snapshotFinancial Report SnapshotA
Read-onlyIdempotent
Inspect

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 StatementsB
Read-onlyIdempotent
Inspect

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 EPSB
Read-onlyIdempotent
Inspect

Get EPS forecast and analyst estimate history.

Inputs: symbol (required), _jq.

fund_analysisFund AnalysisB
Read-onlyIdempotent
Inspect

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 DetailA
Read-onlyIdempotent
Inspect

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 ReturnsA
Read-onlyIdempotent
Inspect

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 OrderA
DestructiveIdempotent
Inspect

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 DetailA
Read-onlyIdempotent
Inspect

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 FiltersA
Read-onlyIdempotent
Inspect

Get the filter options (filter object shape and quick-filter ids) accepted by fund_list. No parameters.

Inputs: _jq.

fund_holderFund HoldersB
Read-onlyIdempotent
Inspect

Get funds and ETFs that hold a given symbol.

Inputs: symbol (required), _jq.

fund_holdingsFund HoldingsA
Read-onlyIdempotent
Inspect

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 ListA
Read-onlyIdempotent
Inspect

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 ListA
Read-onlyIdempotent
Inspect

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_navFund NAVA
Read-onlyIdempotent
Inspect

Get a fund's latest net asset value (NAV). counter_id from fund_hot / fund_list.

Inputs: counter_id (required), _jq.

fund_nav_historyFund NAV HistoryA
Read-onlyIdempotent
Inspect

Get a fund's historical NAV series, paged. counter_id from fund_hot / fund_list; optional page / size.

Inputs: counter_id (required), _jq, page, size.

fund_nav_rangeFund NAV RangeA
Read-onlyIdempotent
Inspect

Get a fund's historical NAV over a relative window. counter_id from fund_hot / fund_list; set month_before or year_before.

Inputs: counter_id (required), _jq, year_before, month_before.

fund_orderFund Order DetailA
Read-onlyIdempotent
Inspect

Get one fund order's detail by order_id (from fund_orders). Requires auth.

Inputs: order_id (required), _jq.

fund_ordersFund OrdersB
Read-onlyIdempotent
Inspect

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 PerformanceA
Read-onlyIdempotent
Inspect

Get a fund's daily performance figures. counter_id from fund_hot / fund_list.

Inputs: counter_id (required), _jq.

fund_performance_comparisonFund Performance ComparisonA
Read-onlyIdempotent
Inspect

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 PositionA
Read-onlyIdempotent
Inspect

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 DividendsA
Read-onlyIdempotent
Inspect

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_navFund Position NAVA
Read-onlyIdempotent
Inspect

Get a held fund's NAV history over a relative window. Requires auth. counter_id from fund_position_overview; set month_before or year_before.

Inputs: counter_id (required), _jq, year_before, month_before.

fund_position_overviewFund Position OverviewB
Read-onlyIdempotent
Inspect

Get the signed-in user's fund positions overview (all held funds). Requires an authenticated token. No parameters.

Inputs: _jq.

fund_position_performanceFund Position PerformanceB
Read-onlyIdempotent
Inspect

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 ProfitsA
Read-onlyIdempotent
Inspect

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 PositionsC
Read-onlyIdempotent
Inspect

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 ReturnsA
Read-onlyIdempotent
Inspect

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 HoldingsB
Read-onlyIdempotent
Inspect

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 OrderA
Destructive
Inspect

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 TransactionsB
Read-onlyIdempotent
Inspect

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 TrendB
Read-onlyIdempotent
Inspect

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 OrderA
Idempotent
Inspect

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 OrderA
DestructiveIdempotent
Inspect

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 DetailA
Read-only
Inspect

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 OrdersB
Read-only
Inspect

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 IDsB
Read-only
Inspect

Fetch specific grid orders by their IDs.

Inputs: order_ids (required), _jq.

grid_replaceReplace Grid OrderA
DestructiveIdempotent
Inspect

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 OrderA
Idempotent
Inspect

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 OrderA
Idempotent
Inspect

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 InfoA
Read-only
Inspect

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 HistoryB
Read-only
Inspect

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 DateB
Read-onlyIdempotent
Inspect

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 OffsetA
Read-onlyIdempotent
Inspect

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 ExecutionsA
Read-onlyIdempotent
Inspect

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 TemperatureA
Read-onlyIdempotent
Inspect

Get historical market temperature time series.

Inputs: end (required), start (required), market (required), _jq.

history_ordersHistorical OrdersA
Read-onlyIdempotent
Inspect

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 PeersA
Read-onlyIdempotent
Inspect

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 RankA
Read-onlyIdempotent
Inspect

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 ValuationC
Read-onlyIdempotent
Inspect

Get industry valuation comparison for peers.

Inputs: symbol (required), _jq.

industry_valuation_distIndustry Valuation DistributionB
Read-onlyIdempotent
Inspect

Get industry PE/PB/PS valuation distribution.

Inputs: symbol (required), _jq.

institutional_viewsInstitutional ViewsC
Read-onlyIdempotent
Inspect

Get monthly institutional rating distribution timeline.

Inputs: symbol (required), _jq.

institution_ratingInstitution RatingC
Read-onlyIdempotent
Inspect

Get institution rating summary.

Inputs: symbol (required), _jq.

institution_rating_detailInstitution Rating DetailC
Read-onlyIdempotent
Inspect

Get detailed historical institution ratings and target price history.

Inputs: symbol (required), _jq.

institution_rating_historyInstitution Rating HistoryC
Read-onlyIdempotent
Inspect

Get institution rating history.

Inputs: symbol (required), _jq.

institution_rating_industry_rankInstitution Rating Industry RankA
Read-onlyIdempotent
Inspect

Get peers ranked by institution analyst ratings in the same industry. Paginated.

Inputs: symbol (required), _jq, page, size.

intradayIntraday LineB
Read-onlyIdempotent
Inspect

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 RelationsB
Read-onlyIdempotent
Inspect

Get investor relations events and announcements.

Inputs: symbol (required), _jq.

ipo_calendarIPO CalendarC
Read-onlyIdempotent
Inspect

Show the IPO calendar.

Inputs: _jq.

ipo_detailIPO DetailB
Read-onlyIdempotent
Inspect

Show IPO detail for a symbol.

Inputs: symbol (required), _jq, market.

ipo_listedIPO ListedB
Read-onlyIdempotent
Inspect

List recently listed IPO stocks (HK+US).

Inputs: _jq, page, size.

ipo_order_detailIPO Order DetailB
Read-onlyIdempotent
Inspect

Show detailed information for a specific IPO order by order_id.

Inputs: order_id (required), _jq.

ipo_ordersIPO OrdersA
Read-onlyIdempotent
Inspect

List IPO orders (active+history). Filter by symbol, market, or status.

Inputs: _jq, page, size, market, +2 more.

ipo_profit_lossIPO Profit / LossA
Read-onlyIdempotent
Inspect

Show IPO profit/loss summary and per-stock breakdown. period: all/ytd/1y/3y.

Inputs: _jq, page, size, period.

ipo_subscriptionsIPO SubscriptionsA
Read-onlyIdempotent
Inspect

List IPO stocks in subscription/pre-filing stage (HK+US).

Inputs: _jq.

macrodataMacro Indicator DataA
Read-onlyIdempotent
Inspect

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 ListA
Read-onlyIdempotent
Inspect

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 RatioB
Read-onlyIdempotent
Inspect

Get margin ratio for a symbol.

Inputs: symbol (required), _jq.

market_statusMarket StatusC
Read-onlyIdempotent
Inspect

Get current market trading status for all markets.

Inputs: _jq.

market_temperatureMarket TemperatureC
Read-onlyIdempotent
Inspect

Get current market sentiment temperature. market: HK/US/CN/SG.

Inputs: market (required), _jq.

newsNewsA
Read-onlyIdempotent
Inspect

Get latest news articles for a symbol. Returns items[]{id, title, source, publish_time, summary, url, related_symbols[]}.

Inputs: symbol (required), _jq.

news_detailNews DetailA
Read-onlyIdempotent
Inspect

Get one news article's full detail by id (from news/news_search).

Inputs: id (required), _jq.

nowCurrent TimeA
Read-onlyIdempotent
Inspect

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 PerformanceA
Read-onlyIdempotent
Inspect

Get company operating metrics (HK stocks only).

Inputs: symbol (required), _jq.

option_chain_expiry_date_listOption Expiry DatesA
Read-onlyIdempotent
Inspect

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 DateA
Read-onlyIdempotent
Inspect

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 QuoteA
Read-onlyIdempotent
Inspect

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 VolumeA
Read-onlyIdempotent
Inspect

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)A
Read-onlyIdempotent
Inspect

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 DetailA
Read-onlyIdempotent
Inspect

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 ParticipantsA
Read-onlyIdempotent
Inspect

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 AnalysisA
Read-onlyIdempotent
Inspect

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 DetailB
Read-onlyIdempotent
Inspect

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)A
Read-onlyIdempotent
Inspect

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 ScriptA
Read-onlyIdempotent
Inspect

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.

quoteQuoteA
Read-onlyIdempotent
Inspect

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 CategoriesB
Read-onlyIdempotent
Inspect

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 ListA
Read-onlyIdempotent
Inspect

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 OrderA
DestructiveIdempotent
Inspect

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 IndicatorsA
Read-onlyIdempotent
Inspect

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 StrategiesA
Read-onlyIdempotent
Inspect

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_strategyScreener StrategyA
Read-onlyIdempotent
Inspect

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 StrategiesA
Read-onlyIdempotent
Inspect

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 FactsA
Read-onlyIdempotent
Inspect

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 ListA
Read-onlyIdempotent
Inspect

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.

shareholderShareholdersB
Read-onlyIdempotent
Inspect

Get institutional shareholders for a symbol.

Inputs: symbol (required), _jq.

shareholder_detailShareholder DetailA
Read-onlyIdempotent
Inspect

Get a single shareholder's holding and trade history. Requires object_id from shareholder_top. Note: trading_details[] is empty for institutional (13F) holders — it is only populated for insider/individual filers (Form 4).

Inputs: symbol (required), object_id (required), _jq.

shareholder_topTop 20 ShareholdersA
Read-onlyIdempotent
Inspect

Get Top 20 major shareholders (institutions, individuals, insiders) across reporting periods. Use object_id with shareholder_detail to drill into a holder's full trade history.

Inputs: symbol (required), _jq.

sharelist_addAdd to SharelistAInspect

Add securities to a community sharelist by id. Provide symbols (e.g. ["AAPL.US", "700.HK"]) to add. Returns upstream API response.

Inputs: id (required), symbols (required), _jq.

sharelist_createCreate SharelistBInspect

Create a new community sharelist with a name and optional description.

Inputs: name (required), _jq, description.

sharelist_deleteDelete SharelistA
DestructiveIdempotent
Inspect

Delete a community sharelist by id (own lists only; subscribed lists cannot be deleted). Returns upstream API response on success.

Inputs: id (required), _jq.

sharelist_detailSharelist DetailB
Read-onlyIdempotent
Inspect

Get community sharelist detail by id.

Inputs: id (required), _jq.

sharelist_listList SharelistsA
Read-onlyIdempotent
Inspect

List user's own and subscribed community sharelists.

Inputs: _jq, count.

sharelist_removeRemove from SharelistA
DestructiveIdempotent
Inspect

Remove securities from a community sharelist by id. Provide symbols to remove. Returns upstream API response on success.

Inputs: id (required), symbols (required), _jq.

sharelist_sortSort SharelistA
DestructiveIdempotent
Inspect

Reorder securities in a community sharelist by id. Provide symbols in the desired new order. Returns upstream API response on success.

Inputs: id (required), symbols (required), _jq.

short_marginShort MarginB
Read-onlyIdempotent
Inspect

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 PositionsA
Read-onlyIdempotent
Inspect

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 TradesA
Read-onlyIdempotent
Inspect

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 DetailA
Read-onlyIdempotent
Inspect

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.

signalsSignalsA
Read-onlyIdempotent
Inspect

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 StatementA
Read-onlyIdempotent
Inspect

Get a pre-signed download URL for a statement data file (obtained from statement_list).

Inputs: file_key (required), _jq.

statement_listStatement ListA
Read-onlyIdempotent
Inspect

List available account statements (daily/monthly). Use the id with statement_export to download.

Inputs: _jq, limit, start_date, statement_type.

static_infoSecurity Static InfoA
Read-onlyIdempotent
Inspect

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 PositionsA
Read-onlyIdempotent
Inspect

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 OrderA
Destructive
Inspect

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 OrderA
Destructive
Inspect

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 ExecutionsA
Read-onlyIdempotent
Inspect

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 OrdersA
Read-onlyIdempotent
Inspect

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 ListB
Read-onlyIdempotent
Inspect

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 DetailA
Read-onlyIdempotent
Inspect

Get discussion topic detail by topic_id.

Inputs: topic_id (required), _jq.

topic_repliesTopic RepliesA
Read-onlyIdempotent
Inspect

Get replies to a discussion topic, paginated (page default 1, size default 20, range 1-50)

Inputs: topic_id (required), _jq, page, size.

top_moversTop MoversA
Read-onlyIdempotent
Inspect

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 TradesA
Read-onlyIdempotent
Inspect

Get recent trades (max 1000). Returns trades[]{price, volume, timestamp, trade_type, direction} for the symbol.

Inputs: count (required), symbol (required), _jq.

trade_statsTrade StatisticsA
Read-onlyIdempotent
Inspect

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 DaysB
Read-onlyIdempotent
Inspect

Get trading days for a market between dates. market: HK/US/CN/SG.

Inputs: end (required), start (required), market (required), _jq.

trading_sessionTrading SessionsA
Read-onlyIdempotent
Inspect

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 GroupA
DestructiveIdempotent
Inspect

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.

valuationValuationA
Read-onlyIdempotent
Inspect

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 ComparisonB
Read-onlyIdempotent
Inspect

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 HistoryC
Read-onlyIdempotent
Inspect

Get detailed valuation history time series.

Inputs: symbol (required), _jq.

valuation_rankValuation RankA
Read-onlyIdempotent
Inspect

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 IssuersA
Read-onlyIdempotent
Inspect

Get HK warrant issuer information. Returns issuers[]{id, name_en, name_cn}. Use id in warrant_list issuer filter.

Inputs: _jq.

warrant_listWarrant ListA
Read-onlyIdempotent
Inspect

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 QuoteA
Read-onlyIdempotent
Inspect

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.

watchlistWatchlistA
Read-onlyIdempotent
Inspect

Get all watchlist groups and their securities. Returns groups[]{id, name, securities[]{symbol, market, name, watched_price, watched_at}}.

Inputs: _jq.

withdrawalsWithdrawalsA
Read-onlyIdempotent
Inspect

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

    B3.1/5.0

    Scored across 193 tools

    Disambiguation3/5

    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.

    Naming Consistency3/5

    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.

    Tool Count1/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      D
      quality
      D
      maintenance
      Provides 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.
      22
      177
      -
    • A
      license
      C
      quality
      D
      maintenance
      Enables 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.
      9
      26
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides 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.
      -
    • A
      license
      B
      quality
      B
      maintenance
      Unified 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.
      500
      10
      MIT