工具
Longbridge MCP 暴露 190+ 工具。客戶端連接後會自動發現,AI 會為每個請求選擇合適的工具 —— 你無需按名稱調用工具。
實際可用工具因地區、帳戶等級與 OAuth 授權範圍而異,Longbridge US 帳戶目前僅開放行情類工具。ChatGPT App 與 Claude 應用目錄連接器不含交易工具,詳見客戶端接入。
可用工具
查詢帳戶現金餘額與資產概覽,返回頂層數組 {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}}。美股賬戶返回同樣的數組,只有賬戶幣種一條:含 currency、total_cash、net_assets、buy_power、maintenance_margin 與 cash_infos[](以 settled_cash 代替 settling_cash);無 max_finance_amount、remaining_finance_amount、risk_level、margin_call、init_margin;美股購買力與保證金明細在 us{buy_limit_info, margin_status, cash_list[]} 下
參數
currencystring按幣種代碼篩選(如 `"USD"`、`"HKD"`),省略則返回所有幣種
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取港股兩地上市標的(如 939.HK)的 A/H 股溢價歷史,返回 {klines[]{timestamp, aprice, apreclose, hprice, hpreclose, currency_rate, ahpremium_rate}};ahpremium_rate 為比率(-0.27 表示 H 股較 A 股低 27%)時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
periodstringK 線週期:`1m`、`5m`、`15m`、`30m`、`60m`、`day`(預設)、`week`、`month`、`year`
countinteger返回的 K 線數量(預設 100)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取港股兩地上市標的(如 939.HK)當日逐分鐘 A/H 股溢價,返回 {klines[]{timestamp, aprice, hprice, ahpremium_rate, currency_rate}, apreclose, hpreclose};ahpremium_rate 為比率時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
新增價格預警,返回已創建的預警對象。condition:price_rise/price_fall(絕對價格)或 percent_rise/percent_fall(升跌幅);frequency:once/daily/every
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
conditionstring必填預警條件:`price_rise`、`price_fall`、`percent_rise`、`percent_fall`
pricestring必填閾值價格或百分比數值
frequencystring預警頻率:`once`(觸發一次後停用)、`daily`(每日一次)、`every`(每次滿足條件都觸發)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 alert_id(來自 alert_list 的數字字符串)刪除價格預警
參數
alert_idstring必填預警指標 id
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 alert_id 停用價格預警,返回 {alert_id, enabled: false}
參數
alert_idstring必填預警指標 id
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 alert_id 啟用價格預警,返回 {alert_id, enabled: true}
參數
alert_idstring必填預警指標 id
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取所有已配置的價格預警,返回 {lists[]{symbol, name, market, price, chg, indicators[]{id, indicator_id, text(預警條件文字,如「價格漲到 250」), value_map{price}, frequency, enabled, state}}}
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取市場異動提醒(價量異常變動)。market: HK/US/CN/SG。symbol: 可選,篩選特定股票。count: 返回數量(預設 50,最多 100)。返回 {changes[]{id, symbol, name, alert_type, alert_name, alert_time, change_values[], emotion (1 看多 / 2 看空)}, all_off}。時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
marketstring必填市場代碼:HK、US、CN、SG
symbolstring可選證券代碼,如 AAPL.US 或 700.HK,篩選特定股票的異動
countinteger返回數量,預設 50,最多 100
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
當你尚未取得長橋憑據時使用(例如客戶端無法完成瀏覽器 OAuth 流程)。用戶在 https://open.longbridge.com/connect 生成一次性授權碼並貼給你,將其作為 `auth_code` 傳入。成功後服務端會返回存取權杖,請在後續請求中作為 Bearer 憑據使用,即可解鎖全部工具。若你未授權且用戶尚未提供授權碼,請引導其前往 https://open.longbridge.com/connect 生成。
參數
auth_codestring必填用戶在 https://open.longbridge.com/connect 生成的一次性 OAuth 授權碼,5 分鐘內有效且僅可使用一次。
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
列出當前帳戶綁定的提款銀行卡,返回 cards[]{id, bank_name, account_number(脫敏), currency, status}
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定證券的主要券商持倉變動(僅港股;數據來自港交所中央結算系統 CCASS 參與者披露)。period 參數選擇時間窗口:近 1 日(預設)、5 日、20 日或 60 日。返回 {updated_at(披露日期,如 "2026.01.02"), buy[], sell[]}:窗口內淨增持 / 淨減持最多的參與者,每項 {name, parti_number, chg(持股淨變動股數,賣方為負), strong}。把 parti_number 傳給 broker_holding_daily 可查該參與者的逐日歷史。非港股返回空數組
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
periodstring時間窗口:`rct_1`(近 1 日,預設)、`rct_5`(近 5 日)、`rct_20`(近 20 日)、`rct_60`(近 60 日)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定券商(broker_id)對某證券的逐日持倉歷史,返回 {list[]{date, holding(持股數), chg(較前一日變動), ratio(佔已發行股份比例)}},最新在前
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
broker_idstring必填券商參與者編號
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定證券的券商持倉列表,按持股數從大到小(預設 50 家,更多用 count 指定;僅港股;數據來自港交所中央結算系統 CCASS 參與者披露)。返回 {updated_at(披露日期,如 "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}}:持股數及持股比例(ratio,如 "0.0108"),各自附近 1/5/20/60 日的變動。非港股返回空列表
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
countinteger返回的券商數量,持股最多的在前。預設 50(每條約 230 字節),一隻股票可能有 400 多家
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取經紀買賣盤隊列(僅港股),返回 {bid_brokers[], ask_brokers[]},最優價位在前,每檔 {position(從 1 開始), broker_ids[]}。數組可能為空。通過 participants 將經紀 ID 映射為名稱
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定證券當期主營業務分部營收構成,返回 {total, currency, report_txt, fp_start, fp_end, rpt_date, business: [{id, name, value, percent, yoy}], regionals: [結構相同;可能為空]}
參數
symbolstring必填證券代碼,例如 `"AAPL.US"`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取主營業務分部營收歷史趨勢,返回 historical[]{date, total, currency, business[{name, percent, value}], regionals[{name, percent, value}]}
參數
symbolstring必填證券代碼,例如 `"AAPL.US"`
reportstring報告期:`qf`(季報)、`saf`(中報)、`af`(年報)
catestringSegment category filter
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
批量計算證券的行情/財務指標(PE、PB、股息率、最新價、換手率等),傳入 symbols 和 indexes 列表,返回各標的的指標值,每個標的一行,只含所請求的指標;該標的沒有值的指標返回 null(000300.SH、HSI.HK 等市場指數沒有 PeTtmRatio/PbRatio/DividendRatioTtm,可改查其成分股)。當請求希臘字母指標(Delta、Gamma、Theta、Vega、Rho)時,返回值已歸一化:theta 為每日值(一天的時間損耗),vega 為隱含波動率每變動 1% 的價格變化,rho 為無風險利率每變動 1% 的價格變化。
參數
symbolsarray必填證券代碼,例如 `["700.HK", "AAPL.US"]`
indexesarray待計算指標:`LastDone`、`ChangeValue`、`ChangeRate`、`Volume`、`Turnover`、`YtdChangeRate`、`TurnoverRate`、`TotalMarketValue`、`CapitalFlow`、`Amplitude`、`VolumeRatio`、`PeTtmRatio`、`PbRatio`、`DividendRatioTtm`、`FiveDayChangeRate`、`TenDayChangeRate`、`HalfYearChangeRate`、`FiveMinutesChangeRate`、`ExpiryDate`、`StrikePrice`、`UpperStrikePrice`、`LowerStrikePrice`、`OutstandingQty`、`OutstandingRatio`、`Premium`、`ItmOtm`、`ImpliedVolatility`、`WarrantDelta`、`CallPrice`、`ToCallPrice`、`EffectiveLeverage`、`LeverageRatio`、`ConversionRatio`、`BalancePoint`、`OpenInterest`、`Delta`、`Gamma`、`Theta`、`Vega`、`Rho`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 order_id 撤銷未成交的委託,成功返回 "order cancelled";已成交或已撤銷則報錯。【必須兩步確認】未傳本次試執行返回的 confirmation_code 時,本工具為 DRY RUN(試執行):只校驗並回顯委託內容,不會發往交易所。請先不帶 execute 呼叫一次,把返回的預覽完整展示給用戶,只有在用戶明確確認這筆委託之後,才可再次呼叫並把該確認碼傳入 execute。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效。絕不可自行決定回填確認碼,也不可在用戶首次提出請求的同一輪就回填。試執行還會回顯本次要撤銷的委託,便於用戶核對是否為目標訂單。設為 is_attached=true 可按附加單自身的 order_id 單獨撤銷某個止盈/止損附加單;撤銷母單則會連同其附加單一併撤銷
參數
order_idstring必填委託單號
is_attachedboolean設為 true 表示按止盈/止損附加單自身的 order_id 撤銷該附加單,母單保持不變;省略或傳 false 表示撤銷母單(其附加單會一併撤銷)
executestring本次試執行返回的 confirmation_code。省略(預設)表示 DRY RUN:只校驗並回顯請求,同時返回一個三位確認碼,不會發往交易所。必須先不帶該參數呼叫一次,把預覽展示給用戶,待用戶明確確認後才可再次呼叫並回填該碼。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效——改動任何欄位即失效。不可自行決定回填。
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取 K 線數據(OHLCV)。period:1m/5m/15m/30m/60m/day/week/month/year;trade_sessions:intraday(預設,僅正常時段)或 all(含盤前盤後)。若賬戶權限上限低於請求的 count,會返回權限允許範圍內盡量多的數據而不報錯——如果需要精確數量,請檢查返回數組的長度。時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼
periodstringK 線週期:`1m`、`5m`、`15m`、`30m`、`60m`、`day`、`week`、`month`、`year`
countintegerK 線數量(最多 1000)
forward_adjustboolean是否對拆股 / 派息進行前復權
trade_sessionsstring交易時段:`intraday`(僅常規時段)或 `all`(含盤前盤後)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取資金分佈(大/中/小單流入流出),返回 {timestamp, capital_in{large, medium, small}, capital_out{large, medium, small}, data_available}。data_available 為 false 時表示該標的(如指數)沒有資金流數據,此時其餘欄位仍會返回但都是無意義的零值時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取該證券的資金流入時間序列(當日數據),返回頂層數組 {timestamp, inflow}時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢資金流水記錄(出入金、派息等),返回 頂層數組 {transaction_flow_name, direction(In/Out), business_type, balance(發生金額), currency, business_time, symbol, description}。上游的 direction 與 business_type 不可靠(恆為 Out / 0),請以 balance 的正負判斷方向。美股賬戶返回同樣的數組,但無 business_type(見 biz_code、biz_code_name);balance 為帶符號金額(無資金變動時如加密貨幣轉入轉出為 0),direction 取其符號,為 0 時取數量符號(兩者均為 0 時為 Unknown);另含 quantity、quantity_description、ref_no、equity_type;最多 2000 條,恰好 2000 條表示還有更多,請縮小時間範圍。按時間倒序
參數
start_atstring必填起始時間:RFC3339(如 2026-09-01T00:00:00Z),或日期(yyyy-mm-dd,表示當天 UTC 0 點)
end_atstring必填結束時間:RFC3339(如 2026-09-30T23:59:59Z),或日期(yyyy-mm-dd,表示當天 UTC 結束)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取公司概況,返回扁平的字符串物件:name、company_name、ticker、market、sector、category、region、founded、listing_date、employees、chairman、manager、website、address、profile 等。美股賬戶查詢 `.US` 標的會得到美股專屬變體 {intro, market_cap, ccy_symbol, top_rank_tags[], share_list[], detail_url}。區域由賬戶自動識別
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取未來各期的財務一致預期,返回 {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` 標的會得到美股專屬變體(新增 ai_summary,各期欄位不同)。區域由賬戶自動識別
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指數成份股或 ETF 資產分佈。指數(如 HSI.HK、.DJI.US)返回 {total, rise_num, fall_num, flat_num, stocks[]{symbol, name, last_done, prev_close, chg, inflow, balance, amount, total_shares, circulating_shares, tags[]}}。ETF(如 QQQ.US、2800.HK)返回資產分佈 info[],按 asset_type 分組:1=Holdings(主要持倉,含 code、symbol、holding_detail)/ 2=Regional(國家 / 地區分佈)/ 3=AssetClass(資產類別,如股票 / 債券 / 現金)/ 4=Industry(行業分佈)。每組含 report_date 與 lists[]{name, position_ratio, name_locales_map};Holdings 組額外含 code、symbol 及 holding_detail{industry_name, index_name, holding_type_name}
參數
symbolstring必填指數代碼,例如 `"HSI.HK"`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定證券的公司事件:財報日期、派息、拆股、回購、更名等。返回 items[]{id, date(YYYYMMDD), date_type, act_type, act_desc, action(類型代碼,如 ReportDate、DividendExDate), recent, is_delay, delay_content, live};date_type / act_type / act_desc 為本地化文本,live 為關聯直播(如業績電話會:{name, started_at, symbols[]})或 null
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
新建自選分組,返回 {id, name}。可選傳入 securities(如 ["AAPL.US"])預填入證券
參數
namestring必填分組名稱
securitiesarray要加入的證券代碼,例如 `["700.HK", "AAPL.US"]`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
檢查指定證券是否支援定投(DCA),返回 {infos[]{symbol, support_regular_saving(bool), regular_saving_plan_type}},每個查詢證券一項
參數
symbolsarray必填待檢查的證券代碼,例如 `["AAPL.US", "TSLA.US"]`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
創建定投(DCA)計劃。frequency:Daily/Weekly/Monthly;週頻對應 day_of_week(Mon–Fri),月頻對應 day_of_month(1-28)
參數
symbolstring必填證券代碼,例如 `"AAPL.US"`
amountstring必填每期投入金額,例如 `"100"`
frequencystring必填定投頻率:`Daily`(每日)、`Weekly`(每週)、`Monthly`(每月)
day_of_weekstring週頻時指定的週幾:`Mon`、`Tue`、`Wed`、`Thu`、`Fri`
day_of_monthinteger月頻時指定的日期(1-28)
allow_marginboolean是否允許使用融資(預設 `false`)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 plan_id 查詢定投計劃的扣款執行歷史,返回 executions[]{date, quantity, amount, price, status, order_id}
參數
plan_idstring必填定投計劃 ID
pageinteger頁碼(預設 1)
limitinteger每頁條數(預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
列出定投計劃,可按狀態(Active/Suspended/Finished)或證券篩選。返回 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, …}。plan_id 可用於 dca_update / dca_pause / dca_resume / dca_stop
參數
statusstring按狀態篩選:`Active`、`Suspended`、`Finished`,省略則返回全部
symbolstring按證券篩選,例如 `"AAPL.US"`,省略則返回全部計劃
pageinteger頁碼(預設 1)
limitinteger每頁條數(預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 plan_id 暫停定投計劃,計劃停止執行直至恢復。返回上游 API 響應。使用 dca_resume 重新啟動
參數
plan_idstring必填定投計劃 ID
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 plan_id 恢復已暫停的定投計劃,按原有週期繼續自動執行
參數
plan_idstring必填定投計劃 ID
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取定投統計,返回 {total_amount, total_profit, active_count, suspended_count, finished_count, rest_days(距下次定投扣款的天數), nearest_plans[](最近將執行的計劃,結構同 dca_list 的 plans[]), invested_markets[](市場代碼,如 ["US"])}。金額與數量均為字符串
參數
symbolstring按證券篩選,例如 `"AAPL.US"`,省略則返回所有計劃的合計統計
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 plan_id 永久終止定投計劃,操作不可撤銷。如需臨時暫停請使用 dca_pause
參數
plan_idstring必填定投計劃 ID
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 plan_id 更新定投計劃,可修改 amount、frequency(Daily/Weekly/Monthly)、day_of_week(Mon-Fri)或 day_of_month(1-28)
參數
plan_idstring必填待更新的定投計劃 ID
amountstring新的每期投入金額
frequencystring新的定投頻率:`Daily`、`Weekly`、`Monthly`
day_of_weekstring週頻時指定的週幾:`Mon`、`Tue`、`Wed`、`Thu`、`Fri`
day_of_monthinteger月頻時指定的日期(1-28)
allow_marginboolean是否允許使用融資
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按分組 id 刪除自選分組。purge=true 時同時從其他分組中移除該分組包含的證券
參數
idinteger必填自選分組 id
purgeboolean必填是否同時從其他分組中清除這些證券
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取當前帳戶入款歷史,返回 items[]{id, amount, currency, status, created_at, updated_at}。states:逗號分隔的狀態(Pending/Finished/Failed);currencies:逗號分隔的貨幣代碼
參數
pageinteger頁碼(預設 1)
sizeinteger每頁條數(預設 20)
statesstring入款狀態過濾(逗號分隔)
currenciesstring貨幣代碼過濾(逗號分隔),例如 `"USD,HKD"`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取買賣盤深度(最多 10 檔),返回 {bids[]{position, price, volume, order_num}, asks[]{position, price, volume, order_num}}
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取該證券的派息歷史,返回 {total, list: [{id, desc, counter_id, record_date, ex_date, payment_date}]};金額只在 desc 文本中。美股賬戶查詢 `.US` 標的會得到美股專屬變體(如 dividend_yield_ttm 為百分比數值:0.34 代表 0.34%)。區域由賬戶自動識別
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取詳細派息分紅方案,返回 list[]{desc, record_date, ex_date, payment_date},最新在前。desc 為本地化的可讀方案文本(金額與貨幣寫在文本中,可能含換行);沒有獨立的現金 / 股票分派金額欄位
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
估算指定證券的最大可買/可賣數量,返回 {cash_max_qty, margin_max_qty}
參數
symbolstring必填證券代碼
sidestring買賣方向:`Buy`(買入)或 `Sell`(賣出)
order_typestring委託類型:`LO`(限價單)/ `ELO`(增強限價單)/ `MO`(市價單)/ `AO`(競價單)/ `ALO`(競價限價單)
pricestring委託價格(限價類委託需要)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取美股 ETF 的監管 / 招募說明書文件(etf-files),返回 {files: [{file_name, file_path, update_date, code, format}]}。僅限美股賬戶;亞太賬戶調用會返回 DcRegionRestricted 錯誤
參數
symbolstring必填ETF代碼,例如 `"SPY.US"`
limitinteger最多返回的文件數量,留空返回全部
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取 Longbridge 賬戶折算匯率(用於將資產折算為賬戶幣種),覆蓋全部支援幣種,返回 {exchanges[]{base_currency, other_currency, average_rate}}:average_rate 為 1 單位 other_currency 折合的 base_currency(如 base USD、other HKD、0.12743 即 1 HKD = 0.12743 USD)。美股賬戶返回美股賬戶自身的匯率,結構相同,每個幣種對一條(優先 reference 匯率,否則 am),spec_key 標明匯率類型。如需公開市場參考匯率或歷史匯率,請用 fx_rate
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取公司高管及董事會成員信息,返回 professional_list[](每個證券一項){symbol, total, forward_url, professionals[]{id, name, title, biography, wiki_url}}
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取該證券的監管文件公告(8-K、10-Q、10-K 等),返回頂層數組 {id, title, description, file_name, file_urls[], publish_at}
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按類別查詢財經日曆:report(財報)/ dividend(派息)/ split(拆股)/ ipo / macrodata(CPI、非農、利率)/ closed(休市日)。start、end(YYYY-MM-DD)均為可選,預設為今天起 7 天。只關心某一市場時請傳入 market(如 US):不篩選市場時一週的全市場財報數據達數百 KB,會被截斷。返回 {list: [{date, infos: [{symbol, counter_name, market, content, type, date, datetime, date_type, data_kv: [{type, value, value_raw}], star(macrodata), currency, …}]}]},每天一項財報、宏觀數據和休市日的 datetime 為所屬市場當地時間(帶時區偏移);分紅、拆股和 IPO 條目仍為 UTC 日期。
參數
categorystring必填事件類別:`report`(財報,含財務報表)/ `dividend`(派息公告)/ `split`(拆股與反向拆股即合股)/ `ipo`(即將上市的 IPO)/ `macrodata`(宏觀經濟數據發佈,如 CPI、非農、議息決議等)/ `closed`(市場休市日)
startstring起始日期(`YYYY-MM-DD`,含當日),預設為今天(UTC)
endstring結束日期(`YYYY-MM-DD`,含當日),預設為 `start` 之後 7 天
marketstring可選市場篩選:HK、US、CN、SG、JP、UK、DE、AU,省略則包含所有市場
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取財務報告(損益表、資產負債表、現金流量表)。kind:IS/BS/CF/ALL;report_type:af(年報)、saf(半年報)、q1/q2/q3、qf(季報全量)。每個科目預設返回最近 8 期,更多用 periods 指定。返回 {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}]}]}]}}}。美股賬戶在不傳 kind 的情況下查詢 `.US` 標的會路由到美股專屬概覽接口(is_list/bs_list/cf_list);顯式傳入 kind 時始終走通用接口
參數
symbolstring必填證券代碼,例如 `"AAPL.US"`
kindstring報表種類:`IS`(損益表)、`BS`(資產負債表)、`CF`(現金流量表)、`ALL`(預設全部)
report_typestring報告期:`af`(年度)、`saf`(半年度)、`q1` / `q2` / `q3`(季度)、`qf`(季度全量)
periodsinteger每個科目返回的期數,最新在前。預設 8;上游最多約 46 期,一次放不下
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取美股標的的關鍵財務指標(fin-keyfactor)。report:af(年度,預設)、saf、qf、q1/q2/q3。返回 {currency, report, empty_fields, list: [{ff_year, ff_period, fp_end, report_txt, rpt_date, fields: [{field, name, value, yoy, …}]}]}。僅限美股賬戶;亞太賬戶調用會返回 DcRegionRestricted 錯誤
參數
symbolstring必填證券代碼,例如 `"AAPL.US"`
reportstring報告期:`af`(年度,預設)、`saf`(半年度)、`qf`(季度全量)、`q1` / `q2` / `q3`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取證券最新財務報告摘要,返回 {report(報告期代碼,如 "2026.H1"), report_txt(報告期名稱), currency, indicators[]{field_name, indicator_name, indicator_value, yoy}},每個關鍵指標一項(營收、淨利潤、總資產、總負債、EPS、BPS、ROE、淨利率),以 field_name 識別。比率類數值帶 "%" 後綴;yoy 為小數(0.1627 = +16.27%),比率類為空
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取財報快照:report_desc(文字摘要)、fo_revenue/fo_ebit/fo_eps(實際 vs 預期,含同比 / 對比)、fr_* 財務比率(ROE、利潤率、資產、現金流)。report:qf/saf/af。返回扁平物件:name、ticker、market、currency、report、fiscal_year、fiscal_period、fp_start、fp_end、opt_reports、report_desc,fo_* 為 {value, yoy, …},fr_* 為純字符串(比率)或 {value, yoy}(金額)
參數
symbolstring必填證券代碼,例如 `"AAPL.US"`
reportstring報告期:`qf`(季報)、`saf`(半年報)、`af`(年報)
fiscal_yearinteger財政年度,例如 `2024`
fiscal_periodstring財政期間,例如 `"1"`、`"2"`、`"3"`、`"4"`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取證券財務報表(損益表、資產負債表或現金流量表)。kind(必填):IS/BS/CF,每次只取一張表,需要多張表請分別調用;report:af(年報,預設)、saf(半年報)、qf(季報全量)、q1/q2/q3;periods:返回的報告期數,最新在前(預設 8)。返回 {report, currency, empty_fields, list[]}:list[] 為各報告期(最新在前),每期含 fields[]{name, field, level, value, yoy} 科目明細(yoy 為同比,小數);無數據時可能為空。美股賬戶查詢 `.US` 標的會路由到美股專屬報表接口(report 詞彙與返回結構相同);其餘證券 / 賬戶組合走通用接口
參數
symbolstring必填證券代碼,例如 `"AAPL.US"`
kindstring必填報表類型(必填,每次一張):`IS`(損益表)、`BS`(資產負債表)、`CF`(現金流量表)
reportstring報告期:`af`(年報)、`saf`(半年報)、`qf`(季報)、`q1`/`q2`/`q3`
periodsinteger返回的報告期數,最新在前,預設 8
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取 EPS 預測歷史,返回 items[],每個預測窗口一份分析師一致預期快照:{forecast_start_date, forecast_end_date, forecast_eps_mean, forecast_eps_median, forecast_eps_lowest, forecast_eps_highest, institution_total, institution_up, institution_down}。僅含預測,不含實際 EPS 或超預期幅度;預期與實際對比請用 consensus
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取基金一級分析(風險 / 收益概覽)。counter_id 來自 fund_hot / fund_list;period 可選。返回 {visible, actual_period, updated_at, return_ability, risk_ability, cost_level, value_for_money},每個維度為 {visible, score_pct, level}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
periodinteger分析週期(服務端定義,如近 1 月 / 3 月 / 1 年),省略則用預設週期
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取基金詳細分析(fund_analysis 背後的更細指標)。counter_id 來自 fund_hot / fund_list;period 可選。返回 fund_analysis 的結構再加 available_periods,且每個維度另含 items: [ … ](逐項指標拆解)
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
periodinteger分析週期(服務端定義,如近 1 月 / 3 月 / 1 年),省略則用預設週期
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取基金逐年收益(分頁)。counter_id 來自 fund_hot / fund_list;page / size 可選。
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
pageinteger頁碼(從 1 開始),省略取第一頁
sizeinteger每頁條數,省略用服務端預設
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 order_id 撤銷基金委託。【必須兩步確認】未傳本次試運行返回的 confirmation_code 時為 DRY RUN(試運行):先不帶 execute 調用一次,把返回的預覽(會回顯本次要撤銷的委託)完整展示給用戶,只有在用戶明確確認這筆委託後才可再次調用並把該確認碼傳入 execute。需認證。order_id 來自 fund_orders。
參數
order_idinteger必填要撤銷的基金訂單 id(來自 fund_orders)
executestring本次試運行返回的 confirmation_code。省略(預設)表示 DRY RUN:只校驗並回顯請求,同時返回一個三位確認碼,不會發往基金通道。必須先不帶該參數調用一次,把預覽展示給用戶,待用戶明確確認後才可再次調用並回填該碼。確認碼由訂單本身推導而來,只對這一筆完全相同的請求生效——改動任何欄位即失效。不可自行決定回填。
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取單一基金的概況與關鍵數據。counter_id(如 UT/FD/HK0000384492)來自 fund_hot / fund_list。返回扁平物件: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}]} 等
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取 fund_list 支援的篩選項(filter 物件結構與快捷篩選 id)。無參數。返回 {asset_class, company, currency, industry_category_name, risk_level},每項為選項列表,如 {key, value}
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取持有指定證券的基金及 ETF,返回 lists[]{symbol(基金代碼), name, currency, position_ratio(所查股票在該基金中的權重,百分比), report_date}
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取基金前十大持倉。counter_id 來自 fund_hot / fund_list;scene 可選。返回 {report_date, weighting, holdings: [{name, holding_type, weighting, shares, market_value, share_change, share_change_percent, industry_name, country_name, …}]}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
sceneinteger持倉場景選擇(服務端定義,如股票 / 債券分佈),省略用預設
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取長橋基金頻道的熱銷基金列表。每行包含供其他 fund_* 工具使用的基金 counter_id(如 UT/FD/HK0000384492)。無參數。返回頂層數組 {counter_id, name, currency, asset_class_name, risk_level_name, earning_rate, time_interval, purchase_amount, recommendation_text, fund_performances: [{date, last_done}], …}
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
瀏覽 / 篩選基金。可選 filter(來自 fund_filters 的物件)、quick_ids、time_interval。每行包含供其他 fund_* 工具使用的 counter_id。返回頂層數組 {counter_id, name, code, isin, currency, asset_class_name, risk_level_name, earning_rate, time_interval, unit_value, holding, purchase_amount, …}
參數
filter服務端定義的篩選物件(見 fund_filters),省略則不過濾
quick_idsarray快捷篩選 id(來自 fund_filters)
time_intervalarray每行包含的收益率時間區間(如 ["1m","1y"])
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取基金最新淨值(NAV)。counter_id 來自 fund_hot / fund_list。返回頂層數組 {counter_id, counter_name, isin, currency, value, change, change_percent, date_format, last_update_time, …}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取基金歷史淨值序列(分頁)。counter_id 來自 fund_hot / fund_list;page / size 可選。返回頂層數組 {value, change, change_percent, date_format, last_update_time, …}(行結構同 fund_nav)
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
pageinteger頁碼(從 1 開始),省略取第一頁
sizeinteger每頁條數,省略用服務端預設
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按相對時間區間獲取基金歷史淨值。counter_id 來自 fund_hot / fund_list;設定 month_before 或 year_before。返回頂層數組 {value, change, change_percent, date_format, last_update_time, …}(行結構同 fund_nav)
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
month_beforeinteger距今月數,與 year_before 互補,省略用預設區間
year_beforeinteger距今年數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 order_id(來自 fund_orders)獲取單筆基金訂單詳情。需認證。返回 {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, …}]}
參數
order_idinteger必填基金訂單 id(來自 fund_orders)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取用戶的基金訂單 / 成交記錄。需認證。可選 counter_ids、actions、states、currency、start / end(Unix 秒)、page / size。返回頂層數組 {id, counter_id, fund_name, action, state, state_desc, amount, units, net_worth, currency, created_at, is_auto, product_type}
參數
counter_idsarray按基金 counter_id 過濾,省略則全部
actionsstring按操作過濾,逗號分隔(如 buy,sell),省略則全部
statesstring按訂單狀態過濾,逗號分隔,省略則全部
currencystring幣種過濾(如 HKD、USD),省略則全部
startinteger起始時間(Unix 秒),省略用預設區間
endinteger結束時間(Unix 秒)
pageinteger頁碼(從 1 開始)
sizeinteger每頁條數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取基金每日表現數據。counter_id 來自 fund_hot / fund_list。返回頂層數組 {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, …}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
將基金業績與基準 / 同類對比。counter_id 來自 fund_hot / fund_list;period 可選。返回 {fund_performances: [ … ], contrast_performances: [{name, performances: [ … ]}]}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
periodinteger分析週期(服務端定義,如近 1 月 / 3 月 / 1 年),省略則用預設週期
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取單一持有基金的持倉詳情。需認證。counter_id 來自 fund_position_overview / fund_hot / fund_list;start / end(YYYY-MM-DD)可選。返回 {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}]}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
startstring起始日期(`YYYY-MM-DD`),省略用服務端預設區間
endstring結束日期(`YYYY-MM-DD`)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取持有基金的分紅記錄(分頁)。需認證。counter_id 來自 fund_position_overview;currency、start / end(Unix 秒)、page / size 可選。返回 {currency, total_div_cash, lastest_date, div_cash_infos: [{counter_id, name, amount, currency, date, div_method}]}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
currencystring幣種過濾(如 HKD、USD),省略則全部
startinteger起始時間(Unix 秒),省略用預設區間
endinteger結束時間(Unix 秒)
pageinteger頁碼(從 1 開始)
sizeinteger每頁條數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按相對區間獲取持有基金的淨值歷史。需認證。counter_id 來自 fund_position_overview;設定 month_before 或 year_before。返回頂層數組 {counter_id, counter_name, value, change, change_percent, last_update_time}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
month_beforeinteger距今月數,與 year_before 互補,省略用預設區間
year_beforeinteger距今年數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取登入用戶的基金持倉總覽(全部持有基金)。需已認證 token。無參數。返回 {account_channel, recent_trading_day, pending_buy_orders, sold_pending_credit_orders, list: [{counter_id, name, currency, holding_units, amount, holding_profit, recent_profit, …}]}
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取持有基金的表現數據。需認證。counter_id 來自 fund_position_overview / fund_hot / fund_list。返回頂層數組 {counter_id, fund_name, performance_return_<period>(one_day … ten_years、ytd), annualized_return_<one…ten>, update_time}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取持有基金的累計收益明細(分頁)。需認證。counter_id 來自 fund_position_overview;start / end(YYYY-MM-DD)、page / size 可選。返回 {currency, sum_profit, last_update_time, history_value: [{date, value}]}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
startstring起始日期(`YYYY-MM-DD`),省略用服務端預設區間
endstring結束日期(`YYYY-MM-DD`)
pageinteger頁碼(從 1 開始)
sizeinteger每頁條數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢當前基金持倉,返回 list[].fund_info[]{counter_id, symbol_name, currency, holding_units, current_net_asset_value, cost_net_asset_value, net_asset_value_day}。counter_id 為基金 id(如 UT/FD/HK0000384492),其最後一個 / 後的欄位即 ISIN。
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取基金逐季收益(分頁)。counter_id 來自 fund_hot / fund_list;page / size 可選。
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
pageinteger頁碼(從 1 開始),省略取第一頁
sizeinteger每頁條數,省略用服務端預設
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
反查基金持有的個股。counter_id 來自 fund_hot / fund_list;limit 可選。返回頂層數組 {counter_id, code, name, currency, position_ratio, report_date}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
limitinteger返回個股數量上限,省略用服務端預設
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
提交基金買賣委託。【必須兩步確認】未傳本次試運行返回的 confirmation_code 時為 DRY RUN(試運行):先不帶 execute 調用一次,把預覽完整展示給用戶,只有在用戶明確確認後才可再次調用並把該確認碼傳入 execute。需認證。counter_id 來自 fund_hot / fund_list;action 為 buy 或 sell;currency 如 HKD/USD;amount(投入現金)與 units(賣出份額)二選一;is_sell_all=true 全部贖回。可先用 fund_validate_order 做安全的下單前校驗。
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
actionstring必填委託方向:buy(買入)或 sell(賣出)
currencystring必填委託幣種,如 HKD、USD
amountstring申購金額(投入現金)。按金額買入時使用;與 units 互斥
unitsstring贖回份額(賣出份額)。按份額賣出/買入時使用;與 amount 互斥
dividend_optioninteger分紅方式(服務端定義,如紅利再投或現金派發)
feestring費用金額,省略用服務端預設
is_sell_allboolean是否全部賣出;用於全額贖回,會覆蓋 units
remarkstring委託備註
trade_methodinteger交易方式選擇(服務端定義),省略用預設
executestring本次試運行返回的 confirmation_code。省略(預設)表示 DRY RUN:只校驗並回顯請求,同時返回一個三位確認碼,不會發往基金通道。必須先不帶該參數調用一次,把預覽展示給用戶,待用戶明確確認後才可再次調用並回填該碼。確認碼由訂單本身推導而來,只對這一筆完全相同的請求生效——改動任何欄位即失效。不可自行決定回填。
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取用戶的基金資金變動記錄。需認證。可選 business_type、category、currencies、start / end(Unix 秒)、page / size。返回頂層數組 {type_name, tx_type, category, description, amount, currency, stock_quantity, quantity_description, ref_no, created_at, done_at, …}
參數
business_typestring業務類型過濾(服務端定義),省略則全部
categorystring類別過濾(服務端定義),省略則全部
currenciesstring幣種過濾,逗號分隔(如 HKD,USD),省略則全部
startinteger起始時間(Unix 秒),省略用預設區間
endinteger結束時間(Unix 秒)
pageinteger頁碼(從 1 開始)
sizeinteger每頁條數,預設 20
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取基金走勢圖數據。counter_id 來自 fund_hot / fund_list;period 可選。返回 {actual_period, available_periods, fund_performances: [ … ], category_average_performances: [ … ], contrast_performances: {benchmark_name, performances: [ … ]} 或 null}
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
periodinteger分析週期(服務端定義,如近 1 月 / 3 月 / 1 年),省略則用預設週期
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
對基金買賣委託做下單前校驗。不會下單,只把請求發到基金通道做檢查並返回校驗結果(費用、限額、預估份額/金額)。需認證。counter_id 來自 fund_hot / fund_list;action 為 buy 或 sell;currency 如 HKD/USD;amount(現金)與 units(份額)二選一。
參數
counter_idstring必填基金 counter_id(如 UT/FD/HK0000384492),來自 fund_hot / fund_list
actionstring必填委託方向:buy(買入)或 sell(賣出)
currencystring必填委託幣種,如 HKD、USD
amountstring申購金額(投入現金)。按金額買入時使用;與 units 互斥
unitsstring贖回份額(賣出份額)。按份額賣出/買入時使用;與 amount 互斥
dividend_optioninteger分紅方式(服務端定義,如紅利再投或現金派發)
fund_sourceinteger資金來源選擇(服務端定義),省略用預設
account_channelstring賬戶通道(服務端定義),省略用預設
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
歐洲央行(ECB)公開外匯參考匯率(經 Frankfurter):每個工作日一個匯率,非實時、不可成交,無買賣價。預設返回最新匯率,也可查歷史某日或逐日序列。返回 {base, date, rates{幣種代碼: 匯率}, source};序列的 rates 按 yyyy-mm-dd 分組。匯率為 1 單位 base 折合的該幣種數量(base USD 時 HKD 7.8472),與 exchange_rate 方向相反;查交叉匯率請直接設定 base,不要相除。引用匯率時請註明 date:它是發佈日,可能早於今天
參數
basestring基準貨幣,ISO 4217 代碼(預設 `"USD"`)。匯率為 1 單位基準貨幣折合的各報價貨幣數量
currenciesarray報價貨幣,ISO 4217 代碼,例如 `["HKD", "CNY"]`(不是 "700.HK" 這類證券代碼)。不傳則返回全部 30 種支援幣種。傳 `start` 時必填,最多 5 個。不含 CNH、TWD 及加密貨幣
datestring歷史日期(`yyyy-mm-dd`,自 1999-01-04 起)。返回當天公佈的匯率,非工作日取此前最近一個工作日。不可與 `start`/`end` 同時使用
startstring序列起始日期(`yyyy-mm-dd`),返回 `start` 至 `end` 之間每個工作日一條
endstring序列結束日期(`yyyy-mm-dd`,預設最新),僅在傳 `start` 時有效;跨度不超過 366 天
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
識別本連接登入的 Longbridge 交易賬戶(訪問令牌綁定的那一個賬戶,而非用戶名下全部賬戶)。無參數。返回 {id, nickname, email, dc_region(AP|US), account_no, member_id}:id 為賬戶的穩定標識(即 aaid),nickname 為可讀名稱(如 "Longbridge Securities Account H11701971"),email 恆為空;令牌未帶賬戶號時 account_no 為 null
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 order_id 取消(終止)網格訂單。【必須兩步確認】未傳本次試執行返回的 confirmation_code 時,本工具為 DRY RUN(試執行):只校驗並回顯請求內容,不會發往交易所。請先不帶 execute 呼叫一次,把返回的預覽完整展示給用戶,只有在用戶明確確認之後,才可再次呼叫並把該確認碼傳入 execute。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效。絕不可自行決定回填確認碼
參數
order_idstring必填網格訂單號
executestring本次試執行返回的 confirmation_code。省略(預設)表示 DRY RUN:只校驗並回顯請求,同時返回一個三位確認碼,不會發往交易所。必須先不帶該參數呼叫一次,把預覽展示給用戶,待用戶明確確認後才可再次呼叫並回填該碼。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效——改動任何欄位即失效。不可自行決定回填。
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
單個網格訂單的完整詳情:規則參數、狀態、內嵌子訂單(grid_sub_orders)與生命週期歷史(grid_order_history)。支援 history_id 游標與 limit 分頁。返回 {order_id, symbol, stock_name, status, grid_status, suspend_reason, submitted_base_price, current_base_price, upper_limit_price, lower_limit_price, trigger_* 規則欄位, 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}
參數
order_idstring必填網格訂單號
history_idstring分頁游標,用於翻頁內嵌的觸發歷史
limitinteger內嵌子訂單 / 歷史列表的每頁數量
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
列出網格交易訂單。可按標的或逗號分隔的狀態(如 "Performing,Suspended")篩選,支援分頁與排序。返回 grid_order[] 摘要與 has_more。
參數
symbolstring證券代碼,例如 "700.HK"
statusstring逗號分隔的狀態篩選,如 "Performing,Suspended"
pageinteger頁碼(預設 1)
limitinteger每頁數量(預設 20)
sort_bystring排序欄位(如 "created_at")
sort_orderstring排序方向("asc"/"desc")
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按訂單 ID 批量取得網格訂單,返回 grid_orders[] 摘要。
參數
order_idsarray必填網格訂單號陣列,例如 ["123","456"]
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 order_id 修改網格訂單規則,規則欄位同 grid_submit。【必須兩步確認】未傳本次試執行返回的 confirmation_code 時,本工具為 DRY RUN(試執行):只校驗並回顯請求內容,不會發往交易所。請先不帶 execute 呼叫一次,把返回的預覽完整展示給用戶,只有在用戶明確確認之後,才可再次呼叫並把該確認碼傳入 execute。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效。絕不可自行決定回填確認碼。試執行會回顯將要替換當前規則的新規則
參數
order_idstring必填網格訂單號
submitted_base_pricestring基準價(網格錨定價,小數字串)
upper_limit_pricestring上限價(小數字串)
lower_limit_pricestring下限價(小數字串)
trigger_price_typeinteger觸發方式:1=價差,2=百分比
trigger_spread_upstring向上觸發價差(絕對值,配 type=1,小數字串)
trigger_spread_downstring向下觸發價差(絕對值,配 type=1,小數字串)
trigger_percent_upstring向上觸發百分比(配 type=2,小數字串)
trigger_percent_downstring向下觸發百分比(配 type=2,小數字串)
multiple_triggerboolean同一網格是否允許多次觸發
time_in_forceinteger有效期:0=當日,1=GTC,6=GTD
upper_limit_quantitystring觸及上限時處理的數量(小數字串)
lower_limit_quantitystring觸及下限時處理的數量(小數字串)
expire_timeinteger到期時間(unix 秒,配 GTD)
upper_limit_eventinteger觸及上限時的動作:1=忽略(繼續運行),2=按最新價平倉
lower_limit_eventinteger觸及下限時的動作:1=忽略(繼續運行),2=按最新價平倉
trigger_sell_depthinteger賣方盤口深度(-5..5,0=用 grid_order_type_up)
trigger_buy_depthinteger買方盤口深度(-5..5,0=用 grid_order_type_down)
trigger_quantitystring每次觸發數量(小數字串)
support_shortsellboolean是否允許融券賣出
rthinteger盤中交易時段標誌:0/1/2
grid_order_type_upstring深度為 0 時的賣方訂單類型:GMO/GLO/GTG
grid_order_type_downstring深度為 0 時的買方訂單類型:GMO/GLO/GTG
executestring本次試執行返回的 confirmation_code。省略(預設)表示 DRY RUN:只校驗並回顯請求,同時返回一個三位確認碼,不會發往交易所。必須先不帶該參數呼叫一次,把預覽展示給用戶,待用戶明確確認後才可再次呼叫並回填該碼。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效——改動任何欄位即失效。不可自行決定回填。
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 order_id 恢復已暫停的網格訂單。【必須兩步確認】未傳本次試執行返回的 confirmation_code 時,本工具為 DRY RUN(試執行):只校驗並回顯請求內容,不會發往交易所。請先不帶 execute 呼叫一次,把返回的預覽完整展示給用戶,只有在用戶明確確認之後,才可再次呼叫並把該確認碼傳入 execute。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效。絕不可自行決定回填確認碼。重啟後網格會重新自行持續下單
參數
order_idstring必填網格訂單號
executestring本次試執行返回的 confirmation_code。省略(預設)表示 DRY RUN:只校驗並回顯請求,同時返回一個三位確認碼,不會發往交易所。必須先不帶該參數呼叫一次,把預覽展示給用戶,待用戶明確確認後才可再次呼叫並回填該碼。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效——改動任何欄位即失效。不可自行決定回填。
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
提交網格交易訂單。需提供 symbol、settlement_currency 及網格規則:基準價/上限價/下限價、trigger_price_type(1=價差,2=百分比)及對應的價差/百分比上下沿、trigger_quantity、上下限數量、time_in_force(0=當日,1=GTC,6=GTD)、grid_order_type_up/down(GMO/GLO/GTG)、邊界事件(1=忽略,2=按最新價平倉)。價格/數量為字串。【必須兩步確認】未傳本次試執行返回的 confirmation_code 時,本工具為 DRY RUN(試執行):只校驗並回顯請求內容,不會發往交易所。請先不帶 execute 呼叫一次,把返回的預覽完整展示給用戶,只有在用戶明確確認之後,才可再次呼叫並把該確認碼傳入 execute。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效。絕不可自行決定回填確認碼。網格一旦生效會自行持續交易
參數
symbolstring必填證券代碼,例如 "700.HK"
settlement_currencystring必填結算貨幣,例如 "HKD"
submitted_base_pricestring基準價(網格錨定價,小數字串)
upper_limit_pricestring上限價(小數字串)
lower_limit_pricestring下限價(小數字串)
trigger_price_typeinteger觸發方式:1=價差,2=百分比
trigger_spread_upstring向上觸發價差(絕對值,配 type=1,小數字串)
trigger_spread_downstring向下觸發價差(絕對值,配 type=1,小數字串)
trigger_percent_upstring向上觸發百分比(配 type=2,小數字串)
trigger_percent_downstring向下觸發百分比(配 type=2,小數字串)
multiple_triggerboolean同一網格是否允許多次觸發
time_in_forceinteger有效期:0=當日,1=GTC,6=GTD
upper_limit_quantitystring觸及上限時處理的數量(小數字串)
lower_limit_quantitystring觸及下限時處理的數量(小數字串)
expire_timeinteger到期時間(unix 秒,配 GTD)
upper_limit_eventinteger觸及上限時的動作:1=忽略(繼續運行),2=按最新價平倉
lower_limit_eventinteger觸及下限時的動作:1=忽略(繼續運行),2=按最新價平倉
trigger_sell_depthinteger賣方盤口深度(-5..5,0=用 grid_order_type_up)
trigger_buy_depthinteger買方盤口深度(-5..5,0=用 grid_order_type_down)
trigger_quantitystring每次觸發數量(小數字串)
support_shortsellboolean是否允許融券賣出
rthinteger盤中交易時段標誌:0/1/2
grid_order_type_upstring深度為 0 時的賣方訂單類型:GMO/GLO/GTG
grid_order_type_downstring深度為 0 時的買方訂單類型:GMO/GLO/GTG
executestring本次試執行返回的 confirmation_code。省略(預設)表示 DRY RUN:只校驗並回顯請求,同時返回一個三位確認碼,不會發往交易所。必須先不帶該參數呼叫一次,把預覽展示給用戶,待用戶明確確認後才可再次呼叫並回填該碼。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效——改動任何欄位即失效。不可自行決定回填。
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 order_id 暫停運行中的網格訂單,可用 grid_restart 恢復。【必須兩步確認】未傳本次試執行返回的 confirmation_code 時,本工具為 DRY RUN(試執行):只校驗並回顯請求內容,不會發往交易所。請先不帶 execute 呼叫一次,把返回的預覽完整展示給用戶,只有在用戶明確確認之後,才可再次呼叫並把該確認碼傳入 execute。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效。絕不可自行決定回填確認碼
參數
order_idstring必填網格訂單號
executestring本次試執行返回的 confirmation_code。省略(預設)表示 DRY RUN:只校驗並回顯請求,同時返回一個三位確認碼,不會發往交易所。必須先不帶該參數呼叫一次,把預覽展示給用戶,待用戶明確確認後才可再次呼叫並回填該碼。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效——改動任何欄位即失效。不可自行決定回填。
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
取得某證券網格下單前的設定資訊(入參為 symbol,不是 order_id):證券名稱、最新價、買 / 賣每手股數、價格檔位(bid_size)表,以及渠道 / 授權資訊(策略授權標誌、是否支援 RTH、支援的結算貨幣)。可在 grid_submit 之前調用以了解該標的的網格約束。返回 {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: [ … ]}}
參數
symbolstring必填證券代碼,例如 `"700.HK"`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
單個網格訂單的觸發歷史:每筆被觸發的子訂單及其價格、數量、成交價 / 成交數量與觸發時間。支援 page/limit。返回 {trigger_orders: [{id, symbol, status, action, price, quantity, executed_price, executed_qty, trigger_price, trigger_at, …}], has_more}
參數
order_idstring必填要查詢觸發歷史的網格訂單號
pageinteger頁碼(預設 1)
limitinteger每頁數量(預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按日期區間獲取歷史 K 線數據。僅 symbol 必填(不傳 start/end 時返回最近 100 根 K 線,如需指定區間請傳入 start/end);period 預設 day(1m/5m/15m/30m/60m/day/week/month/year),forward_adjust 預設 false,trade_sessions 預設 all。返回頂層數組 {timestamp, open, high, low, close, volume, turnover, trade_session}時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
periodstringK 線週期:`1m`、`5m`、`15m`、`30m`、`60m`、`day`、`week`、`month`、`year`(預設 `day`)
forward_adjustboolean是否對拆股 / 派息進行前復權(預設 `false`,不復權)
startstring起始日期(`yyyy-mm-dd`),可選
endstring結束日期(`yyyy-mm-dd`),可選
trade_sessionsstring交易時段:`intraday`(僅常規時段)或 `all`(含盤前盤後,預設)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
以參考時間為錨點按偏移量獲取歷史 K 線(OHLCV)數據。僅 symbol 必填,period 預設 day、count 預設 100、forward_adjust 與 forward 預設 false、trade_sessions 預設 all。若賬戶權限上限低於請求的 count,會返回權限允許範圍內盡量多的數據而不報錯——如果需要精確數量,請檢查返回數組的長度。時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼
periodstringK 線週期:`1m`、`5m`、`15m`、`30m`、`60m`、`day`、`week`、`month`、`year`(預設 `day`)
forward_adjustboolean是否對拆股 / 派息進行前復權(預設 `false`,不復權)
forwardboolean查詢方向:`true` 向後(向未來),`false` 向前(向過去,預設)
timestring參考時間(`yyyy-mm-ddTHH:MM:SS`),省略則以最新時間為起點
countintegerK 線數量(最多 1000,預設 100)
trade_sessionsstring交易時段:`intraday`(僅常規時段)或 `all`(含盤前盤後,預設)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢指定日期區間內的全部成交記錄,自動翻頁返回完整結果(不會在每頁 1000 條上限處截斷)。返回頂層數組 {order_id, trade_id, symbol, side, quantity, price, trade_done_at};trade_id 為穩定的去重鍵;side 無法確定時為 "Unknown"(美股賬戶:未能解析所屬委託的方向,可調用 order_detail(order_id) 獲取)。start_at/end_at 為 RFC3339 格式,或只傳日期(yyyy-mm-dd)按 UTC 當天解讀(美股賬戶按紐約時間 EST/EDT,與 history_orders 一致)。亞太賬戶按成交時間(trade_done_at)篩選。美股賬戶讀取 v1 歷史成交,不按成交時間篩選,區間邊緣可能跨日滯後:請將區間前後各放寬一天,再按 trade_done_at 自行篩選;side 由賬戶在該區間內的委託及委託詳情補全
參數
symbolstring按證券篩選(可選)
start_atstring必填起始時間:RFC3339(如 2026-09-01T00:00:00Z),或日期(yyyy-mm-dd,表示當天 UTC 0 點;美股賬戶按紐約時間)
end_atstring必填結束時間:RFC3339(如 2026-09-30T23:59:59Z),或日期(yyyy-mm-dd,表示當天 UTC 結束;美股賬戶按紐約時間)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定市場在日期區間內的市場溫度歷史時間序列(每次調用最多 3 年),返回 {type, list[]{temperature, valuation, sentiment, timestamp}}時間戳為所屬市場的當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
marketstring必填市場代碼:HK、US、CN、SG
startstring必填起始日期(`yyyy-mm-dd`)
endstring必填結束日期(`yyyy-mm-dd`)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢指定日期區間內的歷史委託(AP 賬戶不含當日),返回 orders[]{order_id, symbol, side, status, quantity, price, submitted_at}。美股賬戶返回與 today_orders 美股版相同的數組和字段;start_at/end_at 只傳日期(yyyy-mm-dd)時按紐約時間(EST/EDT)而非 UTC 解讀;區間按原樣查詢,涵蓋當日時亦包含當日委託;預設返回區間內全部委託(最多 500 條),傳 us_page/us_limit 則只返回該頁。today_orders 美股版的窗口從前一日紐約時間 20:00 開始,因此昨日 20:00 ET 起的委託會同時出現在截至昨日的區間和 today_orders 中,合併時請按 order_id 去重
參數
symbolstring按證券篩選(可選)
start_atstring必填起始時間:RFC3339(如 2026-09-01T00:00:00Z),或日期(yyyy-mm-dd,表示當天 UTC 0 點;美股賬戶按紐約時間)
end_atstring必填結束時間:RFC3339(如 2026-09-30T23:59:59Z),或日期(yyyy-mm-dd,表示當天 UTC 結束;美股賬戶按紐約時間)
us_pageinteger僅限美股賬戶:只返回該頁(預設返回全部頁,最多 500 條)。亞太賬戶忽略(區域由賬戶自動識別,無需傳入)
us_limitinteger僅限美股賬戶:配合 us_page 分頁時的每頁數量(預設 50)。亞太賬戶忽略
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取行業分組的層級同業樹,接受來自 industry_rank 的行業 symbol(如 IN00258.US),返回 chain{name, symbol, code, industry_id, sharelist_id, stock_num, chg, ytd_chg, next[...]} 和 top{name, industry_id}
參數
symbolstring必填來自 industry_rank 的行業 symbol,例如 `"IN00258.US"`;也接受 BK counter_id 形式(`"BK/US/IN00258"`)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按市場(US/HK/CN/SG)和指標排列行業。indicator:0=領漲 1=今日走勢 2=人氣 3=市值 4=營收 5=營收增長率 6=淨利潤 7=淨利潤增長率。sort_type:0=單級 1=多層。返回 items[]{symbol(如 IN00258.US), name, chg, lists[]},可將某行的 symbol 直接傳入 industry_peers
參數
marketstring必填市場代碼:US、HK、CN、SG
indicatorstring排列指標:0=領漲、1=今日走勢、2=人氣、3=市值、4=營收、5=營收增長率、6=淨利潤、7=淨利潤增長率
limitstringNumber of results to return (default: returns all)
sort_typestring排序類型:0=單級、1=多層
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取同行業可比公司的估值對比,返回 list[]{symbol, name, market, currency, price_close, market_value, pe, pb, ps, div_yld(股息率,%), roe, roa, net_margin, eps, bps, dps, div_payout_ratio, net_income, …, history[]{date, pe, pb, ps}}時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取行業 PE/PB/PS 估值分佈,查看個股在所屬行業中的位置。返回 {pe, pb, ps},每項 {low, median, high, value(個股當前值), ranking(在行業內的百分位,0-1), rank_index, rank_total}
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取機構評級彙總,返回 analyst{evaluate{buy, over, hold, under, sell, no_opinion, total}, target{highest_price, lowest_price, prev_close}, industry_name, industry_rank, industry_total} 及 instratings{recommend(一致評級), target(一致平均目標價), change(目標價相對現價的上漲空間,%), updated_at}。若兩個上游調用之一失敗,仍返回另一半數據,並在 warnings[] 中註明缺失部分
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取評級分佈歷史及一致目標價歷史,返回 evaluate.list[]{date, strong_buy, buy, hold, under, sell}(每個快照的評級家數)、target{updated_at, prediction_accuracy, list[]{date, timestamp, price, avg_target, min_target, max_target, meet}}(一致目標價區間 vs 股價)及 ccy_symbol。為分析師匯總數據,不含逐家機構或逐位分析師的記錄
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取機構評級歷史,返回 target_history[]{timestamp, close, high_target_price, low_target_price}(分析師目標價區間 vs 收市價)及 evaluate_history[]{start_date, end_date, buy, over, hold, under, sell, no_opinion}(評級家數;連續相同的分佈會合併為一個時段)。時間為字符串形式的 Unix 秒。為匯總家數,不含逐家機構的評級或目標價變動
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取同行業各證券按機構分析師評級的排名,返回 {industry_name, industry_rank(所查股票的排名), industry_total, industry_mean, industry_median, items[]{rank, symbol, name, buy, over, hold, under, sell, no_opinion, total}}。支援分頁
參數
symbolstring必填證券代碼,例如 `"AAPL.US"`
pageinteger頁碼(預設 1)
sizeinteger每頁條數(預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取機構評級月度分佈時序,返回 {elist[]{date, buy, over(跑贏), hold, under(跑輸), sell, no_opinion, total}, tlist[]{date, close, high_price, low_price}},從舊到新,用於評級趨勢分析時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"AAPL.US"`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取分時(逐分鐘)價格 / 成交量數據。trade_sessions:intraday(預設,僅常規時段)或 all(含盤前盤後)。返回頂層數組 {timestamp, price, avg_price, volume, turnover}時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
trade_sessionsstring包含的交易時段:`intraday`(預設,僅常規時段)或 `all`(含盤前盤後)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取該證券所屬公司持股的上市公司(投資關係,並非投資者關係活動)。返回 invest_securities[]{company_name, symbol, currency, percent_of_shares(持股比例,%), shares_value(持股市值), shares_rank} 及 forward_url。公司無上市持股時為空
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
顯示 IPO 日曆,返回 {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}},含即將上市及近期已上市的 IPO
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查看 IPO 詳情,返回 {symbol, market, profile{name, profile(業務簡介), industry, issue_price, offer_price_min, offer_price_max, issue_currency, trade_unit(每手股數), ipo_date(上市日期), mart_begin/mart_end(港股暗盤時段), sponsor, underwriter, prospectus, …}, timeline{steps[]{event, time, reached}, pay_end_date, tags}}。日期為交易所當地時間(港股 +08:00,美股為美東時區);reached 表示該步驟已經過去。當前是否可認購請用 ipo_subscriptions 查詢
參數
symbolstring必填證券代碼,例如 `"6871.HK"` 或 `"ARM.US"`
marketstring市場:`HK` 或 `US`(預設根據代碼後綴推斷)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
列出港股和美股近期已上市的 IPO,返回 {hk, us},各為 {total, list[]{symbol, code, name, description, ipo_date, listed_day, issue_price, prev_close, last_done, ipo_change, amount, …}}。若某個市場的列表獲取失敗,另一個市場照常返回,失敗的市場為 null,並在 unavailable{<市場>: 原因} 中說明;請告訴用戶該市場暫時不可用,不要說成需要重新授權
參數
pageinteger頁碼(預設 1)
sizeinteger每頁條數(預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 order_id 查看 IPO 訂單詳細信息,返回 {order_id, symbol, market, quantity, allotted_quantity, total_amount, status, submitted_at}
參數
order_idstring必填IPO 訂單 ID
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
列出當前帳戶的 IPO 訂單(有效和歷史),返回 orders[]{order_id, symbol, market, quantity, total_amount, status, submitted_at},可按 symbol/market/status 過濾
參數
symbolstring按證券代碼過濾,例如 `"6871.HK"`
marketstring按市場過濾:`HK` 或 `US`
statusstring按訂單狀態過濾
pageinteger頁碼(預設 1)
sizeinteger每頁條數(預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查看帳戶 IPO 打新盈虧彙總及逐筆明細,返回 {total_cost, total_value, total_return, items[]{symbol, cost, current_value, return_rate}}。period:all/ytd/1y/3y
參數
periodstring時間範圍:`all`(全部,預設)、`ytd`(今年)、`1y`(近一年)、`3y`(近三年)
pageinteger頁碼(預設 1)
sizeinteger每頁條數(預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
列出港股和美股當前處於認購/預申請階段的 IPO,返回 {hk, us},各為 {list[]{symbol, code, name, issue_price, entrance_fee, min_sub_num, sub_end_date, remaining_day, share_planned, state, …}}。若某個市場的列表獲取失敗,另一個市場照常返回,失敗的市場為 null,並在 unavailable{<市場>: 原因} 中說明;請告訴用戶該市場暫時不可用,不要說成需要重新授權
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取單一宏觀經濟指標的歷史數據。indicator_code 來自 macrodata_indicators;start_date/end_date 格式為 YYYY-MM-DD。支援 offset/limit 分頁。返回 {info: {indicator_code, name, country, describe, importance, periodicity}, data: [{period, release_at, actual_value, forecast_value, previous_value, unit}], count}
參數
indicator_codestring必填指標代碼,例如 `"30771718"`,來自 macrodata_indicators
start_datestring納入的最早發佈日期(`YYYY-MM-DD`,例如 `"2024-01-01"`)
end_datestring納入的最晚發佈日期(`YYYY-MM-DD`,例如 `"2024-12-31"`)
offsetinteger分頁偏移量,預設 0
limitinteger返回條數上限,預設 100,最大 100
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
列出宏觀經濟指標。可按關鍵詞及國家(US/CN/HK/EU/JP/SG)篩選。返回的 indicator_code 可用於 macrodata。支援 offset/limit 分頁。返回 {list: [{indicator_code, name, country, importance, periodicity}], count}
參數
keywordstring按指標名稱關鍵詞搜尋,例如 `"CPI"`、`"非農"`
countrystring按國家代碼過濾:US(美國)、CN(中國內地)、HK(香港)、EU(歐元區)、JP(日本)、SG(新加坡),省略則返回全部國家
offsetinteger分頁偏移量,預設 0
limitinteger返回條數上限,預設 30,最大 1000;建議用 keyword/country 縮小範圍,而不是翻完全部
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢標的保證金比率,返回 {im_factor(初始保證金), mm_factor(維持保證金), fm_factor(強平保證金)}
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取所有市場當前交易狀態,返回 market_time[]{market, trade_status(Trading/Closed/Mid-Day Break/Pre-Market/Post-Market/Overnight 等), timestamp}時間戳為所屬市場的當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取當前市場情緒溫度,返回 {temperature(0-100), description, valuation(0-100), sentiment(0-100), timestamp}時間戳為所屬市場的當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
marketstring必填市場代碼:HK、US、CN、SG
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取證券相關最新新聞,按時間從新到舊(預設 20 條,更多用 count 指定),返回頂層數組(無外層物件){id, title, description, url, published_at, comments_count, likes_count, shares_count}。帶引用欄位(上游提供時返回):content_via(0 = 長橋原創或版權內容;非 0 = 第三方轉載)、source、source_url(原文地址)、source_logo。
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
countinteger返回的文章數量,從新到舊。預設 20(每條約 700 字節),上游約返回 50 條
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 id 獲取單篇資訊的完整內容(id 來自 news / news_search)。返回 {id, title, description, body (Markdown), url, author{member_id, name}, images[], comments_count, likes_count, shares_count, published_at, tickers[]}。帶引用欄位(上游提供時返回):content_via(0 = 長橋原創或版權內容;非 0 = 第三方轉載)、source、source_url(原文地址)、source_logo。
參數
idstring必填資訊文章 ID(數字),例如 "7123456789012345678"。可從 news 或 news_search 獲取
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按關鍵詞搜尋新聞文章,按相關度排序,返回陣列 [{id, title, description(摘要), source(來源媒體展示名,按 Accept-Language 本地化), published_at(RFC3339 時間格式), url, content_via, source_url, source_logo}]。content_via 為 0 表示長橋原創或版權內容,非 0 表示第三方轉載,原文見 source_url
參數
keywordstring必填搜尋關鍵詞
limitinteger最多返回條數(預設 20;上游最多返回 40 條)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取當前 UTC 時間,格式為 RFC3339 字符串(如 "2025-01-15T08:30:00Z")。用於在發起日期相關查詢前確認當前日期 / 時間。返回純 JSON 字符串,不是物件
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按報告期獲取公司經營回顧(僅港股;其他市場返回空列表)。返回 list[](最新在前,預設 8 期,更多用 count 指定){id, report(如 saf), title, txt(管理層評論 / 經營回顧), latest, financial{currency, indicators[]{field_name, indicator_name, indicator_value(帶本地化單位的顯示字符串), yoy(%)}}}
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
countinteger返回的報告數量,最新在前。預設 8(每條約 1.6KB),上游最多 50
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定標的(如 AAPL.US)的期權鏈到期日列表,返回 "yyyy-mm-dd" 字符串組成的頂層數組。配合 option_chain_info_by_date 獲取其中某個到期日的合約
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定到期日的期權合約列表。每份合約一條記錄,認購與認沽不再按行使價配對:{symbol, expiry_date, strike_price, direction(Call/Put), option_type(Monthly/Weekly/Quarterly), standard_attr(Normal/Old), days_to_expiry}。按 direction 區分認購與認沽;standard_only=true 可濾走公司行動遺留的舊合約。本接口不含價格與 Greeks,需要時把 symbol 傳給 option_quote
參數
symbolstring必填標的證券代碼,例如 `"AAPL.US"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
datestring必填到期日(`yyyy-mm-dd`),必填。可用 option_chain_expiry_date_list 列出可選到期日
standard_onlyboolean僅返回標準合約。省略或 false 時返回全部,包含公司行動遺留的舊合約(`standard_attr: "Old"`)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取期權行情(最多 500 個)。symbols 必須是期權合約代碼(例如 "AAPL230317P160000.US"),不能用普通股票代碼——請先用 option_chain_info_by_date 返回的每份合約的 symbol 欄位獲取有效的期權代碼。返回各標的:last_done(最新價), prev_close, open, high, low, volume(成交量), turnover(成交額), implied_volatility(隱含波動率), delta/gamma/theta/vega/rho(Greeks), open_interest(未平倉量)。Greeks 已歸一化:theta 為每日值(一天的時間損耗),vega 為隱含波動率每變動 1% 的價格變化,rho 為無風險利率每變動 1% 的價格變化。時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolsarray必填期權合約代碼,例如 `["AAPL230317P160000.US"]`。不是普通股票代碼——請先用 option_chain_expiry_date_list 列出到期日,再用 option_chain_info_by_date 取得該到期日各合約的 symbol 欄位
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取美股實時期權認購 / 認沽成交量統計,返回 {c, p}:當日認購(c)與認沽(p)合約總成交量,均為字符串
參數
symbolstring必填標的代碼(僅美股),例如 `"AAPL.US"`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取美股逐日期權統計歷史,返回 {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}}時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填標的代碼(僅美股),例如 `"AAPL.US"`
countinteger返回的交易日數量(預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢單個委託詳情,返回 {order_id, symbol, status, side, order_type, quantity, price, executed_quantity, executed_price, submitted_at, time_in_force, msg, attached_orders[]},其中 attached_orders[] 為該委託的止盈/止損附加單及其各自單號。要按附加單自身的單號查詢,設置 is_attached=true,此時返回該附加單本身,charge_detail 為 null。美股賬戶返回同樣的頂層字段及 history[],但無 time_in_force、tag、expire_date、outside_rth 及費用/抵扣字段(美股原始代碼見 us_time_in_force、us_tag,另含 done_at、gtd、security_type、us_attached_orders、us_charge_detail);is_attached 無效
參數
order_idstring必填委託單號:母單單號,或(配合 is_attached=true)止盈/止損附加單單號
is_attachedboolean設為 true 表示 order_id 是止盈/止損附加單單號,返回該附加單本身(charge_detail 為 null);查詢母單時省略或傳 false。美股賬戶下無效
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取港股市場參與者(券商)信息,返回頂層數組 {broker_ids[], name_en, name_cn},用於解析經紀商隊列數據
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取組合盈虧分析彙總。start/end(yyyy-mm-dd)須成對傳入,只傳其中之一會返回空結果
參數
startstring起始日期(`yyyy-mm-dd`)。必須與 `end` 成對傳入,只傳其一會返回空結果
endstring結束日期(`yyyy-mm-dd`)。必須與 `start` 成對傳入,只傳其一會返回空結果
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定標的詳細盈虧分析。start/end(yyyy-mm-dd)須成對傳入,只傳其中之一會返回空結果
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
startstring起始日期(`yyyy-mm-dd`)。必須與 `end` 成對傳入,只傳其一會返回空結果
endstring結束日期(`yyyy-mm-dd`)。必須與 `start` 成對傳入,只傳其一會返回空結果
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取美股賬戶的已實現盈虧,按類別(股票 / 期權 / 加密貨幣)和週期拆分。返回 {realized_pl_list: [{category, currency, metrics: [{period, amount, rate, rate_unit}]}]};rate 為小數。僅限美股賬戶;亞太賬戶調用會返回 DcRegionRestricted 錯誤
參數
currencystring報告貨幣,例如 `"USD"`(默認 `"USD"`)。僅限美股賬戶
categorystring按類別篩選:`"STOCK"`、`"OPTION"`、`"CRYPTO"`,留空表示全部
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
在服務端對歷史 K 線數據運行量化指標腳本,以 JSON 形式返回計算的指標/繪圖值。週期:1m/5m/15m/30m/1h/day/week/month/year(預設 day);input 為 JSON 數組,順序需與腳本中 input.*() 調用一致
參數
symbolstring必填證券代碼,`<CODE>.<MARKET>` 格式,例如 `TSLA.US`、`700.HK`
periodstringK 線週期:`1m`、`5m`、`15m`、`30m`、`1h`、`day`、`week`、`month`、`year`(預設 `day`)
startstring必填K 線區間起始日期(YYYY-MM-DD)
endstring必填K 線區間結束日期(YYYY-MM-DD)
scriptstring指標腳本源代碼
inputstring腳本輸入參數(JSON 數組字符串),順序需與腳本中 `input.*()` 調用一致,例如 `"[14,2.0]"`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取最新行情報價,返回頂層數組,每個標的一項:symbol、last_done(最新價)、prev_close(昨收)、open(開市價)、high/low(最高 / 最低價)、volume(成交量)、turnover(成交額)、trade_status、timestamp;當盤前 / 盤後 / 夜盤時段有數據時,另含 pre_market / post_market / overnight 物件 {last_done, prev_close, high, low, volume, turnover, timestamp}。不含漲跌欄位:漲跌請用 last_done 與 prev_close 計算時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolsarray必填證券代碼,例如 `["700.HK", "AAPL.US"]`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取熱度排行榜的分類配置。返回 first_tags[]{key, name, second_tags[]{key, name, market}}。將 second_tags[].key(如 hot_all-us)傳入 rank_list 獲取對應榜單。
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按熱度榜 key 獲取股票排名列表。key 來自 rank_categories 的 second_tags[].key(如 hot_all-us、hot_up-hk、trade_heat-us)。market: 從 key 後綴推斷或顯式傳入。size: 返回數量(預設 20)。返回 lists[]{symbol, name, last_done, chg(小數), 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。
參數
keystring必填榜單 key,來自 rank_categories 的 second_tags[].key,如 hot_all-us、hot_up-hk;不帶市場後綴的 key(如 hot_all)會按 market 補全
marketstring市場覆蓋:US/HK/CN/SG;key 自帶市場後綴時以後綴為準,否則預設 US
sizeinteger返回數量,預設 20;不超過榜單本身的長度(通常為 50)
need_articleboolean是否返回關聯新聞,預設 false
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
修改未成交委託的數量、價格、觸發價或追蹤止損參數,成功返回 "order replaced"。【必須兩步確認】未傳本次試執行返回的 confirmation_code 時,本工具為 DRY RUN(試執行):只校驗並回顯委託內容,不會發往交易所。請先不帶 execute 呼叫一次,把返回的預覽完整展示給用戶,只有在用戶明確確認這筆委託之後,才可再次呼叫並把該確認碼傳入 execute。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效。絕不可自行決定回填確認碼,也不可在用戶首次提出請求的同一輪就回填。試執行會同時回顯當前委託與本次擬修改的內容。止盈/止損附加單也在此修改:attached_order_type 配合新的 attached_profit_taker_price / attached_stop_loss_price 可新增或改價,attached_profit_taker_id / attached_stop_loss_id 用於指定要修改的現有附加單,attached_cancel_all=true 則撤銷全部附加單而保留母單
參數
order_idstring必填委託單號
quantitystring必填新的委託數量
pricestring新的委託價格
trigger_pricestring新的觸發價
limit_offsetstring新的限價偏移量
trailing_amountstring新的追蹤止損金額
trailing_percentstring新的追蹤止損百分比
attached_cancel_allboolean設為 true 撤銷該委託的全部止盈/止損附加單,母單本身保持不變
attached_order_typestring要新增或修改的附加單類型:`PROFIT_TAKER` / `STOP_LOSS` / `BRACKET`。除僅做 attached_cancel_all 外必填
attached_profit_taker_idstring要修改的現有止盈單單號(取自 order_detail 的 attached_orders[]);新增附加單時省略
attached_stop_loss_idstring要修改的現有止損單單號(取自 order_detail 的 attached_orders[]);新增附加單時省略
attached_profit_taker_pricestring新的止盈觸發價
attached_stop_loss_pricestring新的止損觸發價
attached_profit_taker_submit_pricestring新的止盈單委託限價
attached_stop_loss_submit_pricestring新的止損單委託限價
attached_time_in_forcestring新的附加單有效期:`Day` / `GTC` / `GTD`
attached_expire_timestring新的附加單到期時間,Unix 時間戳(秒);`attached_time_in_force=GTD` 時必填
attached_activate_order_typestring新的觸發後委託類型,例如 `LO` 或 `MO`
attached_outside_rthstring新的觸發後盤前盤後設置:`RTH_ONLY` / `ANY_TIME` / `OVERNIGHT` / `OPTION_PRE_MARKET`
attached_main_idstring附加單所屬母單的單號;僅在不經母單、單獨修改某個附加單時需要
attached_quantitystring新的附加單數量
attached_market_pricestring附加單的參考市價
executestring本次試執行返回的 confirmation_code。省略(預設)表示 DRY RUN:只校驗並回顯請求,同時返回一個三位確認碼,不會發往交易所。必須先不帶該參數呼叫一次,把預覽展示給用戶,待用戶明確確認後才可再次呼叫並回填該碼。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效——改動任何欄位即失效。不可自行決定回填。
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢當前登入會員的風險評估(適當性)檔案:最近一次風險測評問卷的結果及相關投資者資質。無參數。返回 {risk, pi, approvals, re_authentication, pi_end_at, deadlines, risk_assessment_at, score, strategy_risk_levels[]}:risk 為最近一次問卷的風險等級(如 "A5"),score 為問卷得分,risk_assessment_at 為測評日期(yyyy-mm-dd);pi 為專業投資者(PI)狀態碼,pi_end_at 為其截止時間(按服務端原樣返回,未設置時為 0);approvals 為各資質項的狀態(如 car、cka、risk_audit -> "pass";is_corporate_client -> "false");deadlines 為各項的截止期限(按服務端原樣返回);re_authentication 為重新認證標記(未設置時為空);strategy_risk_levels 為會員的策略風險等級。請按原樣呈現這些值。服務端未定義上述任何一套取值口徑,因此不要推斷等級高低,也不要用 risk、pi、approvals 或 strategy_risk_levels 判斷產品適當性或購買資格;approvals 的值是字串(如 "pass"、"false")而非布林值,pi_end_at 與 deadlines 為服務端原樣返回且單位未定義
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取全部可用選股指標的 key 和單位。技術指標帶 tech_values {tech_key: [{value, label}]},列出可選取值(如 macd_day:period [day]、category [goldenfork, deadcross, upzero, downzero]);在 screener_search 中按每個 tech_key 傳一個取值作為 tech_values。可選 symbol(如 AAPL.US)收窄為該股票適用的指標。返回 groups[]{group_type, group_name, indicators[]{id, key, name, unit, places, category, tech_values{tech_key: [{value, label}]}}}
參數
symbolstring可選證券代碼,用於篩選該股票支援的指標,如 AAPL.US
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取平台預設的選股策略列表。market: US|HK|CN|SG(預設 US)。返回 strategys[]{id, name, description, market, three_months_chg, risk}。將 id 傳入 screener_search 的 strategy_id 可直接執行該策略;傳入 screener_strategy 可查看策略的篩選條件。
參數
marketstringMarket filter: "US" | "HK" | "CN" | "SG" (default: "US")
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
執行選股查詢。market: US|HK|CN|SG(模式B必填;模式A使用策略內建市場)。模式A:傳 strategy_id(來自 screener_recommend_strategies)自動執行策略。模式B:conditions=[{"key":"KEY","min":"10","max":"50","tech_values":{}},...] 直接透傳給 API。 extra_returns=["key",...] 追加展示欄;sort_by_key 指定排序欄位;sort_order: asc|desc(預設 desc);page: 從0開始(預設0)。返回 {total, items[]{symbol, name, counter_id, indicators[]{key, value}}, legend{<key>: {name, unit}}},每條結果預設包含 prevclose、prevchg、marketcap、salesgrowthyoy、pettm、pbmrq、industry 七欄。基本面 key:pettm pbmrq roe roa netmargin salesgrowthyoy netincomegrowthyoy marketcap(億) circulating_marketcap(億) prevclose prevchg(%) divyld la epsttm netincome(億) sales(億) turnover_rate balance(萬)。技術 key(tech_values 見 screener_indicators):macd_day/week rsi_day/week kdj_day/week boll_day/week。注意:key 由平台動態維護,不確定時先調 screener_indicators 確認。
參數
marketstring市場:US/HK/CN/SG。模式B必填;模式A可不傳(策略已內建市場)
strategy_idstringMode A — Strategy ID from screener_recommend_strategies strategys[].id. The tool auto-fetches the strategy and builds filters. Omit for Mode B.
conditionsarrayMode B — Filter conditions, passed directly to the API. Omit for Mode A. Fundamental keys (pass with or without filter_ prefix): pettm pbmrq roe roa netmargin salesgrowthyoy netincomegrowthyoy marketcap(亿) circulating_marketcap(亿) prevclose prevchg(%) divyld la epsttm netincome(亿) sales(亿) turnover_rate balance(万) Technical indicator keys (tech_values with a category required; period defaults to the key suffix): macd_day/week → {"category":"goldenfork"|"deadcross"|"upzero"|"downzero"} kdj_day/week, rsi_* → {"category":"goldenfork"|"deadcross"} boll_day/week → {"category":"riseupperband"|"fallbelowband"|"risemiddleband"|"fallmiddleband"}
extra_returnsarrayExtra indicator keys to include in each result row (display-only, not used as filters). Same key naming as conditions (filter_ prefix added automatically). Example: ["marketcap", "prevclose", "epsttm"]
sort_by_keystringIndicator key to sort results by (e.g. "marketcap", "roe"). Defaults to the first condition key. Must be one of the condition or extra_returns keys.
sort_orderstringSort order: "asc" | "desc" (default: "desc")
pageintegerPage number, 0-based (default: 0)
sizeintegerPage size (default: 20, max: 100)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
執行前查看策略的篩選條件詳情。返回 market, filter{filters[]{key, min, max, tech_values}}。如需直接執行策略,使用 screener_search 的 strategy_id 參數。
參數
idstring必填策略 ID,來自 screener_recommend_strategies 或 screener_user_strategies 的 strategys[].id
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取當前用戶已儲存的選股策略列表。market: US|HK|CN|SG(預設 US)。返回 strategys[]{id, name, description, market, three_months_chg, risk}。將 id 傳入 screener_search 的 strategy_id 可直接執行該策略;傳入 screener_strategy 可查看策略的篩選條件。
參數
marketstring市場篩選:US/HK/CN/SG,預設 US
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢指定證券的事實(催化劑)事件 —— 異動偵測、因子讀數、資料來源及自然語言摘要,可按時間範圍和數量篩選。事實是策略反應的對象:訊號以 key_fact_id 指明其觸發事實。返回 {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}}]}
參數
symbolstring必填要查詢的證券代碼,例如 `AAPL.US` 或 `700.HK`
begin_timestring查詢起始時間,UTC 時區,格式為 2006-01-02T15:04:05Z;留空則從最早可用資料開始
end_timestring查詢結束時間,UTC 時區,格式為 2006-01-02T15:04:05Z;留空則返回最新資料
limitinteger返回事實數量上限。時間範圍內的事實超出該上限時,僅返回最新的 limit 條。預設 3(每條數 KB);更早的可用 end_time 往前翻
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定市場的證券列表。支援市場:US、HK、CN、SG。category 當前僅支援 "Overnight"(預設)。page:頁碼(從1開始,預設1)。count:每頁筆數(預設50)。返回 {total, page, count, items[]{symbol, name_en, name_cn}}。
參數
marketstring必填市場代碼:US、HK、CN、SG
categorystring類別篩選,當前僅支援 "Overnight"(預設)
pageinteger頁碼,從1開始,預設1
countinteger每頁返回筆數,預設50
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取證券的主要股東及其最新申報的持股變動,返回 shareholder_list[]{shareholder_name, percent_of_shares, shares_changed(負數 = 減持), report_date, stocks[]{symbol, market, code, chg}};stocks[] 列出與該股東關聯的證券,通常為空
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定股東的持倉歷史與交易明細。需要來自 shareholder_top 的 object_id。返回 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。注意:機構股東(13F申報)的 trading_details[] 為空,僅個人/內部人(Form 4)有交易明細。
參數
symbolstring必填證券代碼,如 AAPL.US
object_idinteger必填股東 object_id,來自 shareholder_top 返回的數據(數字或數字字串均可)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取前20大股東(機構、個人、內部人士)的多期持倉資訊,按報告期從新到舊(預設 4 期,更多用 periods 指定)。返回 info[]{period, share_holders[]{object_id, name, title, shares_held, percent_shares_held, shares_changed, filing_date}}。用 object_id 傳入 shareholder_detail 查看該股東的完整交易記錄。
參數
symbolstring必填證券代碼,如 AAPL.US
periodsinteger返回的報告期數量,從新到舊:先是「最新」快照,再按季度。預設 4(每期約 4KB),最多 15
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
向社區分享股單中添加證券。symbols 為股票代碼列表(如 ["AAPL.US"]),id 為股單 ID。成功返回更新後的股單。
參數
idstring必填分享股單 ID
symbolsarray必填證券代碼,例如 `["AAPL.US", "700.HK"]`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
新建社區分享股單,返回創建的股單對象(含 id、name、description)
參數
namestring必填股單名稱(若未傳 `description`,名稱同時作為描述)
descriptionstring股單描述,省略時預設與 `name` 相同
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 id 刪除自建社區分享股單(已訂閱他人的股單不可刪除)
參數
idstring必填分享股單 ID
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 id 獲取社區分享股單詳情,返回 {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}。成分股不含價格,請把 symbol 傳給 quote
參數
idstring必填分享股單 ID
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
列出用戶自建及已訂閱的社區分享股單,返回 {sharelists[](用戶自建的股單), subscribed_sharelists[](用戶訂閱的股單)},每項 {id, name, description, stocks_count, subscribers_count, subscribed, chg, this_year_chg, created_at, stocks, …}
參數
countinteger返回數量(預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取熱門/流行社區分享股單,返回 {sharelists[]{id, name, description, stocks_count, subscribers_count, chg, this_year_chg, creator{id, name, …}, stocks, …}},按熱度排序
參數
countinteger返回數量(預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
從社區分享股單中移除指定證券。symbols 為要移除的股票代碼列表,id 為股單 ID。成功返回更新後的股單。
參數
idstring必填分享股單 ID
symbolsarray必填證券代碼,例如 `["AAPL.US", "700.HK"]`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
調整社區分享股單中證券的排列順序(按目標順序傳入 symbols)
參數
idstring必填分享股單 ID
symbolsarray必填證券代碼,例如 `["AAPL.US", "700.HK"]`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取當前帳戶沽空保證金存款明細,返回各空頭持倉的 margin_amount、margin_rate、interest_rate、symbol、quantity
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取港股或美股的賣空持倉歷史(未平倉空頭頭寸)。市場由 symbol 後綴自動判斷。count: 1–100(預設20)。統一返回 data[]{timestamp(RFC3339), short_shares(空頭持倉股數), rate(小數比率 如0.009=0.9%), close}。僅美股:avg_daily_vol(日均成交量), days_to_cover(回補天數)。僅港股:balance(港元空頭餘額)。美股來源:FINRA 雙週報。港股來源:HKEX 每日。時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,如 AAPL.US(美股)或 700.HK(港股),市場由後綴自動判斷
countinteger返回記錄數,1–100,預設 20
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取港股或美股的每日賣空成交量歷史。市場由 symbol 後綴自動判斷。last_timestamp: Unix 秒(不傳則取最新)。page_size: 1–100(預設20)。統一返回 data[]{timestamp(RFC3339), short_vol(當日賣空股數), rate(小數比率 如0.36=36%), close}。僅美股:nasdaq_vol(納斯達克賣空量), nyse_vol(紐交所賣空量)。僅港股:balance(港元), market_vol(當日市場總成交量)。美股來源:FINRA/NASDAQ。港股來源:HKEX。時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,如 AAPL.US(美股)或 700.HK(港股),市場由後綴自動判斷
last_timestampstring必填查詢截止時間戳(秒),傳當前時間戳取得最新數據
page_sizestring每頁數量,1–100,預設 20
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 ID 取得單條訊號(ID 來自 `signals`)。欄位與列表一致,另含 `analysis` —— 完整策略分析:契合度評分、估值情景、證據來源與相關事實 ID。返回 {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, …}}
參數
signal_idstring必填訊號 ID,例如 sign_992_1a00c9425c3_48ab,可從 signals 取得
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢策略訊號 —— 策略基於催化劑對某隻證券給出的判斷。支援按股票代碼、策略、催化劑和時間範圍篩選,用 limit/offset 分頁。返回標題、摘要、看法與保守/基準/樂觀目標價,以及用於翻頁的 total。完整策略分析請用 signal_detail 取得
參數
symbolstring按證券代碼篩選,例如 `AAPL.US` 或 `700.HK`;省略則返回全部股票
strategy_idstring按策略 id 篩選,例如 buffett-value。優先於已廢棄的 strategy_name,兩者同時傳入時以此為準
strategy_namestring按策略名稱篩選;省略則返回全部策略的命中結果
catalyst_namestring按觸發訊號的因子名稱篩選,例如 `EARNINGS_RELEASED`、`macd_12_26_9`——不是回傳結果裡 `key_catalyst` 的展示文案;省略則不限
catalyst_typestring按觸發訊號的催化劑類型篩選,例如 News、Fundamental、Technical;省略則不限催化劑類型
start_timestring篩選此時間之後創建的命中記錄,ISO 8601 帶時區格式,例如 2024-01-15T10:30:00Z;省略則不限下限
end_timestring篩選此時間之前創建的命中記錄,ISO 8601 帶時區格式;省略則不限上限
limitinteger返回結果數量上限,最多 500,預設 5(每條約 5KB),更多用 offset 翻頁
offsetinteger分頁跳過的條數,預設 0
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取對帳單數據文件(來自 statement_list)的預簽名下載 URL,返回 {url},訪問該 URL 即可獲取對帳單 JSON
參數
file_keystring必填來自 `statement_list` 的文件 key,例如 `"/statement_data/data/.../20975338.json"`
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
列出可獲取的帳戶對帳單(日報/月報),返回 {list[]{dt(對帳單日期,yyyymmdd), file_key}},用 file_key 調用 statement_export 下載
參數
statement_typestring對帳單類型:`"daily"`(預設,日報)或 `"monthly"`(月報)
start_datestring起始日期(`yyyy-mm-dd`)。`daily` 預設 30 天前,`monthly` 預設 12 個月前
limitinteger返回條數。`daily` 預設 30,`monthly` 預設 12
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取證券基礎信息,返回頂層數組,每個標的一項:symbol、name_cn、name_en、name_hk、exchange(如 NASD)、currency、lot_size(每手股數)、total_shares、circulating_shares、hk_shares、eps、eps_ttm、bps、dividend_yield、stock_derivatives、board。僅限美股賬戶:`.BKKT` 加密貨幣代碼(如 BTCUSD.BKKT)會路由到獨立的美股加密貨幣概覽接口;`.HAS`/`.OSL` 加密貨幣代碼不受影響
參數
symbolsarray必填證券代碼,例如 `["700.HK", "AAPL.US"]`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢所有渠道下的當前股票持倉,返回 list[].stock_info[]{symbol, symbol_name, quantity, available_quantity, currency, cost_price, market}。美股賬戶返回同樣的 list[].stock_info[](無 available_quantity,另含 last_done、market_price、prev_close、today_pl、position_side);現金、期權、加密貨幣(symbol 如 BTCUSD.BKKT)及購買力在 us{cash_list, option_list, crypto_list, cash_buy_power, …} 下
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
提交多腿期權組合委託,各腿作為一個策略單一起成交或掛單。strategy:CoveredCall(備兌認購)/ CoveredPut(備兌認沽)/ VerticalCallSpread(垂直認購價差)/ VerticalPutSpread(垂直認沽價差)/ Collar(領口)/ Straddle(跨式)/ Strangle(寬跨式)/ CalendarCallSpread(認購日曆價差)/ CalendarPutSpread(認沽日曆價差);side:Buy/Sell(整個策略的方向);order_type:LO(需 submitted_price,為組合淨價)或 MO;legs[]:{symbol, ratio_quantity},按策略順序排列,僅接受期權代碼;ratio_quantity 恆為正數——每條腿的買賣方向由 strategy 與 side 共同決定
參數
strategystring必填組合策略,決定所需腿數與每條腿的方向:`CoveredCall`(備兌認購)/ `CoveredPut`(備兌認沽)/ `VerticalCallSpread`(垂直認購價差)/ `VerticalPutSpread`(垂直認沽價差)/ `Collar`(領口)/ `Straddle`(跨式)/ `Strangle`(寬跨式)/ `CalendarCallSpread`(認購日曆價差)/ `CalendarPutSpread`(認沽日曆價差)。兩種日曆價差為相同行使價、不同到期日
sidestring必填買賣方向:`Buy`(買入)或 `Sell`(賣出),指整個策略的方向
order_typestring必填委託類型:`LO`(限價,需 `submitted_price`)或 `MO`(市價)
submitted_quantitystring必填委託組數(每組為一套按 `legs` 比例構成的腿)
legsarray必填組合的各條腿,按策略順序排列,僅接受期權代碼
submitted_pricestring整個組合的淨限價,`LO` 必填
remarkstring委託備註(最多 255 字符)
client_request_idstring冪等鍵,每筆委託唯一。含義同 submit_order 的同名欄位
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
提交買賣委託。order_type:LO(限價)/ ELO(港股增強限價)/ MO(市價)/ AO(港股競價)/ ALO(港股競價限價)/ ODD(港股碎股)/ LIT(觸價限價)/ MIT(觸價市價)/ TSLPAMT(按金額追蹤止損)/ TSLPPCT(按百分比追蹤止損)/ SLO(港股特別限價);side:Buy/Sell;time_in_force:Day/GTC/GTD。【必須兩步確認】未傳本次試執行返回的 confirmation_code 時,本工具為 DRY RUN(試執行):只校驗並回顯委託內容,不會發往交易所。請先不帶 execute 呼叫一次,把返回的預覽完整展示給用戶,只有在用戶明確確認這筆委託之後,才可再次呼叫並把該確認碼傳入 execute。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效。絕不可自行決定回填確認碼,也不可在用戶首次提出請求的同一輪就回填。該委託會動用真實資金——試執行是用戶發現代碼、方向、數量或價格錯誤的唯一機會。如需附加止盈/止損單:設置 attached_order_type(PROFIT_TAKER / STOP_LOSS / BRACKET)並填寫 attached_profit_taker_price 和/或 attached_stop_loss_price;附加單會在試執行預覽中回顯,並計入確認碼
參數
symbolstring必填證券代碼
order_typestring必填委託類型(港股全部支援;美股僅支援 `LO` / `MO` / `LIT` / `MIT` / `TSLPAMT` / `TSLPPCT`):<br>- `LO`(限價單):需 `submitted_price`<br>- `ELO`(增強限價單,港股):需 `submitted_price`<br>- `MO`(市價單):無需價格<br>- `AO`(競價單,港股):以競價價成交,無需價格<br>- `ALO`(競價限價單,港股):需 `submitted_price`<br>- `ODD`(碎股單,港股):需 `submitted_price`,用於非標準手數<br>- `LIT`(觸價限價):需 `submitted_price` 與 `trigger_price`,行情觸及觸發價時激活<br>- `MIT`(觸價市價):僅需 `trigger_price`,觸及後按市價成交<br>- `TSLPAMT`(按金額追蹤止損限價):需 `trailing_amount` 與 `limit_offset`<br>- `TSLPPCT`(按百分比追蹤止損限價):需 `trailing_percent`(0-1)與 `limit_offset`<br>- `SLO`(特別限價單,港股):需 `submitted_price`,提交後不可改單
sidestring必填買賣方向:`Buy`(買入)或 `Sell`(賣出)
submitted_quantitystring必填委託數量
time_in_forcestring必填委託有效期:`Day`(當日有效)、`GTC`(撤單前有效)、`GTD`(指定日期前有效,需 `expire_date`)
submitted_pricestring委託限價。`LO` / `ELO` / `ALO` / `ODD` / `LIT` / `SLO` 必填
trigger_pricestring觸發價。`LIT` / `MIT` / `TSLPAMT` / `TSLPPCT` 必填
limit_offsetstring相對追蹤止損價的限價偏移量。`TSLPAMT` / `TSLPPCT` 必填
trailing_amountstring追蹤金額(絕對價格距離),`TSLPAMT` 必填
trailing_percentstring追蹤百分比(小數形式,例如 `0.05` 表示 5%),`TSLPPCT` 必填
expire_datestring到期日期(`yyyy-mm-dd`),`time_in_force=GTD` 時必填
outside_rthstring盤前盤後設置:`RTH_ONLY`(僅常規交易時段)、`ANY_TIME`(含盤前盤後任意時段)、`OVERNIGHT`(夜盤,僅美股)、`OPTION_PRE_MARKET`(美股期權盤前時段)
remarkstring委託備註(最多 255 字符)
client_request_idstring冪等鍵,每筆委託唯一(例如一個 UUID)。兩次請求攜帶相同值時交易所只會下一筆單,第二次返回原有的 order_id,因此超時或斷線後的重試不會重複成交。可能重試時務必設置;下一筆新委託必須換一個新值
attached_order_typestring附加止盈/止損單類型:`PROFIT_TAKER`(僅止盈)、`STOP_LOSS`(僅止損)、`BRACKET`(止盈止損同時掛)。普通委託請省略;不傳該參數時其餘 attached_* 參數均被忽略
attached_profit_taker_pricestring止盈觸發價。`PROFIT_TAKER` 與 `BRACKET` 必填
attached_stop_loss_pricestring止損觸發價。`STOP_LOSS` 與 `BRACKET` 必填
attached_profit_taker_submit_pricestring止盈單觸發後的委託限價,配合 `attached_activate_order_type=LO` 使用
attached_stop_loss_submit_pricestring止損單觸發後的委託限價,配合 `attached_activate_order_type=LO` 使用
attached_time_in_forcestring附加單有效期:`Day` / `GTC` / `GTD`;省略則沿用母單設置
attached_expire_timestring附加單到期時間,Unix 時間戳(秒),例如 `"1767139200"`;`attached_time_in_force=GTD` 時必填
attached_activate_order_typestring附加單觸發後提交的委託類型,例如 `LO`(需同時給出對應的 `attached_*_submit_price`)或 `MO`
attached_outside_rthstring附加單觸發後的盤前盤後設置:`RTH_ONLY` / `ANY_TIME` / `OVERNIGHT` / `OPTION_PRE_MARKET`
executestring本次試執行返回的 confirmation_code。省略(預設)表示 DRY RUN:只校驗並回顯請求,同時返回一個三位確認碼,不會發往交易所。必須先不帶該參數呼叫一次,把預覽展示給用戶,待用戶明確確認後才可再次呼叫並回填該碼。確認碼由訂單本身(代碼、方向、數量、價格)推導而來,只對這一筆完全相同的請求生效——改動任何欄位即失效。不可自行決定回填。
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢當日成交,返回頂層數組 {order_id, trade_id, symbol, side, quantity, price, trade_done_at};side 取自成交所屬委託,無法確定時為 ""(美股賬戶:未能解析所屬委託的方向,可調用 order_detail(order_id) 獲取)。可傳入 symbol 或 order_id 篩選
參數
symbolstring按證券篩選,例如 `"700.HK"`
order_idstring按指定委託單號篩選
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
查詢當日委託,返回委託組成的頂層數組 {order_id, symbol, stock_name, side, order_type, status, quantity, executed_quantity, price, currency, time_in_force, submitted_at, updated_at, msg, …, attached_orders[]},其中 attached_orders[] 為該委託的止盈 / 止損附加單。可用 symbol 按證券篩選,或用 order_id 查詢單筆委託。要按附加單自身的單號查詢,把該單號作為 order_id 並同時設置 is_attached=true,返回的委託項即為該附加單本身。is_attached 未配合 order_id 時無效。美股賬戶返回同樣的數組和字段名,但無 time_in_force、tag、expire_date、outside_rth(美股原始代碼見 us_time_in_force、us_tag,另含 gtd、security_type、operate_direction);is_attached 無效,us_action(Buy/Sell)可篩選,預設返回當日全部委託(最多 500 條),傳 us_page/us_limit 則只返回該頁;「當日」指從前一自然日紐約時間(EST/EDT)20:00(夜盤 20:00–04:00 ET 開盤)至當日紐約時間 23:59:59,因此夜盤委託過紐約零點後仍會列出,當日列表可能包含前一晚的夜盤委託;前一日紐約時間 20:00 起的委託亦會出現在該日的 history_orders 中,合併兩者時請按 order_id 去重
參數
symbolstring按證券篩選,例如 `"700.HK"`,省略則返回當日全部委託
order_idstring按委託單號篩選:母單單號,或(配合 is_attached=true)止盈/止損附加單單號。美股賬戶僅匹配母單單號
is_attachedboolean僅在同時傳入 order_id 時有效:表示該 order_id 是止盈/止損附加單單號,返回結果即為該附加單本身。單獨使用無效,美股賬戶下同樣無效
us_actionstring僅限美股賬戶:按方向篩選,`"Buy"` 或 `"Sell"`,留空表示全部。亞太賬戶忽略(區域由賬戶自動識別,無需傳入)
us_pageinteger僅限美股賬戶:只返回該頁(預設返回全部頁,最多 500 條)。亞太賬戶忽略(區域由賬戶自動識別,無需傳入)
us_limitinteger僅限美股賬戶:配合 us_page 分頁時的每頁數量(預設 50)。亞太賬戶忽略
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取價格波動超過近20日標準差的異動股票及關聯新聞原因。markets: 逗號分隔的 HK/US/CN/SG(不傳 = 全市場)。sort: 0=時間 1=漲跌幅 2=熱度(預設)。limit: 每頁數量(預設20)。next_params: 分頁游標,傳上一次返回的 next_params 物件。返回 events[]{timestamp(RFC3339), alert_reason, alert_type, stock{symbol, name, change(小數如0.0445=+4.45%), last_done, labels[], intro}}, updated_at, next_params。時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
marketsstring市場篩選,逗號分隔,支援 HK/US/CN/SG,不傳返回全市場
sortstring排序方式:0=按時間(最新優先)1=按漲跌幅(幅度最大優先)2=按熱度(預設)
datestring查詢日期,格式 YYYY-MM-DD,不傳預設今日
limitinteger每頁返回數量,預設 10,最多 100
next_paramsobject翻頁游標,將上一次回應的 next_params 原樣傳入即可取得下一頁,首頁不傳
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取證券相關的社區討論,返回頂層數組 {id, title, description, url, published_at, comments_count, likes_count, shares_count}
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
發佈社區討論。topic_type="post"(預設)為純文本;"article" 需非空 title,正文支援 Markdown
參數
titlestring必填討論標題。`topic_type="article"` 時必填,`"post"` 時可選
bodystring必填討論正文。`post` 僅支援純文本,`article` 支援 Markdown
symbolsarray相關證券代碼,例如 `["700.HK", "TSLA.US"]`(最多 10 個)
topic_typestring討論類型:`post`(預設,純文本)或 `article`(Markdown,需 `title`)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
對討論發表回覆。傳入 reply_to_id 表示樓中樓回覆,省略則為頂層回覆
參數
topic_idstring必填待回覆的討論 ID
bodystring必填回覆正文(僅支援純文本)
reply_to_idstring可選的父回覆 ID,用於樓中樓回覆,從 `topic_replies` 獲取;省略則為頂層回覆
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按 topic_id 獲取討論詳情,返回 {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_idstring必填討論 ID
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
分頁獲取討論的回覆(page 預設 1,size 預設 20,範圍 1-50)。返回頂層數組 {id, topic_id, body, reply_to_id, author: {member_id, name}, images, likes_count, comments_count, created_at}
參數
topic_idstring必填討論 ID
pageinteger頁碼(從 1 開始,預設 1)
sizeinteger每頁條數(1-50,預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按關鍵詞搜尋社區帖子/話題,返回 id、作者、時間及摘要
參數
keywordstring必填搜尋關鍵詞
limitinteger最多返回條數(預設 20;上游最多返回 30 條)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取成交統計(按價格的主動買 / 主動賣 / 中性盤分佈),即價量分佈。返回 {trades[]{price, buy_amount, sell_amount, neutral_amount}, statistics{avgprice, trades_count, total_amount, buy, sell, neutral, preclose, timestamp, trade_date[]}}時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取最近逐筆成交(最多 1000 條),返回 頂層數組 {price, volume, timestamp, trade_type, direction, trade_session}時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼
countinteger必填返回的最大條數(最多 1000)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取指定市場在日期區間內的交易日。market:HK/US/CN/SG。400 天以內的區間一次調用即可返回;更長的區間請拆分。返回 {trade_days: [date], half_trade_days: [date]}
參數
marketstring必填市場代碼:HK、US、CN、SG
startstring必填起始日期(`yyyy-mm-dd`)
endstring必填結束日期(`yyyy-mm-dd`)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取所有市場的交易時段安排,返回頂層數組 {market, trade_sessions[]{begin_time, end_time, trade_session}}
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
更新自選分組:重命名(name)或修改成員證券(securities + mode: add/remove/replace)
參數
idinteger必填自選分組 id
namestring新的分組名稱(可選)
securitiesarray證券代碼列表(可選)
modestring證券更新模式:`add`(新增)、`remove`(移除)或 `replace`(替換,預設)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取 PE 估值概覽:合理區間、中位數及 PE 序列。返回 {range(年數), metrics: {pe: {low, median, high, desc, list: [{timestamp, value}]}}};low/high 是合理區間的下沿/上沿,不是區間內的最低/最高值(序列可能低於 low 或高於 high),極值請從 list 計算。美股賬戶查詢 `.US` 標的會得到美股專屬變體(ai_summary 加上子欄位不同的 metrics.pe 物件)。區域由賬戶自動識別時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
股票估值對比。模式A(單股):只傳 symbol,服務端自動返回該股票及同行業推薦對標股。模式B(多股):傳 symbol 作為主股 + comparison_symbols(逗號分隔,如 'MSFT.US,GOOGL.US')進行指定股票對比。currency: USD/HKD/CNY。返回 list[]{symbol, name, market_value, price_close, pe, pb, ps, history[]{date, pe, pb, ps}}。時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填要比較的證券代碼,如 AAPL.US
currencystring必填貨幣單位:USD/HKD/CNY
comparison_symbolsstring對比標的,逗號分隔,最多 5 個,如 MSFT.US,GOOGL.US
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取 PE 估值歷史,用於長期分位分析。返回 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 是合理區間的下沿/上沿,不是區間內的最低/最高值,極值請從 list 計算)、peers.pe{industry_median, list[]{symbol, name, value}} 及 stocks(行業內股票,以 counter id 為鍵,如 "ST/US/AMD",每項 {name, market_cap})。僅 PE;不含 PB/PS 或股息率序列時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"700.HK"`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取證券在指定日期區間內每日估值排名(PE/PB/PS/股息率的行業百分位)。start/end 格式為 yyyymmdd,預設近 30 天。返回 {kline_type, max_num, pe, pb, ps, dvd},每個序列為 {timestamp, rank} 列表(rank 以 max_num 為滿分)時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolstring必填證券代碼,例如 `"AAPL.US"`
startstring起始日期,yyyymmdd(或 yyyy-mm-dd)格式(預設 end 之前 30 天)
endstring結束日期,yyyymmdd(或 yyyy-mm-dd)格式(預設今日)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取港股窩輪/牛熊證發行商信息,返回頂層數組 {issuer_id, name_en, name_cn},issuer_id 可用於 warrant_list 的發行商篩選
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
按條件篩選標的的窩輪 / 牛熊證列表,返回頂層數組 {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, …}
參數
symbolstring必填標的代碼,例如 `"700.HK"`
sort_bystring排序字段(預設 `Volume`):`LastDone`、`ChangeRate`、`ChangeValue`、`Volume`、`Turnover`、`ExpiryDate`、`StrikePrice`、`UpperStrikePrice`、`LowerStrikePrice`、`OutstandingQuantity`、`OutstandingRatio`、`Premium`、`ItmOtm`、`ImpliedVolatility`、`Delta`
sort_orderstring排序方向:`Ascending`(升序)或 `Descending`(降序),預設 `Descending`
warrant_typearray按品種篩選(可選):`Call`(認購證)、`Put`(認沽證)、`Bull`(牛證)、`Bear`(熊證)、`Inline`(界內證)
issuerarray按發行商 ID 篩選(可選),`issuer_id` 來自 `warrant_issuers`
expiry_datearray按到期時段篩選(可選):`LT_3`(<3 個月)、`Between_3_6`(3-6 個月)、`Between_6_12`(6-12 個月)、`GT_12`(>12 個月)
price_typearray按界內 / 界外篩選(可選):`In`(界內)、`Out`(界外),僅適用於界內證
statusarray按狀態篩選(可選):`Suspend`(停牌)、`PrepareList`(待上市)、`Normal`(正常交易)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取窩輪 / 牛熊證行情,返回頂層數組,每個標的一項: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 與槓桿在 warrant_list 中,不在此處時間戳為交易所當地時間(港股/A 股/新加坡 +08:00,美股為美東時區)。
參數
symbolsarray必填證券代碼,例如 `["700.HK", "AAPL.US"]`。請用規範代碼,補零的代碼(如 "00700.HK")會返回空記錄而非報錯
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取所有自選分組及其包含的證券,返回頂層分組數組 {id, name, securities[]{symbol, name, watched_price, watched_at, is_pinned}}
參數
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.
獲取當前帳戶提款歷史,返回 items[]{id, amount, currency, status, created_at, bank_name, account_number(脫敏)}
參數
pageinteger頁碼(預設 1)
sizeinteger每頁條數(預設 20)
_jqstringOptional jq filter applied to this tool's JSON response; it never changes the request, and several outputs come back as an array. For field names see the tool description, or probe with `keys` / `.[0] | keys`.