Longbridge MCP logo

Longbridge MCP

Longbridge MCP lets agents access authorized market data, account information, portfolio data, trading operations, and investment workflows through Longbridge OpenAPI.

162 actions Integration catalog
Request access
Connect Longbridge MCP once you're in Boring.
01 · WHAT THE AGENT CAN DO

Actions

Every capability is a discrete, logged action the agent calls by name — scoped to what you authorize and recorded in the run trace.

Account balanceLONGBRIDGE_MCP_ACCOUNT_BALANCE
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").
Ah premiumLONGBRIDGE_MCP_AH_PREMIUM
Get A/H share premium historical K-line data. Returns items[]{timestamp, open, high, low, close} representing the premium percentage over the given period.
Ah premium intradayLONGBRIDGE_MCP_AH_PREMIUM_INTRADAY
Get A/H share premium intraday time-share data. Returns items[]{timestamp, premium_rate} showing the intraday A/H premium percentage minute by minute.
Alert addLONGBRIDGE_MCP_ALERT_ADD
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.
Alert deleteLONGBRIDGE_MCP_ALERT_DELETE
Delete a price alert by alert_id (numeric string from alert_list). Returns upstream API response on success; errors if alert_id is invalid.
Alert disableLONGBRIDGE_MCP_ALERT_DISABLE
Disable a price alert by alert_id. Use alert_list to find the numeric alert_id.
Alert enableLONGBRIDGE_MCP_ALERT_ENABLE
Enable a price alert by alert_id. Use alert_list to find the numeric alert_id.
Alert listLONGBRIDGE_MCP_ALERT_LIST
Get all configured price alerts.
AnomalyLONGBRIDGE_MCP_ANOMALY
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).
Bank cardsLONGBRIDGE_MCP_BANK_CARDS
List linked withdrawal bank cards for the current account. Returns cards[]{id, bank_name, account_number (masked), currency, status}.
Broker holdingLONGBRIDGE_MCP_BROKER_HOLDING
Get top broker holding data for a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure).
Broker holding dailyLONGBRIDGE_MCP_BROKER_HOLDING_DAILY
Get daily holding history for a specific broker (by broker_id) in a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure).
Broker holding detailLONGBRIDGE_MCP_BROKER_HOLDING_DETAIL
Get full broker holding detail list for a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure).
BrokersLONGBRIDGE_MCP_BROKERS
Get broker queue (HK stocks only). Map broker IDs to names via participants.
Business segmentsLONGBRIDGE_MCP_BUSINESS_SEGMENTS
Get current-period business segment revenue breakdown for a symbol (name, percent, total, currency)
Business segments historyLONGBRIDGE_MCP_BUSINESS_SEGMENTS_HISTORY
Get historical business segment revenue trends (by period and category).
Calc indexesLONGBRIDGE_MCP_CALC_INDEXES
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.
Cancel orderLONGBRIDGE_MCP_CANCEL_ORDER
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.
CandlesticksLONGBRIDGE_MCP_CANDLESTICKS
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.
Capital distributionLONGBRIDGE_MCP_CAPITAL_DISTRIBUTION
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.
Capital flowLONGBRIDGE_MCP_CAPITAL_FLOW
Get capital inflow/outflow time series. Returns items[]{timestamp, inflow, outflow, net_flow} for the symbol (same-day data).
Cash flowLONGBRIDGE_MCP_CASH_FLOW
Get cash flow records (deposits, withdrawals, dividends). Returns items[]{transaction_type, amount, currency, balance, created_at, remark}. start_at/end_at in RFC3339.
CompanyLONGBRIDGE_MCP_COMPANY
Get company overview. US accounts querying a .US symbol get a differently-shaped response not matching output_schema (intro, market_cap, top_rank_tags, sharelist, detail_url); other combinations match output_schema.
ConsensusLONGBRIDGE_MCP_CONSENSUS
Get financial consensus estimates for upcoming periods. US accounts querying a .US symbol get a differently-shaped response not matching output_schema (ai_summary plus a details[] list per period); other combinations match output_schema.
ConstituentLONGBRIDGE_MCP_CONSTITUENT
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}.
Corp actionLONGBRIDGE_MCP_CORP_ACTION
Get corporate actions (splits, buybacks, name changes).
Create watchlist groupLONGBRIDGE_MCP_CREATE_WATCHLIST_GROUP
Create a new watchlist group. Optionally pass securities (e.g. ["AAPL.US", "700.HK"]) to pre-populate.
Dca checkLONGBRIDGE_MCP_DCA_CHECK
Check whether given symbols support DCA recurring investment.
Dca createLONGBRIDGE_MCP_DCA_CREATE
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.
Dca historyLONGBRIDGE_MCP_DCA_HISTORY
Get execution history records for a DCA plan by plan_id.
Dca listLONGBRIDGE_MCP_DCA_LIST
List DCA recurring investment plans. Filter by status (Active/Suspended/Finished) or symbol.
Dca pauseLONGBRIDGE_MCP_DCA_PAUSE
Pause (suspend) a DCA plan by plan_id. The plan stops executing until resumed. Returns upstream API response. Use dca_resume to restart.
Dca resumeLONGBRIDGE_MCP_DCA_RESUME
Resume a suspended DCA plan by plan_id. Resumes automated execution on the configured schedule. Returns upstream API response.
Dca statsLONGBRIDGE_MCP_DCA_STATS
Get DCA investment statistics.
Dca stopLONGBRIDGE_MCP_DCA_STOP
Permanently stop a DCA plan by plan_id. This cannot be undone. To temporarily pause, use dca_pause instead. Returns upstream API response.
Dca updateLONGBRIDGE_MCP_DCA_UPDATE
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.
Delete watchlist groupLONGBRIDGE_MCP_DELETE_WATCHLIST_GROUP
Delete a watchlist group by id (numeric). Set purge=true to also remove its securities from all other groups.
DepositsLONGBRIDGE_MCP_DEPOSITS
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.
DepthLONGBRIDGE_MCP_DEPTH
Get order book depth for a symbol. Up to 10 price levels.
DividendLONGBRIDGE_MCP_DIVIDEND
Get dividend history for the symbol. US accounts querying a .US symbol get a differently-shaped response not matching output_schema (dividend_yield_ttm etc. are percent values, e.g. 0.34 means 0.34%); other combinations match output_schema.
Dividend detailLONGBRIDGE_MCP_DIVIDEND_DETAIL
Get detailed dividend distribution scheme.
Estimate max purchase quantityLONGBRIDGE_MCP_ESTIMATE_MAX_PURCHASE_QUANTITY
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.
Exchange rateLONGBRIDGE_MCP_EXCHANGE_RATE
Get exchange rates for all supported currencies. Returns list[]{from_currency, to_currency, rate, timestamp} covering USD, HKD, CNY, SGD and others.
ExecutiveLONGBRIDGE_MCP_EXECUTIVE
Get company executive and board member information.
FilingsLONGBRIDGE_MCP_FILINGS
Get regulatory filings (8-K, 10-Q, 10-K, etc.). Returns items[]{id, title, type, language, filing_date, url} for the symbol.
Finance calendarLONGBRIDGE_MCP_FINANCE_CALENDAR
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.
Financial reportLONGBRIDGE_MCP_FINANCIAL_REPORT
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).
Financial report latestLONGBRIDGE_MCP_FINANCIAL_REPORT_LATEST
Get the latest financial report summary for a security.
Financial report snapshotLONGBRIDGE_MCP_FINANCIAL_REPORT_SNAPSHOT
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.
Financial statementLONGBRIDGE_MCP_FINANCIAL_STATEMENT
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.
Forecast epsLONGBRIDGE_MCP_FORECAST_EPS
Get EPS forecast and analyst estimate history.
Fund holderLONGBRIDGE_MCP_FUND_HOLDER
Get funds and ETFs that hold a given symbol.
Fund positionsLONGBRIDGE_MCP_FUND_POSITIONS
Get current fund positions.
Grid cancelLONGBRIDGE_MCP_GRID_CANCEL
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.
Grid detailLONGBRIDGE_MCP_GRID_DETAIL
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.
Grid listLONGBRIDGE_MCP_GRID_LIST
List grid trading orders. Filter by symbol or comma-joined status (e.g. "Performing,Suspended"); supports page/limit and sort_by/sort_order.
Grid list by idsLONGBRIDGE_MCP_GRID_LIST_BY_IDS
Fetch specific grid orders by their IDs.
Grid questionnaireLONGBRIDGE_MCP_GRID_QUESTIONNAIRE
Record the one-time grid strategy risk-disclosure consent required before submitting grid orders. Takes no parameters.
Grid replaceLONGBRIDGE_MCP_GRID_REPLACE
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.
Grid restartLONGBRIDGE_MCP_GRID_RESTART
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.
Showing the first 60 of 162 actions.