MCP ScannerCustom audit
All servers

longbridge/longbridge-mcp

US/HK markets — 163 tools: quotes, options, orders, fundamentals, screener, IPO, alerts, DCA & grid

Packagelongbridge-mcp
Version0.16.5 in Cargo.toml
Publisherlongbridge community
MCP Registrycom.longbridge/mcp
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 16Forks 5Last push 2026-11-16
Rust 98.5%Python 1.5%by source files the scanner reads
Code safetypartly tracedExposure6.1Prompts10.0Supply chain3.9Secrets10.0Transparency10.0
Analysis confidence94%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure6.1/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain3.9/10Poor

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • In 196 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there

Top risks in plain words

  • HIGH14 production dependencies have known vulnerabilities (worst: high).

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Update its vulnerable packages

    Use protobuf 3.7.2 or later, quinn-proto 0.11.19 or later, quinn-udp 0.5.16 or later, rkyv 0.8.17 or later and 7 more.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 197 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
account_balance, ah_premium, ah_premium_intraday, alert_add, alert_delete, alert_disable and 190 more
196 of 197
Connect to the internet or other hostssend requests or open connections
account_balance, ah_premium, ah_premium_intraday, alert_add, alert_delete, alert_disable and 190 more
196 of 197

No tool was seen to: start other programs on the machine; read passwords, tokens or keys; read environment variables; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

2 request addresses could not be settled from the code (built at run time).

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files196 tools · account_balance, ah_premium, ah_premium_intraday +193
  • web or API responses1 tool · quant_run
Reads private data30 tools
Takes text from outside1 tool
Can send data out0 tools

Not all three are present in the tools the scanner traced.

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (197: 197 tools)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

account_balancetool Get account cash balance and asset summary. Returns a top-level array of {currency, total_cash, net_assets, buy_power, max_finance_amount, remaining_finance_amoFilesNetworkoutside text
Get account cash balance and asset summary. Returns a top-level array of {currency, total_cash, net_assets, buy_power, max_finance_amount, remaining_finance_amount, risk_level, margin_call, init_margin, maintenance_margin, cash_infos[]{currency, available_cash, withdraw_cash, frozen_cash, settling_cash}}. Filter by currency (e.g. "USD", "HKD"). US accounts get a US-specific variant: the same array, one entry for the account currency with currency, total_cash, net_assets, buy_power, maintenance_margin and cash_infos[] (settled_cash in place of settling_cash); max_finance_amount, remaining_finance_amount, risk_level, margin_call and init_margin are absent; US buying-power and margin detail is under us{buy_limit_info, margin_status, cash_list[]}.
ah_premiumtool Get A/H share premium history for a dual-listed HK symbol (e.g. 939.HK). Returns {klines[]{timestamp, aprice, apreclose, hprice, hpreclose, currency_rate, ahpreFilesNetworkoutside text
Get A/H share premium history for a dual-listed HK symbol (e.g. 939.HK). Returns {klines[]{timestamp, aprice, apreclose, hprice, hpreclose, currency_rate, ahpremium_rate}}; ahpremium_rate is a ratio (-0.27 = H trades 27% below A). Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
ah_premium_intradaytool Get today's minute-by-minute A/H share premium for a dual-listed HK symbol (e.g. 939.HK). Returns {klines[]{timestamp, aprice, hprice, ahpremium_rate, currency_FilesNetworkoutside text
Get today's minute-by-minute A/H share premium for a dual-listed HK symbol (e.g. 939.HK). Returns {klines[]{timestamp, aprice, hprice, ahpremium_rate, currency_rate}, apreclose, hpreclose}; ahpremium_rate is a ratio. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
alert_addtool Add a price alert. condition: price_rise/price_fall (absolute price) or percent_rise/percent_fall (relative %). frequency: once/daily/every. Returns created aleFilesNetworkoutside text
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_deletetool Delete a price alert by alert_id (numeric string from alert_list). Returns upstream API response on success; errors if alert_id is invalid.FilesNetworkoutside text
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_disabletool Disable a price alert by alert_id. Returns {alert_id, enabled: false} on success. Use alert_list to find the numeric alert_id.FilesNetworkoutside text
Disable a price alert by alert_id. Returns {alert_id, enabled: false} on success. Use alert_list to find the numeric alert_id.
alert_enabletool Enable a price alert by alert_id. Returns {alert_id, enabled: true} on success. Use alert_list to find the numeric alert_id.FilesNetworkoutside text
Enable a price alert by alert_id. Returns {alert_id, enabled: true} on success. Use alert_list to find the numeric alert_id.
alert_listtool Get all configured price alerts. Returns {lists[]{symbol, name, market, price, chg, indicators[]{id, indicator_id, text (the condition, e.g. "价格涨到 250"), value_FilesNetworkoutside text
Get all configured price alerts. Returns {lists[]{symbol, name, market, price, chg, indicators[]{id, indicator_id, text (the condition, e.g. "价格涨到 250"), value_map{price}, frequency, enabled, state}}}.
anomalytool 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 50FilesNetworkoutside text
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). Returns {changes[]{id, symbol, name, alert_type, alert_name (e.g. rapid rise), alert_time, change_values[] (display strings, e.g. "+2.04%"), emotion (1 bullish, 2 bearish)}, all_off}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
authenticatetool Authenticate when you have no Longbridge credentials yet (e.g. your client could not complete the browser OAuth flow). The user generates a one-time authorizatiFilesNetworkoutside text
Authenticate when you have no Longbridge credentials yet (e.g. your client could not complete the browser OAuth flow). The user generates a one-time authorization code at https://open.longbridge.com/connect and pastes it to you; pass it as `auth_code`. On success the server returns an access token to use as the Bearer credential on subsequent requests, unlocking the full tool set. If you are not authenticated and the user has not provided a code, direct them to https://open.longbridge.com/connect to generate one.
bank_cardstool List linked withdrawal bank cards for the current account. Returns cards[]{id, bank_name, account_number (masked), currency, status}.FilesNetworkoutside text
List linked withdrawal bank cards for the current account. Returns cards[]{id, bank_name, account_number (masked), currency, status}.
broker_holdingtool Get top broker holding changes for a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure). The period argument picks the window: last 1 (defaFilesNetworkoutside text
Get top broker holding changes for a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure). The period argument picks the window: last 1 (default), 5, 20 or 60 days. Returns {updated_at (disclosure date, e.g. "2026.01.02"), buy[], sell[]}: the participants with the largest net increase / decrease over the window, each {name, parti_number, chg (net change in shares held, negative for sellers), strong}. Pass parti_number to broker_holding_daily for one participant's daily history. Non-HK symbols return empty arrays.
broker_holding_dailytool Get daily holding history for a specific broker (by broker_id) in a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure). Returns {list[]{datFilesNetworkoutside text
Get daily holding history for a specific broker (by broker_id) in a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure). Returns {list[]{date (e.g. "2026.10.15"), holding (shares held), chg (change vs the prior day), ratio (fraction of issued shares)}}, newest first.
broker_holding_detailtool Get the broker holding list for a symbol, largest holding first (50 brokers by default; set count for more; HK stocks only; sourced from HKEX CCASS participant FilesNetworkoutside text
Get the broker holding list for a symbol, largest holding first (50 brokers by default; set count for more; HK stocks only; sourced from HKEX CCASS participant disclosure). Returns {updated_at (disclosure date, e.g. "2026.01.02"), list[]{name, parti_number, shares{value, chg_1, chg_5, chg_20, chg_60}, ratio{value, chg_1, chg_5, chg_20, chg_60}, strong}}: shares held and the fraction of shares held (ratio, e.g. "0.0108"), each with its change over the last 1/5/20/60 days. Non-HK symbols return an empty list.
brokerstool Get broker queue (HK stocks only). Returns {bid_brokers[], ask_brokers[]}, best price first, each level {position (1-based), broker_ids[]}. Arrays can be empty.FilesNetworkoutside text
Get broker queue (HK stocks only). Returns {bid_brokers[], ask_brokers[]}, best price first, each level {position (1-based), broker_ids[]}. Arrays can be empty. Map broker IDs to names via participants.
business_segmentstool Get current-period business segment revenue breakdown for a symbol. Returns {total, currency, report_txt, fp_start, fp_end, rpt_date, business: [{id, name, valuFilesNetworkoutside text
Get current-period business segment revenue breakdown for a symbol. Returns {total, currency, report_txt, fp_start, fp_end, rpt_date, business: [{id, name, value, percent, yoy}], regionals: [same shape; may be empty]}.
business_segments_historytool Get historical business segment revenue trends (by period and category). Returns historical[].{date, total, currency, business[{name,percent,value}], regionals[FilesNetworkoutside text
Get historical business segment revenue trends (by period and category). Returns historical[].{date, total, currency, business[{name,percent,value}], regionals[{name,percent,value}]}
calc_indexestool Calculate financial indexes for symbols. Pass symbols, and optionally indexes (e.g. ["PeTtmRatio","PbRatio","LastDone","TurnoverRate"]). When indexes is omittedFilesNetworkoutside text
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, one row per symbol holding only the requested indexes; a requested index the security has no value for is null (market indexes such as 000300.SH or HSI.HK have no PeTtmRatio/PbRatio/DividendRatioTtm; use their constituents instead). 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.
cancel_ordertool 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 FilesNetworkoutside text
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.
candlestickstool 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: FilesNetworkoutside text
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. Each bar's timestamp is its open time in the exchange's local time (HK/CN/SG +08:00, US America/New_York), so for day/week/month/year bars its date part is the trading date.
capital_distributiontool Get capital distribution for a symbol. Returns {timestamp, capital_in{large, medium, small}, capital_out{large, medium, small}, data_available} (decimal stringsFilesNetworkoutside text
Get capital distribution for a symbol. Returns {timestamp, capital_in{large, medium, small}, capital_out{large, medium, small}, data_available} (decimal strings in settlement currency). 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. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
capital_flowtool Get capital inflow time series for the symbol (same-day data). Returns a top-level array of {timestamp, inflow}. Timestamps are in the exchange's local time (HKFilesNetworkoutside text
Get capital inflow time series for the symbol (same-day data). Returns a top-level array of {timestamp, inflow}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
cash_flowtool Get cash flow records (deposits, withdrawals, dividends). Returns a top-level array of {transaction_flow_name, direction (In/Out), business_type, balance (the aFilesNetworkoutside text
Get cash flow records (deposits, withdrawals, dividends). Returns a top-level array of {transaction_flow_name, direction (In/Out), business_type, balance (the amount moved), currency, business_time, symbol, description}. start_at/end_at: RFC3339 or yyyy-mm-dd. direction and business_type are unreliable upstream (always Out / 0); use the sign of balance. US accounts get a US-specific variant: the same array without business_type (see biz_code, biz_code_name); balance is signed (0 when no cash moved, e.g. crypto transfers) and direction comes from its sign, or the quantity's when it is 0 (Unknown when both are 0); plus quantity, quantity_description, ref_no, equity_type; at most 2000 records, so getting 2000 means narrow the range. Newest first.
companytool Get company overview. Returns a flat object of strings: name, company_name, ticker, market, sector, category, region, founded, listing_date, employees, chairmanFilesNetworkoutside text
Get company overview. Returns a flat object of strings: name, company_name, ticker, market, sector, category, region, founded, listing_date, employees, chairman, manager, website, address, profile, … US accounts querying a .US symbol get a US-specific variant {intro, market_cap, ccy_symbol, top_rank_tags[], share_list[], detail_url}. The region is detected from the account automatically.
consensustool Get financial consensus estimates for upcoming periods. Returns {currency, current_period, opt_periods, current_index, list: [{fiscal_year, fiscal_period, perioFilesNetworkoutside text
Get financial consensus estimates for upcoming periods. Returns {currency, current_period, opt_periods, current_index, list: [{fiscal_year, fiscal_period, period_text, details: [{key (revenue/ebit/net_income/normalized_net_income/eps/normalized_eps), estimate, actual, is_released, comp, comp_value, comp_desc}]}], legend: {<key>: {name, description}}}. US accounts querying a .US symbol get a US-specific variant (adds ai_summary, with different per-period fields). The region is detected from the account automatically.
constituenttool Get the constituents of an index or the asset allocation of an ETF. For an index (e.g. HSI.HK, .DJI.US) returns {total, rise_num, fall_num, flat_num, stocks[]{sFilesNetworkoutside text
Get the constituents of an index or the asset allocation of an ETF. For an index (e.g. HSI.HK, .DJI.US) returns {total, rise_num, fall_num, flat_num, stocks[]{symbol, name, last_done, prev_close, chg, inflow, balance, amount, total_shares, circulating_shares, tags[]}}. 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_map}; Holdings groups additionally include code, symbol and holding_detail{industry_name, index_name, holding_type_name}.
corp_actiontool Get corporate events for a symbol: earnings dates, dividends, splits, buybacks, name changes, etc. Returns items[]{id, date (YYYYMMDD), date_type, act_type, actFilesNetworkoutside text
Get corporate events for a symbol: earnings dates, dividends, splits, buybacks, name changes, etc. Returns items[]{id, date (YYYYMMDD), date_type, act_type, act_desc, action (kind code, e.g. ReportDate, DividendExDate), recent, is_delay, delay_content, live}; date_type / act_type / act_desc are localized text, and live is the linked broadcast (e.g. an earnings call: {name, started_at, symbols[]}) or null.
create_watchlist_grouptool Create a new watchlist group. Returns the created group {id, name}. Optionally pass securities (e.g. ["AAPL.US", "700.HK"]) to pre-populate.FilesNetworkoutside text
Create a new watchlist group. Returns the created group {id, name}. Optionally pass securities (e.g. ["AAPL.US", "700.HK"]) to pre-populate.
dca_checktool Check whether given symbols support DCA recurring investment. Returns {infos[]{symbol, support_regular_saving (bool), regular_saving_plan_type}}, one entry per FilesNetworkoutside text
Check whether given symbols support DCA recurring investment. Returns {infos[]{symbol, support_regular_saving (bool), regular_saving_plan_type}}, one entry per queried symbol.
dca_createtool 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.FilesNetworkoutside text
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_historytool Get execution history records for a DCA plan by plan_id. Returns executions[]{date, quantity, amount, price, status, order_id}.FilesNetworkoutside text
Get execution history records for a DCA plan by plan_id. Returns executions[]{date, quantity, amount, price, status, order_id}.
dca_listtool List DCA recurring investment plans. Filter by status (Active/Suspended/Finished) or symbol. Returns plans[]{plan_id, symbol, stock_name, market, status, per_inFilesNetworkoutside text
List DCA recurring investment plans. Filter by status (Active/Suspended/Finished) or symbol. Returns plans[]{plan_id, symbol, stock_name, market, status, per_invest_amount, invest_frequency, invest_day_of_week, invest_day_of_month, next_trd_date, cum_amount, cum_profit, average_cost, issue_number, …}. Use plan_id with dca_update / dca_pause / dca_resume / dca_stop.
dca_pausetool Pause (suspend) a DCA plan by plan_id. The plan stops executing until resumed. Returns upstream API response. Use dca_resume to restart.FilesNetworkoutside text
Pause (suspend) a DCA plan by plan_id. The plan stops executing until resumed. Returns upstream API response. Use dca_resume to restart.
dca_resumetool Resume a suspended DCA plan by plan_id. Resumes automated execution on the configured schedule. Returns upstream API response.FilesNetworkoutside text
Resume a suspended DCA plan by plan_id. Resumes automated execution on the configured schedule. Returns upstream API response.
dca_statstool Get DCA investment statistics. Returns {total_amount, total_profit, active_count, suspended_count, finished_count, rest_days (days until the next scheduled inveFilesNetworkoutside text
Get DCA investment statistics. Returns {total_amount, total_profit, active_count, suspended_count, finished_count, rest_days (days until the next scheduled investment), nearest_plans[] (plans with the nearest upcoming execution, same shape as dca_list plans[]), invested_markets[] (market codes, e.g. ["US"])}. Amounts and counts are strings.
dca_stoptool Permanently stop a DCA plan by plan_id. This cannot be undone. To temporarily pause, use dca_pause instead. Returns upstream API response.FilesNetworkoutside text
Permanently stop a DCA plan by plan_id. This cannot be undone. To temporarily pause, use dca_pause instead. Returns upstream API response.
dca_updatetool 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 planFilesNetworkoutside text
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_grouptool Delete a watchlist group by id (numeric). Set purge=true to also remove its securities from all other groups. Returns upstream API response.FilesNetworkoutside text
Delete a watchlist group by id (numeric). Set purge=true to also remove its securities from all other groups. Returns upstream API response.
depositstool List deposit history for the current account. Returns items[]{id, amount, currency, status, created_at, updated_at}. states: comma-separated (Pending/Finished/FFilesNetworkoutside text
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.
depthtool Get order book depth for a symbol. Returns {bids[]{position, price, volume, order_num}, asks[]{position, price, volume, order_num}}. Up to 10 price levels.FilesNetworkoutside text
Get order book depth for a symbol. Returns {bids[]{position, price, volume, order_num}, asks[]{position, price, volume, order_num}}. Up to 10 price levels.
dividendtool Get dividend history for the symbol. Returns {total, list: [{id, desc, counter_id, record_date, ex_date, payment_date}]}; the amount is only in the desc text. UFilesNetworkoutside text
Get dividend history for the symbol. Returns {total, list: [{id, desc, counter_id, record_date, ex_date, payment_date}]}; the amount is only in the desc text. 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.
dividend_detailtool Get detailed dividend distribution schemes. Returns list[]{desc, record_date, ex_date, payment_date}, newest first. desc is the localized human-readable scheme FilesNetworkoutside text
Get detailed dividend distribution schemes. Returns list[]{desc, record_date, ex_date, payment_date}, newest first. desc is the localized human-readable scheme (amount and currency in text, may contain a newline); there are no separate cash/stock amount fields.
estimate_max_purchase_quantitytool Estimate maximum buy/sell quantity for a symbol. Returns {cash_max_qty, margin_max_qty} (decimal strings). Only symbol is required; side (case-insensitive Buy/SFilesNetworkoutside text
Estimate maximum buy/sell quantity for a symbol. Returns {cash_max_qty, margin_max_qty} (decimal strings). Only symbol is required; side (case-insensitive Buy/Sell) defaults to Buy, order_type (case-insensitive) defaults to LO, and price is optional.
etf_docstool Get regulatory/prospectus documents (etf-files) for a US ETF. Returns {files: [{file_name, file_path, update_date, code, format}]}. US accounts only; errors witFilesNetworkoutside text
Get regulatory/prospectus documents (etf-files) for a US ETF. Returns {files: [{file_name, file_path, update_date, code, format}]}. US accounts only; errors with DcRegionRestricted for AP accounts.
exchange_ratetool Get Longbridge's account-conversion exchange rates for all supported currencies (the rates used to value assets in an account's currency). Returns {exchanges[]{FilesNetworkoutside text
Get Longbridge's account-conversion exchange rates for all supported currencies (the rates used to value assets in an account's currency). Returns {exchanges[]{base_currency, other_currency, average_rate}}: average_rate is the value of 1 other_currency in base_currency (e.g. base USD, other HKD, 0.12743 = 1 HKD is 0.12743 USD). US accounts get a US-specific variant: the US account's rates in the same shape, one row per pair (the reference rate, else am) with spec_key naming the rate type. For public market reference rates or history, use fx_rate.
executivetool Get company executive and board member information. Returns professional_list[] (one entry per symbol) {symbol, total, forward_url, professionals[]{id, name, tiFilesNetworkoutside text
Get company executive and board member information. Returns professional_list[] (one entry per symbol) {symbol, total, forward_url, professionals[]{id, name, title, biography, wiki_url}}.
filingstool Get regulatory filings (8-K, 10-Q, 10-K, etc.) for the symbol. Returns a top-level array of {id, title, description, file_name, file_urls[], publish_at}.FilesNetworkoutside text
Get regulatory filings (8-K, 10-Q, 10-K, etc.) for the symbol. Returns a top-level array of {id, title, description, file_name, file_urls[], publish_at}.
finance_calendartool Finance calendar by category: report (earnings) / dividend / split / ipo / macrodata (CPI, NFP, rates) / closed (holidays). start and end (YYYY-MM-DD) are optioFilesNetworkoutside text
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. Pass market (e.g. US) whenever the user cares about one market: an unfiltered week of earnings across all markets is several hundred KB and gets truncated. Returns {list: [{date, infos: [{symbol, counter_name, market, content, type, date, datetime, date_type, data_kv: [{type, value, value_raw}], star (macrodata), currency, …}]}]}, one entry per day. For the report, macrodata and closed categories, datetime is in the market's local time (with offset); dividend, split and ipo entries keep UTC dates.
financial_reporttool 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 fulFilesNetworkoutside text
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). Each line item carries its newest 8 periods by default; set periods for more. Returns {report, list: {i_s|b_s|c_f: {indicators: [{title, currency, has_yoy, accounts: [{name, field, percent, tip, industry_ranking, values: [{year, period, fp_end, value, yoy, ratio}]}]}]}}}. US accounts querying a .US symbol without kind are routed to a US-specific overview endpoint (is_list/bs_list/cf_list); passing kind explicitly always uses the generic path.
financial_report_key_metricstool Get key financial metrics (fin-keyfactor) for a US symbol. report: af (annual, default), saf, qf, q1/q2/q3. Returns {currency, report, empty_fields, list: [{ff_FilesNetworkoutside text
Get key financial metrics (fin-keyfactor) for a US symbol. report: af (annual, default), saf, qf, q1/q2/q3. Returns {currency, report, empty_fields, list: [{ff_year, ff_period, fp_end, report_txt, rpt_date, fields: [{field, name, value, yoy, …}]}]}. US accounts only; errors with DcRegionRestricted for AP accounts.
financial_report_latesttool Get the latest financial report summary for a security. Returns {report (period code, e.g. "2026.H1"), report_txt (period label), currency, indicators[]{field_nFilesNetworkoutside text
Get the latest financial report summary for a security. Returns {report (period code, e.g. "2026.H1"), report_txt (period label), currency, indicators[]{field_name, indicator_name, indicator_value, yoy}}, one indicator per key metric (revenue, net profit, total assets, total debts, EPS, BPS, ROE, net profit margin), identified by field_name. Ratio values carry a "%" suffix; yoy is a fraction (0.1627 = +16.27%), empty for ratios.
financial_report_snapshottool 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, assFilesNetworkoutside text
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. Returns a flat object: name, ticker, market, currency, report, fiscal_year, fiscal_period, fp_start, fp_end, opt_reports, report_desc, fo_* as {value, yoy, …}, and fr_* either a plain string (ratios) or {value, yoy} (amounts).
financial_statementtool Get financial statements (income statement, balance sheet, or cash flow) for a security. kind (required): IS/BS/CF, one statement per call; call again for each FilesNetworkoutside text
Get financial statements (income statement, balance sheet, or cash flow) for a security. kind (required): IS/BS/CF, one statement per call; call again for each statement you need. report: af (annual, default), saf (semi-annual), qf (quarterly full), q1/q2/q3. periods: how many reporting periods to return, newest first (default 8). Returns {report, currency, empty_fields, list[]}: list[] holds the reporting periods, most recent first, each with its fields[]{name, field, level, value, yoy} line items (yoy is year over year, as a ratio); it can be empty when no data is available. US accounts querying a .US symbol are routed to a US-specific statement endpoint (same report vocabulary and envelope); all other symbol/account combinations use the generic path.
forecast_epstool Get EPS forecast history. Returns items[], one analyst consensus snapshot per forecast window: {forecast_start_date, forecast_end_date, forecast_eps_mean, forecFilesNetworkoutside text
Get EPS forecast history. Returns items[], one analyst consensus snapshot per forecast window: {forecast_start_date, forecast_end_date, forecast_eps_mean, forecast_eps_median, forecast_eps_lowest, forecast_eps_highest, institution_total, institution_up, institution_down}. Forecasts only, no actual EPS or surprise; use consensus for estimate-vs-actual.
fund_analysistool Get a fund's top-level analysis (risk/return summary). counter_id from fund_hot / fund_list; optional period selector. Returns {visible, actual_period, updated_FilesNetworkoutside text
Get a fund's top-level analysis (risk/return summary). counter_id from fund_hot / fund_list; optional period selector. Returns {visible, actual_period, updated_at, return_ability, risk_ability, cost_level, value_for_money}, each dimension {visible, score_pct, level}.
fund_analysis_detailtool Get a fund's detailed analysis (deeper metrics behind fund_analysis). counter_id from fund_hot / fund_list; optional period selector. Returns the fund_analysis FilesNetworkoutside text
Get a fund's detailed analysis (deeper metrics behind fund_analysis). counter_id from fund_hot / fund_list; optional period selector. Returns the fund_analysis shape plus available_periods, and each dimension also carries items: [ … ] (per-metric breakdown).
fund_annual_returnstool Get a fund's per-year returns (paged). counter_id from fund_hot / fund_list; optional page / size.FilesNetworkoutside text
Get a fund's per-year returns (paged). counter_id from fund_hot / fund_list; optional page / size.
fund_cancel_ordertool 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 (whiFilesNetworkoutside text
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.
fund_detailtool Get a single fund's profile and key figures. counter_id (e.g. UT/FD/HK0000384492) comes from fund_hot / fund_list. Returns a flat object: name, code, isin, currFilesNetworkoutside text
Get a single fund's profile and key figures. counter_id (e.g. UT/FD/HK0000384492) comes from fund_hot / fund_list. Returns a flat object: name, code, isin, currency, manager, asset_class_name, risk_level/risk_level_name, purchasable, redeemable, purchase_amount, manage_rate, purchase_rate, year_to_date_yield, profile, asset_allocation: {asset_type, report_date, lists: [{name, code, counter_id, position_ratio}]}, …
fund_filterstool Get the filter options (filter object shape and quick-filter ids) accepted by fund_list. No parameters. Returns {asset_class, company, currency, industry_categoFilesNetworkoutside text
Get the filter options (filter object shape and quick-filter ids) accepted by fund_list. No parameters. Returns {asset_class, company, currency, industry_category_name, risk_level}, each a list of options such as {key, value}.
fund_holdertool Get funds and ETFs that hold a given symbol. Returns lists[]{symbol (the fund's symbol), name, currency, position_ratio (weight of the queried stock in the fundFilesNetworkoutside text
Get funds and ETFs that hold a given symbol. Returns lists[]{symbol (the fund's symbol), name, currency, position_ratio (weight of the queried stock in the fund, in percent), report_date}.
fund_holdingstool Get a fund's top-10 holdings. counter_id from fund_hot / fund_list; optional scene selector. Returns {report_date, weighting, holdings: [{name, holding_type, weFilesNetworkoutside text
Get a fund's top-10 holdings. counter_id from fund_hot / fund_list; optional scene selector. Returns {report_date, weighting, holdings: [{name, holding_type, weighting, shares, market_value, share_change, share_change_percent, industry_name, country_name, …}]}.
fund_hottool 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 parameFilesNetworkoutside text
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. Returns a top-level array of {counter_id, name, currency, asset_class_name, risk_level_name, earning_rate, time_interval, purchase_amount, recommendation_text, fund_performances: [{date, last_done}], …}.
fund_listtool 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. FilesNetworkoutside text
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. Returns a top-level array of {counter_id, name, code, isin, currency, asset_class_name, risk_level_name, earning_rate, time_interval, unit_value, holding, purchase_amount, …}.
fund_navtool Get a fund's latest net asset value (NAV). counter_id from fund_hot / fund_list. Returns a top-level array of {counter_id, counter_name, isin, currency, value, FilesNetworkoutside text
Get a fund's latest net asset value (NAV). counter_id from fund_hot / fund_list. Returns a top-level array of {counter_id, counter_name, isin, currency, value, change, change_percent, date_format, last_update_time, …}.
fund_nav_historytool Get a fund's historical NAV series, paged. counter_id from fund_hot / fund_list; optional page / size. Returns a top-level array of {value, change, change_perceFilesNetworkoutside text
Get a fund's historical NAV series, paged. counter_id from fund_hot / fund_list; optional page / size. Returns a top-level array of {value, change, change_percent, date_format, last_update_time, …} (same row shape as fund_nav).
fund_nav_rangetool Get a fund's historical NAV over a relative window. counter_id from fund_hot / fund_list; set month_before or year_before. Returns a top-level array of {value, FilesNetworkoutside text
Get a fund's historical NAV over a relative window. counter_id from fund_hot / fund_list; set month_before or year_before. Returns a top-level array of {value, change, change_percent, date_format, last_update_time, …} (same row shape as fund_nav).
fund_ordertool Get one fund order's detail by order_id (from fund_orders). Requires auth. Returns {order: {id, counter_id, fund_name, action, state, state_desc, amount, units,FilesNetworkoutside text
Get one fund order's detail by order_id (from fund_orders). Requires auth. Returns {order: {id, counter_id, fund_name, action, state, state_desc, amount, units, net_worth, fee, currency, created_at, …}, stages: [{stage, desc, progress, …}], keywords: [{title, content, …}]}.
fund_orderstool List the user's fund orders / execution records. Requires auth. Optional counter_ids, actions, states, currency, start / end (unix seconds), page / size. ReturnFilesNetworkoutside text
List the user's fund orders / execution records. Requires auth. Optional counter_ids, actions, states, currency, start / end (unix seconds), page / size. Returns a top-level array of {id, counter_id, fund_name, action, state, state_desc, amount, units, net_worth, currency, created_at, is_auto, product_type}.
fund_performancetool Get a fund's daily performance figures. counter_id from fund_hot / fund_list. Returns a top-level array of {counter_id, fund_name, performance_return_<period>, FilesNetworkoutside text
Get a fund's daily performance figures. counter_id from fund_hot / fund_list. Returns a top-level array of {counter_id, fund_name, performance_return_<period>, performance_rank_<period>, performance_total_<period> (period: one_day … ten_years, ytd), annualized_return_<one…ten>, seven_days_annualized, update_time, …}.
fund_performance_comparisontool Compare a fund's performance against its benchmark/peers. counter_id from fund_hot / fund_list; optional period selector. Returns {fund_performances: [ … ], conFilesNetworkoutside text
Compare a fund's performance against its benchmark/peers. counter_id from fund_hot / fund_list; optional period selector. Returns {fund_performances: [ … ], contrast_performances: [{name, performances: [ … ]}]}.
fund_positiontool 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). Returns {dFilesNetworkoutside text
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). Returns {detail_values: {currency, holding_units, holding_value, holding_cost, holding_profit, holding_profit_rate, recent_profit, recent_unit_value, pending_buy_value, pending_sell_value, …}, sum_profit: [{date, value}], ut_value: [{date, unit_value, total_value, day_increase_rate}]}.
fund_position_dividendstool Get a held fund's dividend records (paged). Requires auth. counter_id from fund_position_overview; optional currency, start / end (unix seconds), page / size. RFilesNetworkoutside text
Get a held fund's dividend records (paged). Requires auth. counter_id from fund_position_overview; optional currency, start / end (unix seconds), page / size. Returns {currency, total_div_cash, lastest_date, div_cash_infos: [{counter_id, name, amount, currency, date, div_method}]}.
fund_position_navtool 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. Returns a top-leveFilesNetworkoutside text
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. Returns a top-level array of {counter_id, counter_name, value, change, change_percent, last_update_time}.
fund_position_overviewtool Get the signed-in user's fund positions overview (all held funds). Requires an authenticated token. No parameters. Returns {account_channel, recent_trading_day,FilesNetworkoutside text
Get the signed-in user's fund positions overview (all held funds). Requires an authenticated token. No parameters. Returns {account_channel, recent_trading_day, pending_buy_orders, sold_pending_credit_orders, list: [{counter_id, name, currency, holding_units, amount, holding_profit, recent_profit, …}]}.
fund_position_performancetool Get a held fund's performance figures. Requires auth. counter_id from fund_position_overview / fund_hot / fund_list. Returns a top-level array of {counter_id, fFilesNetworkoutside text
Get a held fund's performance figures. Requires auth. counter_id from fund_position_overview / fund_hot / fund_list. Returns a top-level array of {counter_id, fund_name, performance_return_<period> (one_day … ten_years, ytd), annualized_return_<one…ten>, update_time}.
fund_position_profitstool 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. ReturFilesNetworkoutside text
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. Returns {currency, sum_profit, last_update_time, history_value: [{date, value}]}.
fund_positionstool Get current fund positions. Returns list[].fund_info[]{counter_id, symbol_name, currency, holding_units, current_net_asset_value, cost_net_asset_value, net_asseFilesNetworkoutside text
Get current fund positions. Returns list[].fund_info[]{counter_id, symbol_name, currency, holding_units, current_net_asset_value, cost_net_asset_value, net_asset_value_day}. counter_id is the fund id (e.g. UT/FD/HK0000384492); its last /-separated segment is the ISIN.
fund_quarterly_returnstool Get a fund's per-quarter returns (paged). counter_id from fund_hot / fund_list; optional page / size.FilesNetworkoutside text
Get a fund's per-quarter returns (paged). counter_id from fund_hot / fund_list; optional page / size.
fund_stock_holdingstool Reverse-lookup the individual stocks a fund holds. counter_id from fund_hot / fund_list; optional limit. Returns a top-level array of {counter_id, code, name, cFilesNetworkoutside text
Reverse-lookup the individual stocks a fund holds. counter_id from fund_hot / fund_list; optional limit. Returns a top-level array of {counter_id, code, name, currency, position_ratio, report_date}.
fund_submit_ordertool 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, theFilesNetworkoutside text
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.
fund_transactionstool List the user's fund cash-flow records. Requires auth. Optional business_type, category, currencies, start / end (unix seconds), page / size. Returns a top-leveFilesNetworkoutside text
List the user's fund cash-flow records. Requires auth. Optional business_type, category, currencies, start / end (unix seconds), page / size. Returns a top-level array of {type_name, tx_type, category, description, amount, currency, stock_quantity, quantity_description, ref_no, created_at, done_at, …}.
fund_trendtool Get a fund's trend chart series. counter_id from fund_hot / fund_list; optional period selector. Returns {actual_period, available_periods, fund_performances: [FilesNetworkoutside text
Get a fund's trend chart series. counter_id from fund_hot / fund_list; optional period selector. Returns {actual_period, available_periods, fund_performances: [ … ], category_average_performances: [ … ], contrast_performances: {benchmark_name, performances: [ … ]} or null}.
fund_validate_ordertool 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, lFilesNetworkoutside text
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).
fx_ratetool Public ECB foreign-exchange reference rates (via Frankfurter): one rate per business day, not live or tradable, no bid/ask. Latest by default, or a historical dFilesNetworkoutside text
Public ECB foreign-exchange reference rates (via Frankfurter): one rate per business day, not live or tradable, no bid/ask. Latest by default, or a historical date / daily series. Returns {base, date, rates{CODE: rate}, source}; a series keys rates by yyyy-mm-dd. rate is CODE per 1 base (base USD, HKD 7.8472), the opposite direction to exchange_rate; for a cross rate, set base instead of dividing. Cite date with the rate: it is the publication day, possibly before today.
get_metool Identify the Longbridge trading account this connection is signed in to (the one account the access token is bound to, not every account the user owns). No paraFilesNetworkoutside text
Identify the Longbridge trading account this connection is signed in to (the one account the access token is bound to, not every account the user owns). No parameters. Returns {id, nickname, email, dc_region (AP|US), account_no, member_id}: id is the account's stable identifier (its aaid), nickname a readable name such as "Longbridge Securities Account H11701971", email always empty; account_no is null for accounts whose token carries none.
grid_canceltool 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 reFilesNetworkoutside text
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_detailtool Full detail for one grid order: rule parameters, status, embedded child orders (grid_sub_orders) and lifecycle history (grid_order_history). Supports history_idFilesNetworkoutside text
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. Returns {order_id, symbol, stock_name, status, grid_status, suspend_reason, submitted_base_price, current_base_price, upper_limit_price, lower_limit_price, trigger_* rule fields, settlement_currency, expire_time, …, grid_sub_orders: [{id, price, quantity, executed_qty, action, status, submitted_at, …}], sub_has_more, grid_order_history: [{history_id, status, reason, created_at, …}], history_has_more}.
grid_listtool List grid trading orders. Filter by symbol or comma-joined status (e.g. "Performing,Suspended"); supports page/limit and sort_by/sort_order. Returns grid_order[FilesNetworkoutside text
List grid trading orders. Filter by symbol or comma-joined status (e.g. "Performing,Suspended"); supports page/limit and sort_by/sort_order. Returns grid_order[] summaries + has_more.
grid_list_by_idstool Fetch specific grid orders by their IDs. Returns grid_orders[] summaries.FilesNetworkoutside text
Fetch specific grid orders by their IDs. Returns grid_orders[] summaries.
grid_replacetool 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 IFilesNetworkoutside text
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_restarttool 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 drFilesNetworkoutside text
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.
grid_submittool 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 quoFilesNetworkoutside text
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. A live grid keeps trading on its own. Requires symbol, settlement_currency, and the grid rule: base/upper/lower price, trigger_price_type (1=spread, 2=percent) with the matching spread/percent up/down, trigger_quantity, upper/lower_limit_quantity, time_in_force (0=Day, 1=GTC, 6=GTD), grid_order_type_up/down (GMO/GLO/GTG), and boundary events (1=ignore, 2=close-at-last). Prices/quantities are decimal strings.
grid_suspendtool 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 confiFilesNetworkoutside text
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.
grid_symbol_infotool 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, FilesNetworkoutside text
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 settlement currencies). Use before grid_submit to learn the symbol's grid constraints. Returns {name, last_done, lot_size, buy_lot_size, sell_lot_size, bid_sizes: [{str_proceed, end_proceed, bid_size}], channel_info: {strategy_granted, support_rth, currency, settlement_currency: [ … ]}}.
grid_trigger_historytool Trigger history for one grid order: each triggered child order with price, quantity, executed price/qty, and trigger time. Supports page/limit. Returns {triggerFilesNetworkoutside text
Trigger history for one grid order: each triggered child order with price, quantity, executed price/qty, and trigger time. Supports page/limit. Returns {trigger_orders: [{id, symbol, status, action, price, quantity, executed_price, executed_qty, trigger_price, trigger_at, …}], has_more}.
history_candlesticks_by_datetool Get historical candlestick data by date range. Only symbol is required (with no start/end, the most recent 100 bars are returned — pass start/end for a specificFilesNetworkoutside text
Get historical candlestick data by date range. Only symbol is required (with no start/end, the most recent 100 bars are returned — pass start/end for a specific range); period defaults to day (1m/5m/15m/30m/60m/day/week/month/year), forward_adjust to false, trade_sessions to all. Returns a top-level array of {timestamp, open, high, low, close, volume, turnover, trade_session}. Each bar's timestamp is its open time in the exchange's local time (HK/CN/SG +08:00, US America/New_York), so for day/week/month/year bars its date part is the trading date.
history_candlesticks_by_offsettool 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 FilesNetworkoutside text
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. Each bar's timestamp is its open time in the exchange's local time (HK/CN/SG +08:00, US America/New_York), so for day/week/month/year bars its date part is the trading date.
history_executionstool Get every trade execution (fill) in a date range, auto-paginated to return the complete set (never truncated at the 1000-per-page cap). Returns a top-level arraFilesNetworkoutside text
Get every trade execution (fill) in a date range, auto-paginated to return the complete set (never truncated at the 1000-per-page cap). Returns a top-level array of {order_id, trade_id, symbol, side, quantity, price, trade_done_at}; trade_id is the stable dedupe key; side is "Unknown" when unresolved (US: the order could not be resolved; call order_detail(order_id) for it). start_at/end_at in RFC3339, or a bare yyyy-mm-dd read as a UTC day (US accounts: a New York EST/EDT day, matching history_orders). AP accounts are filtered by execution time (trade_done_at). US accounts read v1 history, which is not filtered by execution time and can lag across days near the range edges: widen the range by a day each side and filter on trade_done_at; side is filled from the account's orders in the range, then from order detail.
history_market_temperaturetool Get historical market temperature time series for a market and date range (at most 3 years per call). Returns {type, list[]{temperature, valuation, sentiment, tFilesNetworkoutside text
Get historical market temperature time series for a market and date range (at most 3 years per call). Returns {type, list[]{temperature, valuation, sentiment, timestamp}}. Timestamps are in the market's local time (HK/CN/SG +08:00, US America/New_York).
history_orderstool Get historical orders between dates (AP accounts: excludes today). Returns orders[]{order_id, symbol, side, status, quantity, price, submitted_at}. start_at/endFilesNetworkoutside text
Get historical orders between dates (AP accounts: excludes today). Returns orders[]{order_id, symbol, side, status, quantity, price, submitted_at}. start_at/end_at in RFC3339. US accounts get a US-specific variant: the same array and field names as today_orders' US variant; a bare yyyy-mm-dd start_at/end_at is read as a New York (EST/EDT) day rather than UTC; the range is applied as given, so it includes today's orders when it covers today, and all orders in it (up to 500) are returned unless us_page/us_limit pick one page. today_orders' US window opens at 20:00 ET on the previous day, so orders placed from 20:00 ET yesterday appear in both a range ending yesterday and today_orders; dedupe by order_id when combining them.
industry_peerstool Hierarchical sub-sector tree for an industry group. Accepts an industry symbol from industry_rank (e.g. IN00258.US). Returns chain{name, symbol, code, industry_FilesNetworkoutside text
Hierarchical sub-sector tree for an industry group. Accepts an industry symbol from industry_rank (e.g. IN00258.US). Returns chain{name, symbol, code, industry_id, sharelist_id, stock_num, chg, ytd_chg, next[{...}]} and top{name, industry_id}. Each node shows stock count, daily change, and YTD change.
industry_ranktool 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(INFilesNetworkoutside text
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.
industry_valuationtool Get industry valuation comparison for peers in the same industry. Returns list[]{symbol, name, market, currency, price_close, market_value, pe, pb, ps, div_yld FilesNetworkoutside text
Get industry valuation comparison for peers in the same industry. Returns list[]{symbol, name, market, currency, price_close, market_value, pe, pb, ps, div_yld (dividend yield, %), roe, roa, net_margin, eps, bps, dps, div_payout_ratio, net_income, …, history[]{date, pe, pb, ps}}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
industry_valuation_disttool Get industry PE/PB/PS valuation distribution to see where the stock sits in its sector. Returns {pe, pb, ps}, each {low, median, high, value (the stock's currenFilesNetworkoutside text
Get industry PE/PB/PS valuation distribution to see where the stock sits in its sector. Returns {pe, pb, ps}, each {low, median, high, value (the stock's current value), ranking (its percentile within the industry, 0-1), rank_index, rank_total}.
institution_ratingtool Get institution rating summary. Returns analyst{evaluate{buy, over, hold, under, sell, no_opinion, total}, target{highest_price, lowest_price, prev_close}, induFilesNetworkoutside text
Get institution rating summary. Returns analyst{evaluate{buy, over, hold, under, sell, no_opinion, total}, target{highest_price, lowest_price, prev_close}, industry_name, industry_rank, industry_total} and instratings{recommend (consensus recommendation), target (consensus mean target price), change (upside of target vs. the current price, %), updated_at}. If one of the two upstream calls fails, the other half is still returned with warnings[] naming what is missing.
institution_rating_detailtool Get historical rating distribution and consensus target price history. Returns evaluate.list[]{date, strong_buy, buy, hold, under, sell} (rating counts per snapFilesNetworkoutside text
Get historical rating distribution and consensus target price history. Returns evaluate.list[]{date, strong_buy, buy, hold, under, sell} (rating counts per snapshot), target{updated_at, prediction_accuracy, list[]{date, timestamp, price, avg_target, min_target, max_target, meet}} (consensus target range vs. share price), and ccy_symbol. Aggregated across analysts; no per-firm or per-analyst rows.
institution_rating_historytool Get institution rating history. Returns target_history[]{timestamp, close, high_target_price, low_target_price} (analyst target range vs. close) and evaluate_hiFilesNetworkoutside text
Get institution rating history. Returns target_history[]{timestamp, close, high_target_price, low_target_price} (analyst target range vs. close) and evaluate_history[]{start_date, end_date, buy, over, hold, under, sell, no_opinion} (rating counts; consecutive identical distributions are merged into one span). Times are unix epoch seconds as strings. Aggregated counts, no per-firm rating or target changes.
institution_rating_industry_ranktool Get peers ranked by institution analyst ratings in the same industry. Returns {industry_name, industry_rank (the queried stock's rank), industry_total, industryFilesNetworkoutside text
Get peers ranked by institution analyst ratings in the same industry. Returns {industry_name, industry_rank (the queried stock's rank), industry_total, industry_mean, industry_median, items[]{rank, symbol, name, buy, over, hold, under, sell, no_opinion, total}}. Paginated.
institutional_viewstool Get monthly institutional rating distribution timeline. Returns {elist[]{date, buy, over (outperform), hold, under (underperform), sell, no_opinion, total}, tliFilesNetworkoutside text
Get monthly institutional rating distribution timeline. Returns {elist[]{date, buy, over (outperform), hold, under (underperform), sell, no_opinion, total}, tlist[]{date, close, high_price, low_price}}, oldest first, for trend analysis. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
intradaytool Get intraday minute-by-minute price/volume data. trade_sessions: "intraday" (default, regular hours) or "all" (include pre-market and post-market). Returns a toFilesNetworkoutside text
Get intraday minute-by-minute price/volume data. trade_sessions: "intraday" (default, regular hours) or "all" (include pre-market and post-market). Returns a top-level array of {timestamp, price, avg_price, volume, turnover}. timestamp is the minute in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
invest_relationtool Get the listed companies that a symbol's company holds stakes in (investment relationships, not investor-relations events). Returns invest_securities[]{company_FilesNetworkoutside text
Get the listed companies that a symbol's company holds stakes in (investment relationships, not investor-relations events). Returns invest_securities[]{company_name, symbol, currency, percent_of_shares (stake, %), shares_value (market value of the stake), shares_rank}, plus forward_url. Empty when the company has no listed holdings.
ipo_calendartool Show the IPO calendar. Returns {sub_num, win_num, preipo_num, ipo_num, timestamp, list[]{symbol, code, name, sub_date, sub_end_date, result_date, ipo_date, martFilesNetworkoutside text
Show the IPO calendar. Returns {sub_num, win_num, preipo_num, ipo_num, timestamp, list[]{symbol, code, name, sub_date, sub_end_date, result_date, ipo_date, mart_date, state, state_stage, tags}} for upcoming and recent IPOs.
ipo_detailtool Show IPO detail for a symbol. Returns profile (business overview), timeline[]{event, date}, subscription eligibility, pricing_range, lot_size, allotment_rules.FilesNetworkoutside text
Show IPO detail for a symbol. Returns profile (business overview), timeline[]{event, date}, subscription eligibility, pricing_range, lot_size, allotment_rules.
ipo_listedtool List recently listed IPO stocks (HK+US). Returns {hk, us}, each {total, list[]{symbol, code, name, description, ipo_date, listed_day, issue_price, prev_close, lFilesNetworkoutside text
List recently listed IPO stocks (HK+US). Returns {hk, us}, each {total, list[]{symbol, code, name, description, ipo_date, listed_day, issue_price, prev_close, last_done, ipo_change, amount, …}}.
ipo_order_detailtool Show detailed information for a specific IPO order by order_id. Returns {order_id, symbol, market, quantity, allotted_quantity, total_amount, status, submitted_FilesNetworkoutside text
Show detailed information for a specific IPO order by order_id. Returns {order_id, symbol, market, quantity, allotted_quantity, total_amount, status, submitted_at}.
ipo_orderstool List IPO orders (active+history). Returns orders[]{order_id, symbol, market, quantity, total_amount, status, submitted_at}. Filter by symbol, market, or status.FilesNetworkoutside text
List IPO orders (active+history). Returns orders[]{order_id, symbol, market, quantity, total_amount, status, submitted_at}. Filter by symbol, market, or status.
ipo_profit_losstool Show IPO profit/loss summary and per-stock breakdown. Returns {total_cost, total_value, total_return, items[]{symbol, cost, current_value, return_rate}}. periodFilesNetworkoutside text
Show IPO profit/loss summary and per-stock breakdown. Returns {total_cost, total_value, total_return, items[]{symbol, cost, current_value, return_rate}}. period: all/ytd/1y/3y.
ipo_subscriptionstool List IPO stocks in subscription/pre-filing stage (HK+US). Returns {hk, us}, each {list[]{symbol, code, name, issue_price, entrance_fee, min_sub_num, sub_end_datFilesNetworkoutside text
List IPO stocks in subscription/pre-filing stage (HK+US). Returns {hk, us}, each {list[]{symbol, code, name, issue_price, entrance_fee, min_sub_num, sub_end_date, remaining_day, share_planned, state, …}}.
macrodatatool Get historical observations for one macro-economic indicator. Use indicator_code from macrodata_indicators; start_date/end_date accept YYYY-MM-DD. Supports offsFilesNetworkoutside text
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. Returns {info: {indicator_code, name, country, describe, importance, periodicity}, data: [{period, release_at, actual_value, forecast_value, previous_value, unit}], count}.
macrodata_indicatorstool 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 paginatFilesNetworkoutside text
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. Returns {list: [{indicator_code, name, country, importance, periodicity}], count}.
margin_ratiotool Get margin ratio for a symbol. Returns {im_factor (initial margin), mm_factor (maintenance margin), fm_factor (forced liquidation)} as decimal strings.FilesNetworkoutside text
Get margin ratio for a symbol. Returns {im_factor (initial margin), mm_factor (maintenance margin), fm_factor (forced liquidation)} as decimal strings.
market_statustool Get current market trading status for all markets. Returns market_time[]{market, trade_status (Trading/Closed/Mid-Day Break/Pre-Market/Post-Market/Overnight), tFilesNetworkoutside text
Get current market trading status for all markets. Returns market_time[]{market, trade_status (Trading/Closed/Mid-Day Break/Pre-Market/Post-Market/Overnight), timestamp}. Timestamps are in the market's local time (HK/CN/SG +08:00, US America/New_York).
market_temperaturetool Get current market sentiment temperature. Returns {temperature (0-100), description, valuation (0-100), sentiment (0-100), timestamp}. market: HK/US/CN/SG. TimeFilesNetworkoutside text
Get current market sentiment temperature. Returns {temperature (0-100), description, valuation (0-100), sentiment (0-100), timestamp}. market: HK/US/CN/SG. Timestamps are in the market's local time (HK/CN/SG +08:00, US America/New_York).
newstool Get latest news articles for a symbol, newest first (20 by default; set count for more). Returns a top-level array (no wrapper object) of {id, title, descriptioFilesNetworkoutside text
Get latest news articles for a symbol, newest first (20 by default; set count for more). Returns a top-level array (no wrapper object) of {id, title, description, url, published_at, comments_count, likes_count, shares_count}. Citation fields content_via (0 = Longbridge original or licensed; non-zero = third-party repost), source, source_url (the original article) and source_logo are included when the upstream provides them.
news_detailtool Get one news article's full detail by id (from news/news_search). Returns {id, title, description, body (Markdown), url, author{member_id, name}, images[], commFilesNetworkoutside text
Get one news article's full detail by id (from news/news_search). Returns {id, title, description, body (Markdown), url, author{member_id, name}, images[], comments_count, likes_count, shares_count, published_at, tickers[]}. Citation fields content_via (0 = Longbridge original or licensed; non-zero = third-party repost), source, source_url (the original article) and source_logo are included when the upstream provides them.
news_searchtool Search news articles by keyword. Returns an array of {id, title, description (summary), source (outlet display name, localized by Accept-Language), published_atFilesNetworkoutside text
Search news articles by keyword. Returns an array of {id, title, description (summary), source (outlet display name, localized by Accept-Language), published_at (RFC3339), url, content_via, source_url, source_logo}, most relevant first. content_via is 0 for Longbridge original or licensed content and non-zero for a third-party repost, whose original is at source_url.
nowtool 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. Returns a bare JSO
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. Returns a bare JSON string, not an object.
operatingtool Get company operating reviews by reporting period (HK stocks only; other markets return an empty list). Returns list[], newest first (8 reports by default; set FilesNetworkoutside text
Get company operating reviews by reporting period (HK stocks only; other markets return an empty list). Returns list[], newest first (8 reports by default; set count for more), of {id, report (e.g. saf), title, txt (management commentary / operating review), latest, financial{currency, indicators[]{field_name, indicator_name, indicator_value (display string with localized units), yoy (%)}}}.
option_chain_expiry_date_listtool Get option chain expiry dates for a symbol (e.g. AAPL.US). Returns a top-level array of "yyyy-mm-dd" strings. Use with option_chain_info_by_date to get the contFilesNetworkoutside text
Get option chain expiry dates for a symbol (e.g. AAPL.US). Returns a top-level array of "yyyy-mm-dd" strings. Use with option_chain_info_by_date to get the contracts for one of those dates.
option_chain_info_by_datetool 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 FilesNetworkoutside text
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.
option_quotetool Get option quotes (max 500 symbols). Symbols must be option contract symbols (e.g. "AAPL230317P160000.US"), NOT plain stock symbols — obtain valid ones from theFilesNetworkoutside text
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. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
option_volumetool Get real-time option call/put volume stats for a US stock. Returns {c, p}: today's total call (c) and put (p) contract volume, as strings.FilesNetworkoutside text
Get real-time option call/put volume stats for a US stock. Returns {c, p}: today's total call (c) and put (p) contract volume, as strings.
option_volume_dailytool Get daily historical option stats for a US stock. Returns {stats[]{symbol, timestamp, total_volume, total_call_volume, total_put_volume, put_call_volume_ratio, FilesNetworkoutside text
Get daily historical option stats for a US stock. Returns {stats[]{symbol, timestamp, total_volume, total_call_volume, total_put_volume, put_call_volume_ratio, total_open_interest, total_call_open_interest, total_put_open_interest, put_call_open_interest_ratio}}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
order_detailtool Get detailed information about a specific order. Returns {order_id, symbol, status, side, order_type, quantity, price, executed_quantity, executed_price, submitFilesNetworkoutside text
Get detailed information about a specific order. Returns {order_id, symbol, status, side, order_type, quantity, price, executed_quantity, executed_price, submitted_at, time_in_force, msg, attached_orders[]}, where attached_orders[] holds the order's take-profit/stop-loss legs with their own order IDs. 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. US accounts get a US-specific variant: the same top-level fields and history[], without time_in_force, tag, expire_date, outside_rth or the fee/deduction fields (raw US codes in us_time_in_force, us_tag; plus done_at, gtd, security_type, us_attached_orders, us_charge_detail); is_attached is ignored.
participantstool Get HK market participant broker information. Returns a top-level array of {broker_ids[], name_en, name_cn}. Use broker_ids to interpret broker queue data.FilesNetworkoutside text
Get HK market participant broker information. Returns a top-level array of {broker_ids[], name_en, name_cn}. Use broker_ids to interpret broker queue data.
profit_analysistool 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 eFilesNetworkoutside text
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.
profit_analysis_detailtool 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 FilesNetworkoutside text
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.
profit_analysis_realizedtool Get realized P&L for a US account, broken down by category (stock/option/crypto) and period. Returns {realized_pl_list: [{category, currency, metrics: [{period,FilesNetworkoutside text
Get realized P&L for a US account, broken down by category (stock/option/crypto) and period. Returns {realized_pl_list: [{category, currency, metrics: [{period, amount, rate, rate_unit}]}]}; rate is a decimal fraction. US accounts only; errors with DcRegionRestricted for AP accounts.
quant_runtool 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 JSOFilesNetworkoutside text
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]".
quotetool Get latest price quotes. Returns a top-level array, one entry per symbol: symbol, last_done, prev_close, open, high, low, volume, turnover, trade_status, timestFilesNetworkoutside text
Get latest price quotes. Returns a top-level array, one entry per symbol: symbol, last_done, prev_close, open, high, low, volume, turnover, trade_status, timestamp, plus pre_market / post_market / overnight objects {last_done, prev_close, high, low, volume, turnover, timestamp} when that session has data. No change fields: compute change from last_done and prev_close. Timestamps are in each symbol's own exchange local time (HK/CN/SG +08:00, US America/New_York).
rank_categoriestool Get rank tab category configurations for the popularity leaderboard. Returns first_tags[]{key, name, second_tags[]{key, name, market}}. Pass a second_tags key (FilesNetworkoutside text
Get rank tab category configurations for the popularity leaderboard. Returns first_tags[]{key, name, second_tags[]{key, name, market}}. Pass a second_tags key (e.g. `hot_all-us`) to rank_list.
rank_listtool 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 frFilesNetworkoutside text
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). Returns lists[]{symbol, name, last_done, chg(decimal), inflow, market_cap, pre_post_price, pre_post_chg, amplitude, turnover_rate, volume_rate, five_day_chg, ten_day_chg, twenty_day_chg, this_year_chg, industry}, updated_at.
replace_ordertool 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-STFilesNetworkoutside text
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.
risk_assessmenttool Get the logged-in member's risk assessment (suitability) profile: the latest risk questionnaire result and related investor qualifications. No parameters. ReturFilesNetworkoutside text
Get the logged-in member's risk assessment (suitability) profile: the latest risk questionnaire result and related investor qualifications. No parameters. Returns {risk, pi, approvals, re_authentication, pi_end_at, deadlines, risk_assessment_at, score, strategy_risk_levels[]}: risk is the questionnaire's risk level (e.g. "A5"), score its score, risk_assessment_at its date (yyyy-mm-dd); pi is the professional investor status code and pi_end_at its end time; approvals maps qualification items to their state (e.g. car, cka, risk_audit -> "pass"; is_corporate_client -> "false"); deadlines maps items to deadlines; re_authentication is the re-authentication flag; strategy_risk_levels lists the member's strategy risk levels. Report these values as returned: the server defines no vocabulary for risk, pi, approvals or strategy_risk_levels, so never infer an ordering between levels and never decide product eligibility or suitability from them. approvals values are strings ("pass", "false"), not booleans; pi_end_at and deadlines are raw server values with an undocumented unit (0 means not set).
screener_indicatorstool Get all available screener indicator keys with their units. Technical indicators carry tech_values {tech_key: [{value, label}]} listing the accepted values (e.gFilesNetworkoutside text
Get all available screener indicator keys with their units. Technical indicators carry tech_values {tech_key: [{value, label}]} listing the accepted values (e.g. macd_day: period [day], category [goldenfork, deadcross, upzero, downzero]); pass one value per tech_key as tech_values in screener_search. Optional symbol (e.g. AAPL.US) narrows to stock-specific indicators. Returns groups[]{group_type, group_name, indicators[]{id, key, name, unit, places, category, tech_values{tech_key: [{value, label}]}}}.
screener_recommend_strategiestool List platform-preset screener strategies. market: US|HK|CN|SG (default: US). Returns strategys[]{id, name, description, market, three_months_chg, risk}. Pass idFilesNetworkoutside text
List platform-preset screener strategies. market: US|HK|CN|SG (default: US). Returns strategys[]{id, name, description, market, three_months_chg, risk}. Pass id to screener_search strategy_id to run, or screener_strategy to inspect filter conditions.
screener_searchtool Screen stocks. market: US|HK|CN|SG (Mode B required; Mode A uses strategy's market). Mode A: strategy_id from screener_recommend_strategies — auto-runs saved stFilesNetworkoutside text
Screen stocks. market: US|HK|CN|SG (Mode B required; Mode A uses strategy's market). Mode A: strategy_id from screener_recommend_strategies — auto-runs saved strategy. Mode B: conditions=[{"key":"KEY","min":"10","max":"50","tech_values":{}},...]. extra_returns=["key",...] adds display-only columns. sort_by_key: key name to sort by; sort_order: asc|desc (default desc). page: 0-based (default 0). Returns {total, items[]{symbol, name, counter_id, indicators[]{key, value}}, legend{<key>: {name, unit}}}. Fundamental keys: pettm pbmrq roe roa netmargin salesgrowthyoy netincomegrowthyoy marketcap(亿) circulating_marketcap(亿) prevclose prevchg(%) divyld la epsttm netincome(亿) sales(亿) turnover_rate balance(万). Technical keys (call screener_indicators for tech_values schema): macd_day/week rsi_day/week kdj_day/week boll_day/week.
screener_strategytool Inspect a screener strategy's filter conditions before running it. Returns market, filter{filters[]{key, min, max, tech_values}}. Use screener_search strategy_iFilesNetworkoutside text
Inspect a screener strategy's filter conditions before running it. Returns market, filter{filters[]{key, min, max, tech_values}}. Use screener_search strategy_id to execute the strategy.
screener_user_strategiestool List the current user's saved screener strategies. market: US|HK|CN|SG (default: US). Returns strategys[]{id, name, description, market, three_months_chg, risk}FilesNetworkoutside text
List the current user's saved screener strategies. market: US|HK|CN|SG (default: US). Returns strategys[]{id, name, description, market, three_months_chg, risk}. Pass id to screener_search strategy_id to run, or screener_strategy to inspect conditions.
security_factstool List a security's fact (catalyst) events — anomaly detections, factor readings, data sources and natural-language summaries — filtered by time range and count. FilesNetworkoutside text
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. Returns {facts: [{fact_id, fact_type, direction, occur_time, symbols_info: [{symbol, security_name}], factors: [{name, factor_groups, long_short_direction, trigger_condition, anomaly_detection}], data_source: [{source_name, type, url, icon}], nl_info: {title, sub_title, summary, invest_anal, eli_explain}}]}.
security_listtool 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 pageFilesNetworkoutside text
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). Returns {total, page, count, items[]{symbol, name_en, name_cn}}.
shareholdertool Get major shareholders of a symbol with their latest reported holding change. Returns shareholder_list[]{shareholder_name, percent_of_shares, shares_changed (neFilesNetworkoutside text
Get major shareholders of a symbol with their latest reported holding change. Returns shareholder_list[]{shareholder_name, percent_of_shares, shares_changed (negative = reduced), report_date, stocks[]{symbol, market, code, chg}}; stocks[] lists securities linked to the holder and is often empty.
shareholder_detailtool Get a single shareholder's holding and trade history. Requires object_id from shareholder_top. Returns name, owner_source (Company/Institution/Person/Insider), FilesNetworkoutside text
Get a single shareholder's holding and trade history. Requires object_id from shareholder_top. Returns name, owner_source (Company/Institution/Person/Insider), tradings[]{period, accum_buy, accum_sell, net_buy, trading_details[]{trading_date, trading_type, trading_shares, trading_price, security_type, filing_date}}, holding_summary, holding_periods, trading_periods. Note: trading_details[] is empty for institutional (13F) holders — it is only populated for insider/individual filers (Form 4).
shareholder_toptool Get Top 20 major shareholders (institutions, individuals, insiders) across reporting periods, newest first (4 periods by default; set periods for more). ReturnsFilesNetworkoutside text
Get Top 20 major shareholders (institutions, individuals, insiders) across reporting periods, newest first (4 periods by default; set periods for more). Returns info[]{period, share_holders[]{object_id, name, title, shares_held, percent_shares_held, shares_changed, filing_date}}. Use object_id with shareholder_detail to drill into a holder's full trade history.
sharelist_addtool Add securities to a community sharelist by id. Provide symbols (e.g. ["AAPL.US", "700.HK"]) to add. Returns upstream API response.FilesNetworkoutside text
Add securities to a community sharelist by id. Provide symbols (e.g. ["AAPL.US", "700.HK"]) to add. Returns upstream API response.
sharelist_createtool Create a new community sharelist with a name and optional description. Returns the created sharelist object including its id, name, and description.FilesNetworkoutside text
Create a new community sharelist with a name and optional description. Returns the created sharelist object including its id, name, and description.
sharelist_deletetool Delete a community sharelist by id (own lists only; subscribed lists cannot be deleted). Returns upstream API response on success.FilesNetworkoutside text
Delete a community sharelist by id (own lists only; subscribed lists cannot be deleted). Returns upstream API response on success.
sharelist_detailtool Get community sharelist detail by id. Returns {sharelist{id, name, description, stocks_count, subscribers_count, chg, this_year_chg, creator, stocks[]{symbol, nFilesNetworkoutside text
Get community sharelist detail by id. Returns {sharelist{id, name, description, stocks_count, subscribers_count, chg, this_year_chg, creator, stocks[]{symbol, name, market, code, intro, …}}, scopes{self, subscription, official, industry}, stock_topics, group}. Constituents carry no prices: pass their symbols to quote.
sharelist_listtool List user's own and subscribed community sharelists. Returns {sharelists[] (the user's own lists), subscribed_sharelists[] (lists the user subscribes to)}, eachFilesNetworkoutside text
List user's own and subscribed community sharelists. Returns {sharelists[] (the user's own lists), subscribed_sharelists[] (lists the user subscribes to)}, each item {id, name, description, stocks_count, subscribers_count, subscribed, chg, this_year_chg, created_at, stocks, …}.
sharelist_populartool Get popular/trending community sharelists. Returns {sharelists[]{id, name, description, stocks_count, subscribers_count, chg, this_year_chg, creator{id, name, …FilesNetworkoutside text
Get popular/trending community sharelists. Returns {sharelists[]{id, name, description, stocks_count, subscribers_count, chg, this_year_chg, creator{id, name, …}, stocks, …}} sorted by popularity.
sharelist_removetool Remove securities from a community sharelist by id. Provide symbols to remove. Returns upstream API response on success.FilesNetworkoutside text
Remove securities from a community sharelist by id. Provide symbols to remove. Returns upstream API response on success.
sharelist_sorttool Reorder securities in a community sharelist by id. Provide symbols in the desired new order. Returns upstream API response on success.FilesNetworkoutside text
Reorder securities in a community sharelist by id. Provide symbols in the desired new order. Returns upstream API response on success.
short_margintool Get short margin deposit details for the current account. Returns short positions with margin_amount, margin_rate, interest_rate, symbol, quantity per position.FilesNetworkoutside text
Get short margin deposit details for the current account. Returns short positions with margin_amount, margin_rate, interest_rate, symbol, quantity per position.
short_positionstool 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(RFilesNetworkoutside text
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. timestamp is the record date in the exchange's local time, so its date part is the record date.
short_tradestool 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 (dFilesNetworkoutside text
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). Unified data[]{timestamp(RFC3339), short_vol(daily short volume in shares), rate(decimal ratio e.g. 0.36=36%), close}. US-only: nasdaq_vol(NASDAQ short), nyse_vol(NYSE short). HK-only: balance(HKD), market_vol(total market volume that day). US source: FINRA/NASDAQ daily. HK source: HKEX daily. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
signal_detailtool Get one signal by ID (from `signals`). Same fields as the list, plus `analysis` — the full strategy analysis: fit scores, valuation scenarios, evidence sources FilesNetworkoutside text
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. Returns {id, symbol, company_name, market, title, summary, strategy_id, strategy_name, key_fact_id, key_catalyst, outlook, outlook_desc, analysis_price, conservative_price, benchmark_price, optimistic_price, status, created_at, updated_at, analysis: {confidence, signal: {core_conclusion, evidence_sources, quick_takeaways, releated_facts_ids, …}, strategy_fit_score: {total_score, key_takeaways, …}, strategy_notes, …}}.
signalstool 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. FilesNetworkoutside text
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. Returns each signal's title, summary, outlook and conservative/benchmark/optimistic target prices, plus the total for paging. The full strategy analysis is omitted here — fetch it with signal_detail.
statement_exporttool Get a pre-signed download URL for a statement data file (obtained from statement_list). Returns {url}; fetch that URL to get the statement JSON.FilesNetworkoutside text
Get a pre-signed download URL for a statement data file (obtained from statement_list). Returns {url}; fetch that URL to get the statement JSON.
statement_listtool List available account statements (daily/monthly). Returns {list[]{dt (statement date, yyyymmdd), file_key}}. Pass file_key to statement_export to download.FilesNetworkoutside text
List available account statements (daily/monthly). Returns {list[]{dt (statement date, yyyymmdd), file_key}}. Pass file_key to statement_export to download.
static_infotool Get static info for securities. Returns a top-level array, one entry per symbol: symbol, name_cn, name_en, name_hk, exchange (e.g. NASD), currency, lot_size, toFilesNetworkoutside text
Get static info for securities. Returns a top-level array, one entry per symbol: symbol, name_cn, name_en, name_hk, exchange (e.g. NASD), currency, lot_size, total_shares, circulating_shares, hk_shares, eps, eps_ttm, bps, dividend_yield, stock_derivatives, board. 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.
stock_positionstool Get current stock positions across all channels. Returns list[].stock_info[]{symbol, symbol_name, quantity, available_quantity, currency, cost_price, market}. UFilesNetworkoutside text
Get current stock positions across all channels. Returns list[].stock_info[]{symbol, symbol_name, quantity, available_quantity, currency, cost_price, market}. US accounts get a US-specific variant: the same list[].stock_info[] without available_quantity, plus last_done, market_price, prev_close, today_pl, position_side; cash, options, crypto (symbol e.g. BTCUSD.BKKT) and buying power are under us{cash_list, option_list, crypto_list, cash_buy_power, …}.
submit_multileg_ordertool Submit a multi-leg option combination order; all legs fill or rest together as one strategy order. strategy: CoveredCall / CoveredPut / VerticalCallSpread / VerFilesNetworkoutside text
Submit a multi-leg option combination order; all legs fill or rest together as one strategy order. strategy: CoveredCall / CoveredPut / VerticalCallSpread / VerticalPutSpread / Collar / Straddle / Strangle / CalendarCallSpread / CalendarPutSpread. side: Buy/Sell (direction of the whole strategy). order_type: LO (needs submitted_price, a net price for the combination) or MO. legs[]: {symbol, ratio_quantity} in strategy order, option symbols only; ratio_quantity is always positive — each leg's buy/sell direction is implied by strategy plus side.
submit_ordertool 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-FilesNetworkoutside text
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. order_type: LO (Limit) / ELO (Enhanced Limit, HK) / MO (Market) / AO (At-auction, HK) / ALO (At-auction Limit, HK) / ODD (Odd Lots, HK) / LIT (Limit If Touched) / MIT (Market If Touched) / TSLPAMT (Trailing Limit by Amount) / TSLPPCT (Trailing Limit by Percent) / SLO (Special Limit, HK). side: Buy/Sell. time_in_force: Day/GTC/GTD. To attach a take-profit/stop-loss leg, set attached_order_type (PROFIT_TAKER / STOP_LOSS / BRACKET) with attached_profit_taker_price and/or attached_stop_loss_price; the legs are echoed in the dry-run preview and are part of what the confirmation_code covers
today_executionstool Get today's trade executions (fills). Returns a top-level array of {order_id, trade_id, symbol, side, quantity, price, trade_done_at}; side comes from the fill'FilesNetworkoutside text
Get today's trade executions (fills). Returns a top-level array of {order_id, trade_id, symbol, side, quantity, price, trade_done_at}; side comes from the fill's order and is "" when unresolved (US: the order could not be resolved; call order_detail(order_id) for it). Pass symbol or order_id to filter.
today_orderstool Get orders placed today. Returns a top-level array of orders {order_id, symbol, stock_name, side, order_type, status, quantity, executed_quantity, price, currenFilesNetworkoutside text
Get orders placed today. Returns a top-level array of orders {order_id, symbol, stock_name, side, order_type, status, quantity, executed_quantity, price, currency, time_in_force, submitted_at, updated_at, msg, …, 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. US accounts get a US-specific variant: the same array and field names, without time_in_force, tag, expire_date and outside_rth (raw US codes in us_time_in_force, us_tag; plus gtd, security_type, operate_direction); is_attached is ignored, us_action (Buy/Sell) filters, and all of today's orders (up to 500) are returned unless us_page/us_limit pick one page; today spans 20:00 New York time (EST/EDT) yesterday, when the overnight session opens, through 23:59:59 New York time today, so it may include last evening's overnight orders, which also appear in history_orders for yesterday; dedupe by order_id when combining.
top_moverstool 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).FilesNetworkoutside text
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). limit: results per page (default 20). next_params: pass next_params from previous response to paginate. Returns events[]{timestamp(RFC3339), alert_reason, alert_type, stock{symbol, name, change(decimal ratio e.g. 0.0445=+4.45%), last_done, labels[], intro}}, updated_at, next_params. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
topictool Get discussion topics for a symbol. Returns a top-level array of {id, title, description, url, published_at, comments_count, likes_count, shares_count}.FilesNetworkoutside text
Get discussion topics for a symbol. Returns a top-level array of {id, title, description, url, published_at, comments_count, likes_count, shares_count}.
topic_createtool Create a new discussion topic. topic_type="post" (default) is plain text; "article" requires a non-empty title and accepts Markdown body.FilesNetworkoutside text
Create a new discussion topic. topic_type="post" (default) is plain text; "article" requires a non-empty title and accepts Markdown body.
topic_create_replytool Create a reply to a discussion topic. Pass reply_to_id to nest under another reply; omit for a top-level reply.FilesNetworkoutside text
Create a reply to a discussion topic. Pass reply_to_id to nest under another reply; omit for a top-level reply.
topic_detailtool Get discussion topic detail by topic_id. Returns {id, title, description, body, author{member_id, name, avatar}, tickers[], hashtags, images[], likes_count, comFilesNetworkoutside text
Get discussion topic detail by topic_id. Returns {id, title, description, body, author{member_id, name, avatar}, tickers[], hashtags, images[], likes_count, comments_count, shares_count, views_count, created_at, updated_at, detail_url, topic_type}.
topic_repliestool Get replies to a discussion topic, paginated (page default 1, size default 20, range 1-50). Returns a top-level array of {id, topic_id, body, reply_to_id, authoFilesNetworkoutside text
Get replies to a discussion topic, paginated (page default 1, size default 20, range 1-50). Returns a top-level array of {id, topic_id, body, reply_to_id, author: {member_id, name}, images, likes_count, comments_count, created_at}.
topic_searchtool Search community topics/posts by keyword. Returns id, author, time, and excerpt.FilesNetworkoutside text
Search community topics/posts by keyword. Returns id, author, time, and excerpt.
trade_statstool Get trade statistics (buy/sell/neutral distribution by price) for a price-volume profile. Returns {trades[]{price, buy_amount, sell_amount, neutral_amount}, staFilesNetworkoutside text
Get trade statistics (buy/sell/neutral distribution by price) for a price-volume profile. Returns {trades[]{price, buy_amount, sell_amount, neutral_amount}, statistics{avgprice, trades_count, total_amount, buy, sell, neutral, preclose, timestamp, trade_date[]}}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
tradestool Get recent trades (max 1000). Returns a top-level array of {price, volume, timestamp, trade_type, direction, trade_session} for the symbol. Timestamps are in thFilesNetworkoutside text
Get recent trades (max 1000). Returns a top-level array of {price, volume, timestamp, trade_type, direction, trade_session} for the symbol. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
trading_daystool Get trading days for a market between dates. market: HK/US/CN/SG. Ranges up to 400 days are fetched in one call; split longer ones. Returns {trade_days: [date],FilesNetworkoutside text
Get trading days for a market between dates. market: HK/US/CN/SG. Ranges up to 400 days are fetched in one call; split longer ones. Returns {trade_days: [date], half_trade_days: [date]}.
trading_sessiontool Get trading session schedule for all markets. Returns a top-level array of {market, trade_sessions[]{begin_time, end_time, trade_session}}.FilesNetworkoutside text
Get trading session schedule for all markets. Returns a top-level array of {market, trade_sessions[]{begin_time, end_time, trade_session}}.
update_watchlist_grouptool Update a watchlist group by id. Can rename (name param) or modify securities (securities + mode: add/remove/replace). Returns upstream API response.FilesNetworkoutside text
Update a watchlist group by id. Can rename (name param) or modify securities (securities + mode: add/remove/replace). Returns upstream API response.
valuationtool Get the PE valuation overview: the fair-value band, its median and the PE series. Returns {range (years), metrics: {pe: {low, median, high, desc, list: [{timestFilesNetworkoutside text
Get the PE valuation overview: the fair-value band, its median and the PE series. Returns {range (years), metrics: {pe: {low, median, high, desc, list: [{timestamp, value}]}}}; low/high are the lower/upper bounds of the fair-value band, not the period's min/max (the series can fall below low or rise above high), so take the extremes from list. 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. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
valuation_comparisontool Stock valuation comparison. Mode A (single): pass only symbol — server returns stock + auto-selected industry peers. Mode B (multi): pass symbol as primary + coFilesNetworkoutside text
Stock valuation comparison. Mode A (single): pass only symbol — server returns stock + auto-selected industry peers. Mode B (multi): pass symbol as primary + comparison_symbols (comma-separated, e.g. 'MSFT.US,GOOGL.US') for explicit peer comparison. currency: USD/HKD/CNY. Returns list[]{symbol, name, market_value, price_close, pe, pb, ps, history[]{date, pe, pb, ps}}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
valuation_historytool Get PE valuation history for long-term percentile analysis. Returns overview{indicator, metrics.pe{metric, desc, industry_median}, range, date, ccy_symbol}, hisFilesNetworkoutside text
Get PE valuation history for long-term percentile analysis. Returns overview{indicator, metrics.pe{metric, desc, industry_median}, range, date, ccy_symbol}, history{range, metrics.pe{low, median, high, desc, list[]{timestamp, value}}} (low/high are the fair-value band's lower/upper bounds, not the period's min/max; take extremes from list), peers.pe{industry_median, list[]{symbol, name, value}}, and stocks (industry stocks keyed by counter id, e.g. "ST/US/AMD", each {name, market_cap}). PE only; no PB/PS or dividend-yield series. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
valuation_ranktool Get daily valuation rank (PE/PB/PS/dividend yield industry percentile) for a security over a date range. start/end in yyyymmdd format; defaults to the last 30 dFilesNetworkoutside text
Get daily valuation rank (PE/PB/PS/dividend yield industry percentile) for a security over a date range. start/end in yyyymmdd format; defaults to the last 30 days. Returns {kline_type, max_num, pe, pb, ps, dvd}, each series a list of {timestamp, rank} (rank out of max_num). Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
warrant_issuerstool Get HK warrant issuer information. Returns a top-level array of {issuer_id, name_en, name_cn}. Pass issuer_id in warrant_list's issuer filter.FilesNetworkoutside text
Get HK warrant issuer information. Returns a top-level array of {issuer_id, name_en, name_cn}. Pass issuer_id in warrant_list's issuer filter.
warrant_listtool Get filtered warrant list for an underlying symbol. Returns a top-level array of {symbol, name, warrant_type, status, last_done, change_rate, volume, expiry_datFilesNetworkoutside text
Get filtered warrant list for an underlying symbol. Returns a top-level array of {symbol, name, warrant_type, status, last_done, change_rate, volume, expiry_date (yyyymmdd), strike_price, implied_volatility, delta, premium, leverage_ratio, effective_leverage, outstanding_ratio, conversion_ratio, …}.
warrant_quotetool Get warrant quotes. Returns a top-level array, one entry per symbol: last_done, prev_close, open, high, low, volume, turnover, trade_status, timestamp, implied_FilesNetworkoutside text
Get warrant quotes. Returns a top-level array, one entry per symbol: last_done, prev_close, open, high, low, volume, turnover, trade_status, timestamp, implied_volatility, category, strike_price, expiry_date, conversion_ratio, outstanding_ratio, underlying_symbol. Delta and leverage are in warrant_list, not here. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
watchlisttool Get all watchlist groups and their securities. Returns a top-level array of groups {id, name, securities[]{symbol, name, watched_price, watched_at, is_pinned}}.FilesNetworkoutside text
Get all watchlist groups and their securities. Returns a top-level array of groups {id, name, securities[]{symbol, name, watched_price, watched_at, is_pinned}}.
withdrawalstool List withdrawal history for the current account. Returns items[]{id, amount, currency, status, created_at, bank_name, account_number (masked)}.FilesNetworkoutside text
List withdrawal history for the current account. Returns items[]{id, amount, currency, status, created_at, bank_name, account_number (masked)}.

Text the model reads (197)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

authenticate tool
Authenticate when you have no Longbridge credentials yet (e.g. your client could not complete the browser OAuth flow). The user generates a one-time authorization code at https://open.longbridge.com/connect and pastes it to you; pass it as `auth_code`. On success the server returns an access token to use as the Bearer credential on subsequent requests, unlocking the full tool set. If you are not authenticated and the user has not provided a code, direct them to https://open.longbridge.com/connect to generate one.
now tool
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. Returns a bare JSON string, not an object.
get_me tool
Identify the Longbridge trading account this connection is signed in to (the one account the access token is bound to, not every account the user owns). No parameters. Returns {id, nickname, email, dc_region (AP|US), account_no, member_id}: id is the account's stable identifier (its aaid), nickname a readable name such as "Longbridge Securities Account H11701971", email always empty; account_no is null for accounts whose token carries none.
static_info tool
Get static info for securities. Returns a top-level array, one entry per symbol: symbol, name_cn, name_en, name_hk, exchange (e.g. NASD), currency, lot_size, total_shares, circulating_shares, hk_shares, eps, eps_ttm, bps, dividend_yield, stock_derivatives, board. 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.
quote tool
Get latest price quotes. Returns a top-level array, one entry per symbol: symbol, last_done, prev_close, open, high, low, volume, turnover, trade_status, timestamp, plus pre_market / post_market / overnight objects {last_done, prev_close, high, low, volume, turnover, timestamp} when that session has data. No change fields: compute change from last_done and prev_close. Timestamps are in each symbol's own exchange local time (HK/CN/SG +08:00, US America/New_York).
option_quote tool
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. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
warrant_quote tool
Get warrant quotes. Returns a top-level array, one entry per symbol: last_done, prev_close, open, high, low, volume, turnover, trade_status, timestamp, implied_volatility, category, strike_price, expiry_date, conversion_ratio, outstanding_ratio, underlying_symbol. Delta and leverage are in warrant_list, not here. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
depth tool
Get order book depth for a symbol. Returns {bids[]{position, price, volume, order_num}, asks[]{position, price, volume, order_num}}. Up to 10 price levels.
brokers tool
Get broker queue (HK stocks only). Returns {bid_brokers[], ask_brokers[]}, best price first, each level {position (1-based), broker_ids[]}. Arrays can be empty. Map broker IDs to names via participants.
participants tool
Get HK market participant broker information. Returns a top-level array of {broker_ids[], name_en, name_cn}. Use broker_ids to interpret broker queue data.
trades tool
Get recent trades (max 1000). Returns a top-level array of {price, volume, timestamp, trade_type, direction, trade_session} for the symbol. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
intraday tool
Get intraday minute-by-minute price/volume data. trade_sessions: "intraday" (default, regular hours) or "all" (include pre-market and post-market). Returns a top-level array of {timestamp, price, avg_price, volume, turnover}. timestamp is the minute in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
candlesticks tool
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. Each bar's timestamp is its open time in the exchange's local time (HK/CN/SG +08:00, US America/New_York), so for day/week/month/year bars its date part is the trading date.
history_candlesticks_by_offset tool
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. Each bar's timestamp is its open time in the exchange's local time (HK/CN/SG +08:00, US America/New_York), so for day/week/month/year bars its date part is the trading date.
history_candlesticks_by_date tool
Get historical candlestick data by date range. Only symbol is required (with no start/end, the most recent 100 bars are returned — pass start/end for a specific range); period defaults to day (1m/5m/15m/30m/60m/day/week/month/year), forward_adjust to false, trade_sessions to all. Returns a top-level array of {timestamp, open, high, low, close, volume, turnover, trade_session}. Each bar's timestamp is its open time in the exchange's local time (HK/CN/SG +08:00, US America/New_York), so for day/week/month/year bars its date part is the trading date.
trading_days tool
Get trading days for a market between dates. market: HK/US/CN/SG. Ranges up to 400 days are fetched in one call; split longer ones. Returns {trade_days: [date], half_trade_days: [date]}.
option_chain_expiry_date_list tool
Get option chain expiry dates for a symbol (e.g. AAPL.US). Returns a top-level array of "yyyy-mm-dd" strings. Use with option_chain_info_by_date to get the contracts for one of those dates.
option_chain_info_by_date tool
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.
capital_flow tool
Get capital inflow time series for the symbol (same-day data). Returns a top-level array of {timestamp, inflow}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
capital_distribution tool
Get capital distribution for a symbol. Returns {timestamp, capital_in{large, medium, small}, capital_out{large, medium, small}, data_available} (decimal strings in settlement currency). 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. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
trading_session tool
Get trading session schedule for all markets. Returns a top-level array of {market, trade_sessions[]{begin_time, end_time, trade_session}}.
market_temperature tool
Get current market sentiment temperature. Returns {temperature (0-100), description, valuation (0-100), sentiment (0-100), timestamp}. market: HK/US/CN/SG. Timestamps are in the market's local time (HK/CN/SG +08:00, US America/New_York).
history_market_temperature tool
Get historical market temperature time series for a market and date range (at most 3 years per call). Returns {type, list[]{temperature, valuation, sentiment, timestamp}}. Timestamps are in the market's local time (HK/CN/SG +08:00, US America/New_York).
macrodata_indicators tool
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. Returns {list: [{indicator_code, name, country, importance, periodicity}], count}.
macrodata tool
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. Returns {info: {indicator_code, name, country, describe, importance, periodicity}, data: [{period, release_at, actual_value, forecast_value, previous_value, unit}], count}.
watchlist tool
Get all watchlist groups and their securities. Returns a top-level array of groups {id, name, securities[]{symbol, name, watched_price, watched_at, is_pinned}}.
filings tool
Get regulatory filings (8-K, 10-Q, 10-K, etc.) for the symbol. Returns a top-level array of {id, title, description, file_name, file_urls[], publish_at}.
warrant_issuers tool
Get HK warrant issuer information. Returns a top-level array of {issuer_id, name_en, name_cn}. Pass issuer_id in warrant_list's issuer filter.
warrant_list tool
Get filtered warrant list for an underlying symbol. Returns a top-level array of {symbol, name, warrant_type, status, last_done, change_rate, volume, expiry_date (yyyymmdd), strike_price, implied_volatility, delta, premium, leverage_ratio, effective_leverage, outstanding_ratio, conversion_ratio, …}.
calc_indexes tool
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, one row per symbol holding only the requested indexes; a requested index the security has no value for is null (market indexes such as 000300.SH or HSI.HK have no PeTtmRatio/PbRatio/DividendRatioTtm; use their constituents instead). 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.
create_watchlist_group tool
Create a new watchlist group. Returns the created group {id, name}. Optionally pass securities (e.g. ["AAPL.US", "700.HK"]) to pre-populate.
delete_watchlist_group tool
Delete a watchlist group by id (numeric). Set purge=true to also remove its securities from all other groups. Returns upstream API response.
update_watchlist_group tool
Update a watchlist group by id. Can rename (name param) or modify securities (securities + mode: add/remove/replace). Returns upstream API response.
security_list tool
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). Returns {total, page, count, items[]{symbol, name_en, name_cn}}.
account_balance tool
Get account cash balance and asset summary. Returns a top-level array of {currency, total_cash, net_assets, buy_power, max_finance_amount, remaining_finance_amount, risk_level, margin_call, init_margin, maintenance_margin, cash_infos[]{currency, available_cash, withdraw_cash, frozen_cash, settling_cash}}. Filter by currency (e.g. "USD", "HKD"). US accounts get a US-specific variant: the same array, one entry for the account currency with currency, total_cash, net_assets, buy_power, maintenance_margin and cash_infos[] (settled_cash in place of settling_cash); max_finance_amount, remaining_finance_amount, risk_level, margin_call and init_margin are absent; US buying-power and margin detail is under us{buy_limit_info, margin_status, cash_list[]}.
stock_positions tool
Get current stock positions across all channels. Returns list[].stock_info[]{symbol, symbol_name, quantity, available_quantity, currency, cost_price, market}. US accounts get a US-specific variant: the same list[].stock_info[] without available_quantity, plus last_done, market_price, prev_close, today_pl, position_side; cash, options, crypto (symbol e.g. BTCUSD.BKKT) and buying power are under us{cash_list, option_list, crypto_list, cash_buy_power, …}.
fund_positions tool
Get current fund positions. Returns list[].fund_info[]{counter_id, symbol_name, currency, holding_units, current_net_asset_value, cost_net_asset_value, net_asset_value_day}. counter_id is the fund id (e.g. UT/FD/HK0000384492); its last /-separated segment is the ISIN.
margin_ratio tool
Get margin ratio for a symbol. Returns {im_factor (initial margin), mm_factor (maintenance margin), fm_factor (forced liquidation)} as decimal strings.
risk_assessment tool
Get the logged-in member's risk assessment (suitability) profile: the latest risk questionnaire result and related investor qualifications. No parameters. Returns {risk, pi, approvals, re_authentication, pi_end_at, deadlines, risk_assessment_at, score, strategy_risk_levels[]}: risk is the questionnaire's risk level (e.g. "A5"), score its score, risk_assessment_at its date (yyyy-mm-dd); pi is the professional investor status code and pi_end_at its end time; approvals maps qualification items to their state (e.g. car, cka, risk_audit -> "pass"; is_corporate_client -> "false"); deadlines maps items to deadlines; re_authentication is the re-authentication flag; strategy_risk_levels lists the member's strategy risk levels. Report these values as returned: the server defines no vocabulary for risk, pi, approvals or strategy_risk_levels, so never infer an ordering between levels and never decide product eligibility or suitability from them. approvals values are strings ("pass", "false"), not booleans; pi_end_at and deadlines are raw server values with an undocumented unit (0 means not set).
today_orders tool
Get orders placed today. Returns a top-level array of orders {order_id, symbol, stock_name, side, order_type, status, quantity, executed_quantity, price, currency, time_in_force, submitted_at, updated_at, msg, …, 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. US accounts get a US-specific variant: the same array and field names, without time_in_force, tag, expire_date and outside_rth (raw US codes in us_time_in_force, us_tag; plus gtd, security_type, operate_direction); is_attached is ignored, us_action (Buy/Sell) filters, and all of today's orders (up to 500) are returned unless us_page/us_limit pick one page; today spans 20:00 New York time (EST/EDT) yesterday, when the overnight session opens, through 23:59:59 New York time today, so it may include last evening's overnight orders, which also appear in history_orders for yesterday; dedupe by order_id when combining.
order_detail tool
Get detailed information about a specific order. Returns {order_id, symbol, status, side, order_type, quantity, price, executed_quantity, executed_price, submitted_at, time_in_force, msg, attached_orders[]}, where attached_orders[] holds the order's take-profit/stop-loss legs with their own order IDs. 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. US accounts get a US-specific variant: the same top-level fields and history[], without time_in_force, tag, expire_date, outside_rth or the fee/deduction fields (raw US codes in us_time_in_force, us_tag; plus done_at, gtd, security_type, us_attached_orders, us_charge_detail); is_attached is ignored.
cancel_order tool
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.
today_executions tool
Get today's trade executions (fills). Returns a top-level array of {order_id, trade_id, symbol, side, quantity, price, trade_done_at}; side comes from the fill's order and is "" when unresolved (US: the order could not be resolved; call order_detail(order_id) for it). Pass symbol or order_id to filter.
history_orders tool
Get historical orders between dates (AP accounts: excludes today). Returns orders[]{order_id, symbol, side, status, quantity, price, submitted_at}. start_at/end_at in RFC3339. US accounts get a US-specific variant: the same array and field names as today_orders' US variant; a bare yyyy-mm-dd start_at/end_at is read as a New York (EST/EDT) day rather than UTC; the range is applied as given, so it includes today's orders when it covers today, and all orders in it (up to 500) are returned unless us_page/us_limit pick one page. today_orders' US window opens at 20:00 ET on the previous day, so orders placed from 20:00 ET yesterday appear in both a range ending yesterday and today_orders; dedupe by order_id when combining them.
history_executions tool
Get every trade execution (fill) in a date range, auto-paginated to return the complete set (never truncated at the 1000-per-page cap). Returns a top-level array of {order_id, trade_id, symbol, side, quantity, price, trade_done_at}; trade_id is the stable dedupe key; side is "Unknown" when unresolved (US: the order could not be resolved; call order_detail(order_id) for it). start_at/end_at in RFC3339, or a bare yyyy-mm-dd read as a UTC day (US accounts: a New York EST/EDT day, matching history_orders). AP accounts are filtered by execution time (trade_done_at). US accounts read v1 history, which is not filtered by execution time and can lag across days near the range edges: widen the range by a day each side and filter on trade_done_at; side is filled from the account's orders in the range, then from order detail.
cash_flow tool
Get cash flow records (deposits, withdrawals, dividends). Returns a top-level array of {transaction_flow_name, direction (In/Out), business_type, balance (the amount moved), currency, business_time, symbol, description}. start_at/end_at: RFC3339 or yyyy-mm-dd. direction and business_type are unreliable upstream (always Out / 0); use the sign of balance. US accounts get a US-specific variant: the same array without business_type (see biz_code, biz_code_name); balance is signed (0 when no cash moved, e.g. crypto transfers) and direction comes from its sign, or the quantity's when it is 0 (Unknown when both are 0); plus quantity, quantity_description, ref_no, equity_type; at most 2000 records, so getting 2000 means narrow the range. Newest first.
submit_order tool
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. order_type: LO (Limit) / ELO (Enhanced Limit, HK) / MO (Market) / AO (At-auction, HK) / ALO (At-auction Limit, HK) / ODD (Odd Lots, HK) / LIT (Limit If Touched) / MIT (Market If Touched) / TSLPAMT (Trailing Limit by Amount) / TSLPPCT (Trailing Limit by Percent) / SLO (Special Limit, HK). side: Buy/Sell. time_in_force: Day/GTC/GTD. To attach a take-profit/stop-loss leg, set attached_order_type (PROFIT_TAKER / STOP_LOSS / BRACKET) with attached_profit_taker_price and/or attached_stop_loss_price; the legs are echoed in the dry-run preview and are part of what the confirmation_code covers
submit_multileg_order tool
Submit a multi-leg option combination order; all legs fill or rest together as one strategy order. strategy: CoveredCall / CoveredPut / VerticalCallSpread / VerticalPutSpread / Collar / Straddle / Strangle / CalendarCallSpread / CalendarPutSpread. side: Buy/Sell (direction of the whole strategy). order_type: LO (needs submitted_price, a net price for the combination) or MO. legs[]: {symbol, ratio_quantity} in strategy order, option symbols only; ratio_quantity is always positive — each leg's buy/sell direction is implied by strategy plus side.
replace_order tool
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.
estimate_max_purchase_quantity tool
Estimate maximum buy/sell quantity for a symbol. Returns {cash_max_qty, margin_max_qty} (decimal strings). Only symbol is required; side (case-insensitive Buy/Sell) defaults to Buy, order_type (case-insensitive) defaults to LO, and price is optional.
financial_report tool
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). Each line item carries its newest 8 periods by default; set periods for more. Returns {report, list: {i_s|b_s|c_f: {indicators: [{title, currency, has_yoy, accounts: [{name, field, percent, tip, industry_ranking, values: [{year, period, fp_end, value, yoy, ratio}]}]}]}}}. US accounts querying a .US symbol without kind are routed to a US-specific overview endpoint (is_list/bs_list/cf_list); passing kind explicitly always uses the generic path.
institution_rating tool
Get institution rating summary. Returns analyst{evaluate{buy, over, hold, under, sell, no_opinion, total}, target{highest_price, lowest_price, prev_close}, industry_name, industry_rank, industry_total} and instratings{recommend (consensus recommendation), target (consensus mean target price), change (upside of target vs. the current price, %), updated_at}. If one of the two upstream calls fails, the other half is still returned with warnings[] naming what is missing.
institution_rating_detail tool
Get historical rating distribution and consensus target price history. Returns evaluate.list[]{date, strong_buy, buy, hold, under, sell} (rating counts per snapshot), target{updated_at, prediction_accuracy, list[]{date, timestamp, price, avg_target, min_target, max_target, meet}} (consensus target range vs. share price), and ccy_symbol. Aggregated across analysts; no per-firm or per-analyst rows.
dividend tool
Get dividend history for the symbol. Returns {total, list: [{id, desc, counter_id, record_date, ex_date, payment_date}]}; the amount is only in the desc text. 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.
dividend_detail tool
Get detailed dividend distribution schemes. Returns list[]{desc, record_date, ex_date, payment_date}, newest first. desc is the localized human-readable scheme (amount and currency in text, may contain a newline); there are no separate cash/stock amount fields.
forecast_eps tool
Get EPS forecast history. Returns items[], one analyst consensus snapshot per forecast window: {forecast_start_date, forecast_end_date, forecast_eps_mean, forecast_eps_median, forecast_eps_lowest, forecast_eps_highest, institution_total, institution_up, institution_down}. Forecasts only, no actual EPS or surprise; use consensus for estimate-vs-actual.
consensus tool
Get financial consensus estimates for upcoming periods. Returns {currency, current_period, opt_periods, current_index, list: [{fiscal_year, fiscal_period, period_text, details: [{key (revenue/ebit/net_income/normalized_net_income/eps/normalized_eps), estimate, actual, is_released, comp, comp_value, comp_desc}]}], legend: {<key>: {name, description}}}. US accounts querying a .US symbol get a US-specific variant (adds ai_summary, with different per-period fields). The region is detected from the account automatically.
valuation tool
Get the PE valuation overview: the fair-value band, its median and the PE series. Returns {range (years), metrics: {pe: {low, median, high, desc, list: [{timestamp, value}]}}}; low/high are the lower/upper bounds of the fair-value band, not the period's min/max (the series can fall below low or rise above high), so take the extremes from list. 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. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
valuation_history tool
Get PE valuation history for long-term percentile analysis. Returns overview{indicator, metrics.pe{metric, desc, industry_median}, range, date, ccy_symbol}, history{range, metrics.pe{low, median, high, desc, list[]{timestamp, value}}} (low/high are the fair-value band's lower/upper bounds, not the period's min/max; take extremes from list), peers.pe{industry_median, list[]{symbol, name, value}}, and stocks (industry stocks keyed by counter id, e.g. "ST/US/AMD", each {name, market_cap}). PE only; no PB/PS or dividend-yield series. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
industry_valuation tool
Get industry valuation comparison for peers in the same industry. Returns list[]{symbol, name, market, currency, price_close, market_value, pe, pb, ps, div_yld (dividend yield, %), roe, roa, net_margin, eps, bps, dps, div_payout_ratio, net_income, …, history[]{date, pe, pb, ps}}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
industry_valuation_dist tool
Get industry PE/PB/PS valuation distribution to see where the stock sits in its sector. Returns {pe, pb, ps}, each {low, median, high, value (the stock's current value), ranking (its percentile within the industry, 0-1), rank_index, rank_total}.
company tool
Get company overview. Returns a flat object of strings: name, company_name, ticker, market, sector, category, region, founded, listing_date, employees, chairman, manager, website, address, profile, … US accounts querying a .US symbol get a US-specific variant {intro, market_cap, ccy_symbol, top_rank_tags[], share_list[], detail_url}. The region is detected from the account automatically.
executive tool
Get company executive and board member information. Returns professional_list[] (one entry per symbol) {symbol, total, forward_url, professionals[]{id, name, title, biography, wiki_url}}.
shareholder tool
Get major shareholders of a symbol with their latest reported holding change. Returns shareholder_list[]{shareholder_name, percent_of_shares, shares_changed (negative = reduced), report_date, stocks[]{symbol, market, code, chg}}; stocks[] lists securities linked to the holder and is often empty.
fund_holder tool
Get funds and ETFs that hold a given symbol. Returns lists[]{symbol (the fund's symbol), name, currency, position_ratio (weight of the queried stock in the fund, in percent), report_date}.
corp_action tool
Get corporate events for a symbol: earnings dates, dividends, splits, buybacks, name changes, etc. Returns items[]{id, date (YYYYMMDD), date_type, act_type, act_desc, action (kind code, e.g. ReportDate, DividendExDate), recent, is_delay, delay_content, live}; date_type / act_type / act_desc are localized text, and live is the linked broadcast (e.g. an earnings call: {name, started_at, symbols[]}) or null.
invest_relation tool
Get the listed companies that a symbol's company holds stakes in (investment relationships, not investor-relations events). Returns invest_securities[]{company_name, symbol, currency, percent_of_shares (stake, %), shares_value (market value of the stake), shares_rank}, plus forward_url. Empty when the company has no listed holdings.
operating tool
Get company operating reviews by reporting period (HK stocks only; other markets return an empty list). Returns list[], newest first (8 reports by default; set count for more), of {id, report (e.g. saf), title, txt (management commentary / operating review), latest, financial{currency, indicators[]{field_name, indicator_name, indicator_value (display string with localized units), yoy (%)}}}.
market_status tool
Get current market trading status for all markets. Returns market_time[]{market, trade_status (Trading/Closed/Mid-Day Break/Pre-Market/Post-Market/Overnight), timestamp}. Timestamps are in the market's local time (HK/CN/SG +08:00, US America/New_York).
broker_holding tool
Get top broker holding changes for a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure). The period argument picks the window: last 1 (default), 5, 20 or 60 days. Returns {updated_at (disclosure date, e.g. "2026.01.02"), buy[], sell[]}: the participants with the largest net increase / decrease over the window, each {name, parti_number, chg (net change in shares held, negative for sellers), strong}. Pass parti_number to broker_holding_daily for one participant's daily history. Non-HK symbols return empty arrays.
broker_holding_detail tool
Get the broker holding list for a symbol, largest holding first (50 brokers by default; set count for more; HK stocks only; sourced from HKEX CCASS participant disclosure). Returns {updated_at (disclosure date, e.g. "2026.01.02"), list[]{name, parti_number, shares{value, chg_1, chg_5, chg_20, chg_60}, ratio{value, chg_1, chg_5, chg_20, chg_60}, strong}}: shares held and the fraction of shares held (ratio, e.g. "0.0108"), each with its change over the last 1/5/20/60 days. Non-HK symbols return an empty list.
broker_holding_daily tool
Get daily holding history for a specific broker (by broker_id) in a symbol (HK stocks only; sourced from HKEX CCASS participant disclosure). Returns {list[]{date (e.g. "2026.10.15"), holding (shares held), chg (change vs the prior day), ratio (fraction of issued shares)}}, newest first.
ah_premium tool
Get A/H share premium history for a dual-listed HK symbol (e.g. 939.HK). Returns {klines[]{timestamp, aprice, apreclose, hprice, hpreclose, currency_rate, ahpremium_rate}}; ahpremium_rate is a ratio (-0.27 = H trades 27% below A). Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
ah_premium_intraday tool
Get today's minute-by-minute A/H share premium for a dual-listed HK symbol (e.g. 939.HK). Returns {klines[]{timestamp, aprice, hprice, ahpremium_rate, currency_rate}, apreclose, hpreclose}; ahpremium_rate is a ratio. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
trade_stats tool
Get trade statistics (buy/sell/neutral distribution by price) for a price-volume profile. Returns {trades[]{price, buy_amount, sell_amount, neutral_amount}, statistics{avgprice, trades_count, total_amount, buy, sell, neutral, preclose, timestamp, trade_date[]}}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
anomaly tool
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). Returns {changes[]{id, symbol, name, alert_type, alert_name (e.g. rapid rise), alert_time, change_values[] (display strings, e.g. "+2.04%"), emotion (1 bullish, 2 bearish)}, all_off}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
constituent tool
Get the constituents of an index or the asset allocation of an ETF. For an index (e.g. HSI.HK, .DJI.US) returns {total, rise_num, fall_num, flat_num, stocks[]{symbol, name, last_done, prev_close, chg, inflow, balance, amount, total_shares, circulating_shares, tags[]}}. 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_map}; Holdings groups additionally include code, symbol and holding_detail{industry_name, index_name, holding_type_name}.
finance_calendar tool
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. Pass market (e.g. US) whenever the user cares about one market: an unfiltered week of earnings across all markets is several hundred KB and gets truncated. Returns {list: [{date, infos: [{symbol, counter_name, market, content, type, date, datetime, date_type, data_kv: [{type, value, value_raw}], star (macrodata), currency, …}]}]}, one entry per day. For the report, macrodata and closed categories, datetime is in the market's local time (with offset); dividend, split and ipo entries keep UTC dates.
fund_hot tool
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. Returns a top-level array of {counter_id, name, currency, asset_class_name, risk_level_name, earning_rate, time_interval, purchase_amount, recommendation_text, fund_performances: [{date, last_done}], …}.
fund_list tool
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. Returns a top-level array of {counter_id, name, code, isin, currency, asset_class_name, risk_level_name, earning_rate, time_interval, unit_value, holding, purchase_amount, …}.
fund_filters tool
Get the filter options (filter object shape and quick-filter ids) accepted by fund_list. No parameters. Returns {asset_class, company, currency, industry_category_name, risk_level}, each a list of options such as {key, value}.
fund_detail tool
Get a single fund's profile and key figures. counter_id (e.g. UT/FD/HK0000384492) comes from fund_hot / fund_list. Returns a flat object: name, code, isin, currency, manager, asset_class_name, risk_level/risk_level_name, purchasable, redeemable, purchase_amount, manage_rate, purchase_rate, year_to_date_yield, profile, asset_allocation: {asset_type, report_date, lists: [{name, code, counter_id, position_ratio}]}, …
fund_analysis tool
Get a fund's top-level analysis (risk/return summary). counter_id from fund_hot / fund_list; optional period selector. Returns {visible, actual_period, updated_at, return_ability, risk_ability, cost_level, value_for_money}, each dimension {visible, score_pct, level}.
fund_analysis_detail tool
Get a fund's detailed analysis (deeper metrics behind fund_analysis). counter_id from fund_hot / fund_list; optional period selector. Returns the fund_analysis shape plus available_periods, and each dimension also carries items: [ … ] (per-metric breakdown).
fund_trend tool
Get a fund's trend chart series. counter_id from fund_hot / fund_list; optional period selector. Returns {actual_period, available_periods, fund_performances: [ … ], category_average_performances: [ … ], contrast_performances: {benchmark_name, performances: [ … ]} or null}.
fund_annual_returns tool
Get a fund's per-year returns (paged). counter_id from fund_hot / fund_list; optional page / size.
fund_quarterly_returns tool
Get a fund's per-quarter returns (paged). counter_id from fund_hot / fund_list; optional page / size.
fund_performance tool
Get a fund's daily performance figures. counter_id from fund_hot / fund_list. Returns a top-level array of {counter_id, fund_name, performance_return_<period>, performance_rank_<period>, performance_total_<period> (period: one_day … ten_years, ytd), annualized_return_<one…ten>, seven_days_annualized, update_time, …}.
fund_performance_comparison tool
Compare a fund's performance against its benchmark/peers. counter_id from fund_hot / fund_list; optional period selector. Returns {fund_performances: [ … ], contrast_performances: [{name, performances: [ … ]}]}.
fund_nav tool
Get a fund's latest net asset value (NAV). counter_id from fund_hot / fund_list. Returns a top-level array of {counter_id, counter_name, isin, currency, value, change, change_percent, date_format, last_update_time, …}.
fund_nav_history tool
Get a fund's historical NAV series, paged. counter_id from fund_hot / fund_list; optional page / size. Returns a top-level array of {value, change, change_percent, date_format, last_update_time, …} (same row shape as fund_nav).
fund_nav_range tool
Get a fund's historical NAV over a relative window. counter_id from fund_hot / fund_list; set month_before or year_before. Returns a top-level array of {value, change, change_percent, date_format, last_update_time, …} (same row shape as fund_nav).
fund_holdings tool
Get a fund's top-10 holdings. counter_id from fund_hot / fund_list; optional scene selector. Returns {report_date, weighting, holdings: [{name, holding_type, weighting, shares, market_value, share_change, share_change_percent, industry_name, country_name, …}]}.
fund_stock_holdings tool
Reverse-lookup the individual stocks a fund holds. counter_id from fund_hot / fund_list; optional limit. Returns a top-level array of {counter_id, code, name, currency, position_ratio, report_date}.
fund_position_overview tool
Get the signed-in user's fund positions overview (all held funds). Requires an authenticated token. No parameters. Returns {account_channel, recent_trading_day, pending_buy_orders, sold_pending_credit_orders, list: [{counter_id, name, currency, holding_units, amount, holding_profit, recent_profit, …}]}.
fund_position tool
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). Returns {detail_values: {currency, holding_units, holding_value, holding_cost, holding_profit, holding_profit_rate, recent_profit, recent_unit_value, pending_buy_value, pending_sell_value, …}, sum_profit: [{date, value}], ut_value: [{date, unit_value, total_value, day_increase_rate}]}.
fund_position_performance tool
Get a held fund's performance figures. Requires auth. counter_id from fund_position_overview / fund_hot / fund_list. Returns a top-level array of {counter_id, fund_name, performance_return_<period> (one_day … ten_years, ytd), annualized_return_<one…ten>, update_time}.
fund_position_profits tool
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. Returns {currency, sum_profit, last_update_time, history_value: [{date, value}]}.
fund_position_nav tool
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. Returns a top-level array of {counter_id, counter_name, value, change, change_percent, last_update_time}.
fund_position_dividends tool
Get a held fund's dividend records (paged). Requires auth. counter_id from fund_position_overview; optional currency, start / end (unix seconds), page / size. Returns {currency, total_div_cash, lastest_date, div_cash_infos: [{counter_id, name, amount, currency, date, div_method}]}.
fund_orders tool
List the user's fund orders / execution records. Requires auth. Optional counter_ids, actions, states, currency, start / end (unix seconds), page / size. Returns a top-level array of {id, counter_id, fund_name, action, state, state_desc, amount, units, net_worth, currency, created_at, is_auto, product_type}.
fund_order tool
Get one fund order's detail by order_id (from fund_orders). Requires auth. Returns {order: {id, counter_id, fund_name, action, state, state_desc, amount, units, net_worth, fee, currency, created_at, …}, stages: [{stage, desc, progress, …}], keywords: [{title, content, …}]}.
fund_transactions tool
List the user's fund cash-flow records. Requires auth. Optional business_type, category, currencies, start / end (unix seconds), page / size. Returns a top-level array of {type_name, tx_type, category, description, amount, currency, stock_quantity, quantity_description, ref_no, created_at, done_at, …}.
fund_validate_order tool
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).
fund_submit_order tool
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.
fund_cancel_order tool
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.
exchange_rate tool
Get Longbridge's account-conversion exchange rates for all supported currencies (the rates used to value assets in an account's currency). Returns {exchanges[]{base_currency, other_currency, average_rate}}: average_rate is the value of 1 other_currency in base_currency (e.g. base USD, other HKD, 0.12743 = 1 HKD is 0.12743 USD). US accounts get a US-specific variant: the US account's rates in the same shape, one row per pair (the reference rate, else am) with spec_key naming the rate type. For public market reference rates or history, use fx_rate.
fx_rate tool
Public ECB foreign-exchange reference rates (via Frankfurter): one rate per business day, not live or tradable, no bid/ask. Latest by default, or a historical date / daily series. Returns {base, date, rates{CODE: rate}, source}; a series keys rates by yyyy-mm-dd. rate is CODE per 1 base (base USD, HKD 7.8472), the opposite direction to exchange_rate; for a cross rate, set base instead of dividing. Cite date with the rate: it is the publication day, possibly before today.
profit_analysis tool
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.
profit_analysis_detail tool
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.
profit_analysis_realized tool
Get realized P&L for a US account, broken down by category (stock/option/crypto) and period. Returns {realized_pl_list: [{category, currency, metrics: [{period, amount, rate, rate_unit}]}]}; rate is a decimal fraction. US accounts only; errors with DcRegionRestricted for AP accounts.
alert_list tool
Get all configured price alerts. Returns {lists[]{symbol, name, market, price, chg, indicators[]{id, indicator_id, text (the condition, e.g. "价格涨到 250"), value_map{price}, frequency, enabled, state}}}.
alert_add tool
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_delete tool
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_enable tool
Enable a price alert by alert_id. Returns {alert_id, enabled: true} on success. Use alert_list to find the numeric alert_id.
alert_disable tool
Disable a price alert by alert_id. Returns {alert_id, enabled: false} on success. Use alert_list to find the numeric alert_id.
signals tool
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. Returns each signal's title, summary, outlook and conservative/benchmark/optimistic target prices, plus the total for paging. The full strategy analysis is omitted here — fetch it with signal_detail.
signal_detail tool
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. Returns {id, symbol, company_name, market, title, summary, strategy_id, strategy_name, key_fact_id, key_catalyst, outlook, outlook_desc, analysis_price, conservative_price, benchmark_price, optimistic_price, status, created_at, updated_at, analysis: {confidence, signal: {core_conclusion, evidence_sources, quick_takeaways, releated_facts_ids, …}, strategy_fit_score: {total_score, key_takeaways, …}, strategy_notes, …}}.
security_facts tool
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. Returns {facts: [{fact_id, fact_type, direction, occur_time, symbols_info: [{symbol, security_name}], factors: [{name, factor_groups, long_short_direction, trigger_condition, anomaly_detection}], data_source: [{source_name, type, url, icon}], nl_info: {title, sub_title, summary, invest_anal, eli_explain}}]}.
news tool
Get latest news articles for a symbol, newest first (20 by default; set count for more). Returns a top-level array (no wrapper object) of {id, title, description, url, published_at, comments_count, likes_count, shares_count}. Citation fields content_via (0 = Longbridge original or licensed; non-zero = third-party repost), source, source_url (the original article) and source_logo are included when the upstream provides them.
news_detail tool
Get one news article's full detail by id (from news/news_search). Returns {id, title, description, body (Markdown), url, author{member_id, name}, images[], comments_count, likes_count, shares_count, published_at, tickers[]}. Citation fields content_via (0 = Longbridge original or licensed; non-zero = third-party repost), source, source_url (the original article) and source_logo are included when the upstream provides them.
topic tool
Get discussion topics for a symbol. Returns a top-level array of {id, title, description, url, published_at, comments_count, likes_count, shares_count}.
topic_detail tool
Get discussion topic detail by topic_id. Returns {id, title, description, body, author{member_id, name, avatar}, tickers[], hashtags, images[], likes_count, comments_count, shares_count, views_count, created_at, updated_at, detail_url, topic_type}.
topic_replies tool
Get replies to a discussion topic, paginated (page default 1, size default 20, range 1-50). Returns a top-level array of {id, topic_id, body, reply_to_id, author: {member_id, name}, images, likes_count, comments_count, created_at}.
topic_create tool
Create a new discussion topic. topic_type="post" (default) is plain text; "article" requires a non-empty title and accepts Markdown body.
topic_create_reply tool
Create a reply to a discussion topic. Pass reply_to_id to nest under another reply; omit for a top-level reply.
statement_list tool
List available account statements (daily/monthly). Returns {list[]{dt (statement date, yyyymmdd), file_key}}. Pass file_key to statement_export to download.
statement_export tool
Get a pre-signed download URL for a statement data file (obtained from statement_list). Returns {url}; fetch that URL to get the statement JSON.
short_positions tool
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. timestamp is the record date in the exchange's local time, so its date part is the record date.
option_volume tool
Get real-time option call/put volume stats for a US stock. Returns {c, p}: today's total call (c) and put (p) contract volume, as strings.
option_volume_daily tool
Get daily historical option stats for a US stock. Returns {stats[]{symbol, timestamp, total_volume, total_call_volume, total_put_volume, put_call_volume_ratio, total_open_interest, total_call_open_interest, total_put_open_interest, put_call_open_interest_ratio}}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
dca_list tool
List DCA recurring investment plans. Filter by status (Active/Suspended/Finished) or symbol. Returns plans[]{plan_id, symbol, stock_name, market, status, per_invest_amount, invest_frequency, invest_day_of_week, invest_day_of_month, next_trd_date, cum_amount, cum_profit, average_cost, issue_number, …}. Use plan_id with dca_update / dca_pause / dca_resume / dca_stop.
dca_create tool
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_update tool
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.
dca_pause tool
Pause (suspend) a DCA plan by plan_id. The plan stops executing until resumed. Returns upstream API response. Use dca_resume to restart.
dca_resume tool
Resume a suspended DCA plan by plan_id. Resumes automated execution on the configured schedule. Returns upstream API response.
dca_stop tool
Permanently stop a DCA plan by plan_id. This cannot be undone. To temporarily pause, use dca_pause instead. Returns upstream API response.
dca_history tool
Get execution history records for a DCA plan by plan_id. Returns executions[]{date, quantity, amount, price, status, order_id}.
dca_stats tool
Get DCA investment statistics. Returns {total_amount, total_profit, active_count, suspended_count, finished_count, rest_days (days until the next scheduled investment), nearest_plans[] (plans with the nearest upcoming execution, same shape as dca_list plans[]), invested_markets[] (market codes, e.g. ["US"])}. Amounts and counts are strings.
dca_check tool
Check whether given symbols support DCA recurring investment. Returns {infos[]{symbol, support_regular_saving (bool), regular_saving_plan_type}}, one entry per queried symbol.
grid_symbol_info tool
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 settlement currencies). Use before grid_submit to learn the symbol's grid constraints. Returns {name, last_done, lot_size, buy_lot_size, sell_lot_size, bid_sizes: [{str_proceed, end_proceed, bid_size}], channel_info: {strategy_granted, support_rth, currency, settlement_currency: [ … ]}}.
grid_list tool
List grid trading orders. Filter by symbol or comma-joined status (e.g. "Performing,Suspended"); supports page/limit and sort_by/sort_order. Returns grid_order[] summaries + has_more.
grid_list_by_ids tool
Fetch specific grid orders by their IDs. Returns grid_orders[] summaries.
grid_detail tool
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. Returns {order_id, symbol, stock_name, status, grid_status, suspend_reason, submitted_base_price, current_base_price, upper_limit_price, lower_limit_price, trigger_* rule fields, settlement_currency, expire_time, …, grid_sub_orders: [{id, price, quantity, executed_qty, action, status, submitted_at, …}], sub_has_more, grid_order_history: [{history_id, status, reason, created_at, …}], history_has_more}.
grid_trigger_history tool
Trigger history for one grid order: each triggered child order with price, quantity, executed price/qty, and trigger time. Supports page/limit. Returns {trigger_orders: [{id, symbol, status, action, price, quantity, executed_price, executed_qty, trigger_price, trigger_at, …}], has_more}.
grid_submit tool
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. A live grid keeps trading on its own. Requires symbol, settlement_currency, and the grid rule: base/upper/lower price, trigger_price_type (1=spread, 2=percent) with the matching spread/percent up/down, trigger_quantity, upper/lower_limit_quantity, time_in_force (0=Day, 1=GTC, 6=GTD), grid_order_type_up/down (GMO/GLO/GTG), and boundary events (1=ignore, 2=close-at-last). Prices/quantities are decimal strings.
grid_replace tool
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_cancel tool
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_suspend tool
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.
grid_restart tool
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.
sharelist_list tool
List user's own and subscribed community sharelists. Returns {sharelists[] (the user's own lists), subscribed_sharelists[] (lists the user subscribes to)}, each item {id, name, description, stocks_count, subscribers_count, subscribed, chg, this_year_chg, created_at, stocks, …}.
sharelist_detail tool
Get community sharelist detail by id. Returns {sharelist{id, name, description, stocks_count, subscribers_count, chg, this_year_chg, creator, stocks[]{symbol, name, market, code, intro, …}}, scopes{self, subscription, official, industry}, stock_topics, group}. Constituents carry no prices: pass their symbols to quote.
sharelist_create tool
Create a new community sharelist with a name and optional description. Returns the created sharelist object including its id, name, and description.
sharelist_delete tool
Delete a community sharelist by id (own lists only; subscribed lists cannot be deleted). Returns upstream API response on success.
sharelist_add tool
Add securities to a community sharelist by id. Provide symbols (e.g. ["AAPL.US", "700.HK"]) to add. Returns upstream API response.
sharelist_remove tool
Remove securities from a community sharelist by id. Provide symbols to remove. Returns upstream API response on success.
sharelist_sort tool
Reorder securities in a community sharelist by id. Provide symbols in the desired new order. Returns upstream API response on success.
sharelist_popular tool
Get popular/trending community sharelists. Returns {sharelists[]{id, name, description, stocks_count, subscribers_count, chg, this_year_chg, creator{id, name, …}, stocks, …}} sorted by popularity.
quant_run tool
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]".
news_search tool
Search news articles by keyword. Returns an array of {id, title, description (summary), source (outlet display name, localized by Accept-Language), published_at (RFC3339), url, content_via, source_url, source_logo}, most relevant first. content_via is 0 for Longbridge original or licensed content and non-zero for a third-party repost, whose original is at source_url.
topic_search tool
Search community topics/posts by keyword. Returns id, author, time, and excerpt.
financial_statement tool
Get financial statements (income statement, balance sheet, or cash flow) for a security. kind (required): IS/BS/CF, one statement per call; call again for each statement you need. report: af (annual, default), saf (semi-annual), qf (quarterly full), q1/q2/q3. periods: how many reporting periods to return, newest first (default 8). Returns {report, currency, empty_fields, list[]}: list[] holds the reporting periods, most recent first, each with its fields[]{name, field, level, value, yoy} line items (yoy is year over year, as a ratio); it can be empty when no data is available. US accounts querying a .US symbol are routed to a US-specific statement endpoint (same report vocabulary and envelope); all other symbol/account combinations use the generic path.
financial_report_key_metrics tool
Get key financial metrics (fin-keyfactor) for a US symbol. report: af (annual, default), saf, qf, q1/q2/q3. Returns {currency, report, empty_fields, list: [{ff_year, ff_period, fp_end, report_txt, rpt_date, fields: [{field, name, value, yoy, …}]}]}. US accounts only; errors with DcRegionRestricted for AP accounts.
etf_docs tool
Get regulatory/prospectus documents (etf-files) for a US ETF. Returns {files: [{file_name, file_path, update_date, code, format}]}. US accounts only; errors with DcRegionRestricted for AP accounts.
financial_report_latest tool
Get the latest financial report summary for a security. Returns {report (period code, e.g. "2026.H1"), report_txt (period label), currency, indicators[]{field_name, indicator_name, indicator_value, yoy}}, one indicator per key metric (revenue, net profit, total assets, total debts, EPS, BPS, ROE, net profit margin), identified by field_name. Ratio values carry a "%" suffix; yoy is a fraction (0.1627 = +16.27%), empty for ratios.
valuation_rank tool
Get daily valuation rank (PE/PB/PS/dividend yield industry percentile) for a security over a date range. start/end in yyyymmdd format; defaults to the last 30 days. Returns {kline_type, max_num, pe, pb, ps, dvd}, each series a list of {timestamp, rank} (rank out of max_num). Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
institution_rating_history tool
Get institution rating history. Returns target_history[]{timestamp, close, high_target_price, low_target_price} (analyst target range vs. close) and evaluate_history[]{start_date, end_date, buy, over, hold, under, sell, no_opinion} (rating counts; consecutive identical distributions are merged into one span). Times are unix epoch seconds as strings. Aggregated counts, no per-firm rating or target changes.
institution_rating_industry_rank tool
Get peers ranked by institution analyst ratings in the same industry. Returns {industry_name, industry_rank (the queried stock's rank), industry_total, industry_mean, industry_median, items[]{rank, symbol, name, buy, over, hold, under, sell, no_opinion, total}}. Paginated.
short_margin tool
Get short margin deposit details for the current account. Returns short positions with margin_amount, margin_rate, interest_rate, symbol, quantity per position.
bank_cards tool
List linked withdrawal bank cards for the current account. Returns cards[]{id, bank_name, account_number (masked), currency, status}.
withdrawals tool
List withdrawal history for the current account. Returns items[]{id, amount, currency, status, created_at, bank_name, account_number (masked)}.
deposits tool
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.
ipo_subscriptions tool
List IPO stocks in subscription/pre-filing stage (HK+US). Returns {hk, us}, each {list[]{symbol, code, name, issue_price, entrance_fee, min_sub_num, sub_end_date, remaining_day, share_planned, state, …}}.
ipo_calendar tool
Show the IPO calendar. Returns {sub_num, win_num, preipo_num, ipo_num, timestamp, list[]{symbol, code, name, sub_date, sub_end_date, result_date, ipo_date, mart_date, state, state_stage, tags}} for upcoming and recent IPOs.
ipo_listed tool
List recently listed IPO stocks (HK+US). Returns {hk, us}, each {total, list[]{symbol, code, name, description, ipo_date, listed_day, issue_price, prev_close, last_done, ipo_change, amount, …}}.
ipo_detail tool
Show IPO detail for a symbol. Returns profile (business overview), timeline[]{event, date}, subscription eligibility, pricing_range, lot_size, allotment_rules.
ipo_orders tool
List IPO orders (active+history). Returns orders[]{order_id, symbol, market, quantity, total_amount, status, submitted_at}. Filter by symbol, market, or status.
ipo_order_detail tool
Show detailed information for a specific IPO order by order_id. Returns {order_id, symbol, market, quantity, allotted_quantity, total_amount, status, submitted_at}.
ipo_profit_loss tool
Show IPO profit/loss summary and per-stock breakdown. Returns {total_cost, total_value, total_return, items[]{symbol, cost, current_value, return_rate}}. period: all/ytd/1y/3y.
business_segments tool
Get current-period business segment revenue breakdown for a symbol. Returns {total, currency, report_txt, fp_start, fp_end, rpt_date, business: [{id, name, value, percent, yoy}], regionals: [same shape; may be empty]}.
business_segments_history tool
Get historical business segment revenue trends (by period and category). Returns historical[].{date, total, currency, business[{name,percent,value}], regionals[{name,percent,value}]}
institutional_views tool
Get monthly institutional rating distribution timeline. Returns {elist[]{date, buy, over (outperform), hold, under (underperform), sell, no_opinion, total}, tlist[]{date, close, high_price, low_price}}, oldest first, for trend analysis. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
industry_rank tool
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.
industry_peers tool
Hierarchical sub-sector tree for an industry group. Accepts an industry symbol from industry_rank (e.g. IN00258.US). Returns chain{name, symbol, code, industry_id, sharelist_id, stock_num, chg, ytd_chg, next[{...}]} and top{name, industry_id}. Each node shows stock count, daily change, and YTD change.
financial_report_snapshot tool
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. Returns a flat object: name, ticker, market, currency, report, fiscal_year, fiscal_period, fp_start, fp_end, opt_reports, report_desc, fo_* as {value, yoy, …}, and fr_* either a plain string (ratios) or {value, yoy} (amounts).
shareholder_top tool
Get Top 20 major shareholders (institutions, individuals, insiders) across reporting periods, newest first (4 periods by default; set periods for more). Returns info[]{period, share_holders[]{object_id, name, title, shares_held, percent_shares_held, shares_changed, filing_date}}. Use object_id with shareholder_detail to drill into a holder's full trade history.
shareholder_detail tool
Get a single shareholder's holding and trade history. Requires object_id from shareholder_top. Returns name, owner_source (Company/Institution/Person/Insider), tradings[]{period, accum_buy, accum_sell, net_buy, trading_details[]{trading_date, trading_type, trading_shares, trading_price, security_type, filing_date}}, holding_summary, holding_periods, trading_periods. Note: trading_details[] is empty for institutional (13F) holders — it is only populated for insider/individual filers (Form 4).
valuation_comparison tool
Stock valuation comparison. Mode A (single): pass only symbol — server returns stock + auto-selected industry peers. Mode B (multi): pass symbol as primary + comparison_symbols (comma-separated, e.g. 'MSFT.US,GOOGL.US') for explicit peer comparison. currency: USD/HKD/CNY. Returns list[]{symbol, name, market_value, price_close, pe, pb, ps, history[]{date, pe, pb, ps}}. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
short_trades tool
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). Unified data[]{timestamp(RFC3339), short_vol(daily short volume in shares), rate(decimal ratio e.g. 0.36=36%), close}. US-only: nasdaq_vol(NASDAQ short), nyse_vol(NYSE short). HK-only: balance(HKD), market_vol(total market volume that day). US source: FINRA/NASDAQ daily. HK source: HKEX daily. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
top_movers tool
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). limit: results per page (default 20). next_params: pass next_params from previous response to paginate. Returns events[]{timestamp(RFC3339), alert_reason, alert_type, stock{symbol, name, change(decimal ratio e.g. 0.0445=+4.45%), last_done, labels[], intro}}, updated_at, next_params. Timestamps are in the exchange's local time (HK/CN/SG +08:00, US America/New_York).
rank_categories tool
Get rank tab category configurations for the popularity leaderboard. Returns first_tags[]{key, name, second_tags[]{key, name, market}}. Pass a second_tags key (e.g. `hot_all-us`) to rank_list.
rank_list tool
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). Returns lists[]{symbol, name, last_done, chg(decimal), inflow, market_cap, pre_post_price, pre_post_chg, amplitude, turnover_rate, volume_rate, five_day_chg, ten_day_chg, twenty_day_chg, this_year_chg, industry}, updated_at.
screener_recommend_strategies tool
List platform-preset screener strategies. market: US|HK|CN|SG (default: US). Returns strategys[]{id, name, description, market, three_months_chg, risk}. Pass id to screener_search strategy_id to run, or screener_strategy to inspect filter conditions.
screener_user_strategies tool
List the current user's saved screener strategies. market: US|HK|CN|SG (default: US). Returns strategys[]{id, name, description, market, three_months_chg, risk}. Pass id to screener_search strategy_id to run, or screener_strategy to inspect conditions.
screener_strategy tool
Inspect a screener strategy's filter conditions before running it. Returns market, filter{filters[]{key, min, max, tech_values}}. Use screener_search strategy_id to execute the strategy.
screener_search tool
Screen stocks. market: US|HK|CN|SG (Mode B required; Mode A uses strategy's market). Mode A: strategy_id from screener_recommend_strategies — auto-runs saved strategy. Mode B: conditions=[{"key":"KEY","min":"10","max":"50","tech_values":{}},...]. extra_returns=["key",...] adds display-only columns. sort_by_key: key name to sort by; sort_order: asc|desc (default desc). page: 0-based (default 0). Returns {total, items[]{symbol, name, counter_id, indicators[]{key, value}}, legend{<key>: {name, unit}}}. Fundamental keys: pettm pbmrq roe roa netmargin salesgrowthyoy netincomegrowthyoy marketcap(亿) circulating_marketcap(亿) prevclose prevchg(%) divyld la epsttm netincome(亿) sales(亿) turnover_rate balance(万). Technical keys (call screener_indicators for tech_values schema): macd_day/week rsi_day/week kdj_day/week boll_day/week.
screener_indicators tool
Get all available screener indicator keys with their units. Technical indicators carry tech_values {tech_key: [{value, label}]} listing the accepted values (e.g. macd_day: period [day], category [goldenfork, deadcross, upzero, downzero]); pass one value per tech_key as tech_values in screener_search. Optional symbol (e.g. AAPL.US) narrows to stock-specific indicators. Returns groups[]{group_type, group_name, indicators[]{id, key, name, unit, places, category, tech_values{tech_key: [{value, label}]}}}.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure6.1
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 197 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 197 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 197 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Requests any address
    No tool sends a request to an address the caller supplies — 197 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 197 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 197 capabilities; 197 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    196 of 197 capabilities touch files; 1 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    196 of 197 capabilities call the network; 1 more call code the scanner could not follow, where it may happen
Where the code is: 197 handlers in 1 file at commit 3a2323253dcd
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain3.9
  • Dependency manifests
    1 manifest: Cargo.toml
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database
  • Known vulnerabilities in production dependencies HIGH
    14 production packages with known advisories
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    rmcp 1.4
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 197 capabilities; 197 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (14 in production)

PackageInstalledWorstAdvisoriesFixed in
rmcpcrates.io 1.8.0 HIGH 5 advisories 2.0.02.1.03.9.0
  • HIGHGHSA-33f5-2c5q-wgwj CVE-2026-63127RMCP: Missing Resource Field Validation in OAuth Protected Resource Metadata Discovery
  • HIGHGHSA-9pj6-vhgr-3mwh CVE-2026-63128RMCP: Unauthenticated permanent session-table leak in rmcp Streamable HTTP server transport leads to remote denial-of-service
  • MEDIUMRUSTSEC-2026-0462 GHSA-c9f9-cp8h-jcj5Unbounded response body buffering in Streamable HTTP clients
  • MEDIUMGHSA-9g45-5xwm-f3wc CVE-2026-64684RMCP: Custom HTTP headers leak to cross-origin redirect targets
  • MEDIUMGHSA-c9xm-49cp-xcr9rmcp OAuth client fetches server-controlled resource_metadata URLs
rustlscrates.io 0.23.43 MEDIUM 8 advisories 0.23.450.23.460.24.0-dev.2
  • MEDIUMGHSA-2mjx-qc3c-rqvc CVE-2026-123613 RUSTSEC-2026-0285Rustls: TLS 1.3 handshake messages incorrectly accepted across encryption level boundaries
  • MEDIUMRUSTSEC-2026-0285 CVE-2026-123613 GHSA-2mjx-qc3c-rqvcTLS 1.3 handshake messages incorrectly accepted across encryption level boundaries
  • MEDIUMGHSA-c8m5-c952-6cm4 CVE-2026-123609 RUSTSEC-2026-0346Rustls: Session Debug formatting exposes TLS master secrets and resumption PSKs
  • MEDIUMRUSTSEC-2026-0349 CVE-2026-123611 GHSA-w44r-93j7-qv28Unauthenticated ServerHello can downgrade later connections to classical key exchange
  • MEDIUMRUSTSEC-2026-0346 CVE-2026-123609 GHSA-c8m5-c952-6cm4`Debug` impls for client session values expose TLS secrets
  • MEDIUMRUSTSEC-2026-0348 CVE-2026-123610 GHSA-h2v8-394m-p7vvBrotli certificate decompression can allocate up to 1 GiB before authentication
  • LOWGHSA-h2v8-394m-p7vv CVE-2026-123610 RUSTSEC-2026-0348Rustls: Brotli certificate decompression can allocate an attacker-controlled amount of memory up to 1 GiB before authentication.
  • LOWGHSA-w44r-93j7-qv28 CVE-2026-123611 RUSTSEC-2026-0349rustls: An unauthenticated ServerHello poisons the per-name key-exchange record, so later ClientHellos carry only a classical X25519 share
quinn-protocrates.io 0.11.17 MEDIUM 5 advisories 0.11.180.11.19
  • MEDIUMRUSTSEC-2026-0338 GHSA-465w-v9q3-7j98Remote peer can panic quinn-proto with zero-length STREAM frames during unordered reads
  • MEDIUMRUSTSEC-2026-0343 GHSA-ppcp-v39w-8jq2Outgoing datagram buffer accounting can panic the sender in quinn-proto
  • MEDIUMRUSTSEC-2026-0523 GHSA-53rm-773f-4q8cMAX_STREAM_DATA frame can open streams beyond the stream limit
  • MEDIUMRUSTSEC-2026-0340 GHSA-3g6h-r5qx-f6hqPeer minimum ACK delay can panic quinn-proto when ACK_FREQUENCY transmission is enabled
  • MEDIUMRUSTSEC-2026-0524 GHSA-wppq-2f6r-wfvmLong Retry token can panic or exhaust memory in a QUIC client
protobufcrates.io 2.28.0 MEDIUM 2 advisories 3.7.2
  • MEDIUMGHSA-2gh3-rmm4-6rq5 CVE-2025-53605 RUSTSEC-2024-0437Crash due to uncontrolled recursion in protobuf crate
  • MEDIUMRUSTSEC-2024-0437 CVE-2025-53605 GHSA-2gh3-rmm4-6rq5Crash due to uncontrolled recursion in protobuf crate
chronocrates.io 0.4.45 MEDIUM 1 advisory no fix yet
dotenvcrates.io 0.15.0 MEDIUM 1 advisory no fix yet
quinn-udpcrates.io 0.5.15 MEDIUM 1 advisory 0.5.160.6.3
  • MEDIUMRUSTSEC-2026-0538 GHSA-6pp4-4cxf-xf88Receive loop can spin after a truncated datagram
rkyvcrates.io 0.7.46 MEDIUM 1 advisory 0.8.17
  • MEDIUMRUSTSEC-2026-0235Insufficient archive validation can cause out-of-bounds reads in archives containing Rc/Arc
rustixcrates.io 1.1.4 MEDIUM 1 advisory 1.1.6
  • MEDIUMRUSTSEC-2026-0486 GHSA-jh2m-fhpj-3vr7xattr functions mark unwritten bytes as initialized when given a zero-length buffer
rustls-pemfilecrates.io 2.2.0 MEDIUM 1 advisory no fix yet
rustls-webpkicrates.io 0.103.14 MEDIUM 1 advisory 0.103.160.104.0-alpha.8
  • MEDIUMRUSTSEC-2026-0382 BIT-golang-2026-111943 CVE-2026-111943 GO-2026-6809 RUSTSEC-2026-0381 RUSTSEC-2026-0383Certificate verification may accept distrusted intermediates
tokiocrates.io 1.53.1 MEDIUM 1 advisory 1.51.61.53.3
urlcrates.io 2.5.8 MEDIUM 1 advisory 2.5.9
  • MEDIUMRUSTSEC-2026-0592 GHSA-hrj5-67jp-wqp9Stack overflow in `Url::origin()` on nested `blob:` URLs
webpki-rootscrates.io 1.0.9 MEDIUM 1 advisory 0.26.111.0.10
  • MEDIUMRUSTSEC-2026-0381 BIT-golang-2026-111943 CVE-2026-111943 GO-2026-6809 RUSTSEC-2026-0382 RUSTSEC-2026-0383Bundled root certificates allow trust in distrusted emSign intermediates

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package. A hosted version is also offered: https://mcp.longbridge.com not assessed a code scan covers the repository, not what runs on the vendor's servers
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
MCP SDKrmcp 1.4

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-16
Signed releasesnot checked yet

Where it is published

MCP Registrycom.longbridge/mcp
Hosted endpointhttps://mcp.longbridge.com
Listed in6 catalogs (awesome_tensorblock, github_search, glama, mcp_registry, mcp_toplist, mcpservers_org)
LicenseApache-2.0
Created2026-04-16
Topicsfinance longbridge mcp mcp-server model-context-protocol trading

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.