Skip to main content
Glama
longbridge

longbridge

Official

Longbridge 증권사를 위한 공식 MCP 서버입니다. 실시간 시세, 옵션, 주문 라우팅, 기본적 분석, 애널리스트 평가, 캘린더, 가격 알림, DCA 플랜, 포트폴리오 분석 및 커뮤니티 공유 목록 등 110개의 도구를 제공하며, 미국 및 홍콩 시장을 지원합니다. rmcp와 axum을 사용하여 Rust로 구축되었습니다.

주요 기능

  • 110개의 MCP 도구: 시세, 트레이딩, 기본적 분석, 시장 데이터, 캘린더, 포트폴리오, 알림, 콘텐츠, 계좌 명세서, DCA, 커뮤니티 공유 목록 등 11개 카테고리

  • 상태 비저장(Stateless) 아키텍처: 각 요청은 Longbridge SDK로 직접 전달되는 Bearer 토큰을 포함하며, 서버 측 세션이나 데이터베이스를 사용하지 않음

  • OAuth 2.1 리소스 메타데이터: RFC 9728을 준수하여 클라이언트가 인증을 위해 Longbridge OAuth로 연결되도록 안내

  • JSON 응답 변환: 필드 이름을 snake_case로 정규화, 타임스탬프를 RFC 3339로 변환, 내부 counter_id 값을 사람이 읽을 수 있는 심볼로 매핑

  • Prometheus 메트릭: 도구 호출, 지연 시간 및 오류 모니터링

  • 구성 가능: CLI 인수 또는 JSON 구성 파일을 통해 설정 가능 (CLI 우선)

Related MCP server: Finance MCP

MCP 클라이언트에서 연결

Longbridge는 https://openapi.longbridge.com/mcp에서 호스팅되는 엔드포인트를 운영하므로, 대부분의 사용자는 별도의 서버를 실행할 필요가 없습니다. MCP 클라이언트에서 해당 주소를 지정하고 메시지가 표시되면 OAuth를 완료하기만 하면 됩니다. 인증은 RFC 9728을 통해 자동으로 검색됩니다.

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json(macOS) 또는 운영체제에 맞는 해당 파일에 추가하세요:

{
  "mcpServers": {
    "longbridge": {
      "url": "https://openapi.longbridge.com/mcp"
    }
  }
}

Claude Desktop을 재시작하세요. 첫 도구 호출 시 브라우저가 열리며 Longbridge OAuth 흐름을 완료하게 됩니다.

Claude Code

claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp

Cursor / Cline / Windsurf / 기타 MCP 클라이언트

streamable-http 전송 방식을 사용하여 클라이언트를 https://openapi.longbridge.com/mcp로 지정하세요. OAuth는 RFC 9728을 통해 자동으로 검색되므로 수동 토큰이 필요하지 않습니다.


자체 호스팅

직접 인스턴스를 실행하고 싶으신가요? Docker를 사용하거나 소스에서 빌드하세요.

Docker (권장)

docker run -p 8443:8443 \
  -v /path/to/certs:/certs:ro \
  ghcr.io/longbridge/longbridge-mcp \
  --bind 0.0.0.0:8443 \
  --base-url https://mcp.example.com \
  --tls-cert /certs/cert.pem \
  --tls-key /certs/key.pem

중요: 공용 네트워크에 배포할 때는 --base-url을 서버의 외부 접근 가능한 URL(예: https://mcp.example.com)로 설정해야 합니다. 이 URL은 OAuth 보호 리소스 메타데이터로 반환되며 MCP 클라이언트가 인증 서버를 찾는 데 사용됩니다. 설정하지 않으면 기본값인 http://localhost:{port}가 사용되어 원격 클라이언트에서 작동하지 않습니다.

소스에서 빌드

cargo build --release
./target/release/longbridge-mcp

구성

~/.longbridge/mcp/config.json에 구성 파일을 생성하세요(선택 사항):

{
  "bind": "127.0.0.1:8000",
  "base_url": "https://mcp.example.com",
  "log_dir": "/var/log/longbridge-mcp"
}

구성

옵션

구성 키

CLI 플래그

기본값

설명

바인딩 주소

bind

--bind

127.0.0.1:8000

HTTP 서버 수신 주소

기본 URL

base_url

--base-url

자동

리소스 메타데이터를 위한 공용 기본 URL

로그 디렉토리

log_dir

--log-dir

(stderr)

롤링 로그 파일 디렉토리

TLS 인증서

tls_cert

--tls-cert

(없음)

HTTPS용 PEM 인증서 파일

TLS 개인 키

tls_key

--tls-key

(없음)

HTTPS용 PEM 개인 키 파일

CLI 인수는 구성 파일 값을 덮어씁니다. 구성 파일은 ~/.longbridge/mcp/config.json에서 읽습니다(LONGBRIDGE_MCP_CONFIG_DIR로 재정의 가능).

tls_cert와 tls_key가 모두 설정되면 서버는 HTTPS로 실행됩니다. 그렇지 않으면 HTTP로 대체됩니다. base_url은 TLS 사용 시 https://localhost:{port}, 미사용 시 http://localhost:{port}가 기본값입니다.

환경 변수

이 설정들은 고급 설정으로, 대부분의 사용자는 변경할 필요가 없습니다. 주로 비운영 Longbridge 환경에 연결하거나 SDK 내부를 디버깅할 때 유용합니다.

변수

기본값

설명

LONGBRIDGE_MCP_CONFIG_DIR

~/.longbridge/mcp

구성 파일 디렉토리

LONGBRIDGE_HTTP_URL

https://openapi.longbridge.com

Longbridge API 기본 URL (OAuth 메타데이터에도 사용)

LONGBRIDGE_QUOTE_WS_URL

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

시세 WebSocket 엔드포인트

LONGBRIDGE_TRADE_WS_URL

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

트레이딩 WebSocket 엔드포인트

LONGBRIDGE_LOG_PATH

(없음)

SDK 내부 로그 경로

인증

서버는 Authorization: Bearer <token> 헤더에 Longbridge OAuth 액세스 토큰을 기대합니다. 인증이 누락되거나 유효하지 않은 경우, 보호된 리소스 메타데이터 엔드포인트를 가리키는 WWW-Authenticate 헤더와 함께 401을 반환하며, 이는 MCP 클라이언트를 Longbridge OAuth 인증 서버로 안내합니다.

Claude Code 통합

연결 → Claude Code의 한 줄 명령어로 연결할 수 있습니다. 아래는 이 서버를 개발할 때 사용할 추가 명령어입니다.

# Hosted — use this unless you have a reason not to
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp

# Local self-hosted instance (see Self-hosting above)
claude mcp add --transport http longbridge-local http://localhost:8000/mcp

# Inspect
claude mcp list                         # registered servers
claude mcp get longbridge               # config + auth status of one server
claude mcp remove longbridge            # unregister

# Re-trigger OAuth (e.g. after token revocation on the Longbridge side)
claude mcp logout longbridge

첫 도구 호출 시, Claude Code는 서버로부터 WWW-Authenticate 챌린지를 읽고 /.well-known/oauth-protected-resource(RFC 9728)를 가져온 뒤, Longbridge OAuth 흐름을 위해 브라우저를 엽니다. 액세스 토큰은 세션별로 캐시되며 자동으로 갱신됩니다.

API 엔드포인트

메서드

경로

설명

GET

/.well-known/oauth-protected-resource

보호된 리소스 메타데이터 (RFC 9728)

GET

/metrics

Prometheus 메트릭

POST/GET/DELETE

/mcp

MCP Streamable HTTP 엔드포인트 (Bearer 토큰 필요)

도구 카테고리

카테고리

개수

설명

시세

32

실시간 및 과거 시세, 캔들스틱, 호가창, 브로커, 옵션, 워런트, 관심 종목, 자금 흐름, 시장 온도, 공매도 잔고, 옵션 거래량

트레이딩

14

주문 제출/취소/수정, 잔고, 체결 내역, 현금 흐름, 증거금

기본적 분석

18

재무 보고서, 애널리스트 평가, 배당금, EPS 전망, 가치 평가, 기업 정보, 주주, 기업 활동

시장

9

시장 상태, 브로커 보유량, A/H 프리미엄, 거래 통계, 이상 징후, 지수 구성 종목

콘텐츠

8

뉴스, 토론 주제, 공시 세부 정보

DCA

9

적립식 투자(DCA) 플랜 생성/수정/일시정지/재개/중단, 실행 내역, 통계 및 지원 확인

공유 목록

8

커뮤니티 공유 목록 CRUD, 멤버 추가/제거/정렬, 인기 목록

알림

5

가격 알림 CRUD (추가, 삭제, 활성화, 비활성화, 목록)

포트폴리오

3

환율, 날짜 범위 선택 가능한 손익 분석

명세서

2

계좌 명세서 목록 및 내보내기

캘린더

1

재무 캘린더 이벤트 (실적 발표, 배당금, IPO, 거시 경제 데이터, 시장 휴장일)

유틸리티

1

현재 UTC 시간

Prometheus 메트릭

메트릭

유형

설명

mcp_tool_calls_total

카운터

총 도구 호출 횟수 (라벨: tool_name)

mcp_tool_call_duration_seconds

히스토그램

도구 호출 지연 시간 (라벨: tool_name)

mcp_tool_call_errors_total

카운터

도구 호출 오류 횟수 (라벨: tool_name)

프로젝트 구조

src/
  main.rs              CLI args, config loading, axum server setup
  auth/
    mod.rs             Router composition, MCP service wiring
    metadata.rs        Protected Resource Metadata (RFC 9728)
    middleware.rs       Bearer token extraction middleware
  tools/
    mod.rs             MCP tool definitions and ServerHandler impl
    quote.rs           Quote tools (SDK QuoteContext)
    trade.rs           Trade tools (SDK TradeContext)
    fundamental.rs     Fundamental data (HTTP API)
    market.rs          Market data extensions (HTTP API)
    calendar.rs        Finance calendar (HTTP API)
    portfolio.rs       Portfolio analytics (HTTP API)
    dca.rs             Dollar-cost averaging / recurring investment (HTTP API)
    sharelist.rs       Community sharelist management (HTTP API)
    alert.rs           Price alerts (HTTP API)
    content.rs         News, topics, filings (SDK ContentContext + HTTP)
    statement.rs       Account statements (HTTP API)
    http_client.rs     Shared HTTP client helpers
    parse.rs           Parameter parsing helpers
  serialize/           JSON transformation (snake_case, timestamps, counter_id -> symbol)
  counter.rs           Symbol <-> counter_id bidirectional conversion
  metrics.rs           Prometheus metric definitions and /metrics handler
  error.rs             Unified error type (thiserror)

개발

# Format
cargo +nightly fmt

# Lint
cargo clippy

# Test
cargo test

라이선스

자세한 내용은 LICENSE를 참조하세요.

Available Tools

193 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