566 Commits

Author SHA1 Message Date
Hogan a1e35a0bd8 docs(quote): refresh option Greek field descriptions on Calc Index (#1241)
Update the delta / gamma / theta / vega / rho response-field
descriptions on the Calc Index (calc_indexes) interface across all three
languages (zh-CN / zh-HK / en).

Key change: **theta now documents the per-day semantics** — the raw
value has been divided by 365 on the server to convert to a daily value
(previously the docs incorrectly said divide by 100). delta/gamma get
full descriptions; vega/rho reworded to the /100 form.

Source of truth: the 期权希腊字母 spec table. Matches the SDK
(longbridge/openapi#586), MCP, and CLI changes.
2026-09-16 15:00:59 +08:00
Hogan cb5678d84a docs(trade): document the page parameter on history_executions (#1255)
## Problem

The `history_executions` docs (zh-CN + en) list only `symbol` /
`start_at` / `end_at` in the parameter table, and the response section
states "`has_more` is `true` when results exceed 1000" — but never
document **how** to page. The sibling `all_executions` doc does document
`page`. So a reader hitting the 1000-record cap has no documented way to
paginate.

This surfaced downstream in longbridge/longbridge-terminal#320, where a
consumer building a ledger assumed windowed queries silently truncate at
1000 with no way forward.

## Change

Add the `page` parameter row to `history_executions.mdx` (zh-CN + en),
copied from `all_executions`.

**Verified against the production gateway**: `page` is 1-based and
respected — on an account with N (<1000) fills, `page=1` returns all N
and `page=2` returns empty; per-page size is fixed at 1000 (no size
param).

Refs longbridge/longbridge-terminal#320
2026-09-14 15:52:09 +08:00
Hogan 2e18485a28 docs(market): fix Java getRankList example to use RankListOptions (#1250)
Fixes #1249.

The Java example for the rank-list (人气排行榜) API called
`ctx.getRankList("hot_all-us", false)` with positional args, but the
Java API takes a `RankListOptions` object:

```java
RankListOptions opts = new RankListOptions();
opts.key = "hot_all-us";
opts.needArticle = false;
var resp = ctx.getRankList(opts).get();
```

Updated the Java example in all three languages (en / zh-CN / zh-HK).
The Rust / Python / Node.js / C++ examples in the same page were already
correct.

The accompanying runtime crash (`JNI call failed`) is fixed separately
in longbridge/openapi#587.
2026-09-14 15:52:00 +08:00
拉罐 a50d356db8 Fix/doc drap (#1239)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-02 18:05:35 +08:00
twosugar b88557fe38 docs: 同步老站(main)遗漏的内容改动
审计 main 领先本分支的 14 个提交,其余均已在新站,补齐缺失的 3 处:
- agent-auth: 授权码有效期 5 分钟 → 10 分钟(#1232,三语言)
- mcp: 工具数 100+ → 160+(#1225,三语言)
- Pricing: A 股实时行情加"仅限中国大陆 IP、其他地区延迟 15 分钟"注释(#1229,三语言)
  并给 .pricing-matrix-feat 加 white-space: pre-line 使注释换行

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-31 10:21:42 +08:00
twosugar 7a3daba71c feat(migrate): sync upstream main into Astro and align footer with legacy
Content (from origin/main, 3 locales):
- add grid trading, multi-leg, CLI ai/serve, and style-guide pages (58 files)
- rename Longbridge AI -> LongbridgeAI; add multi-leg fields, remove
  contract_size, add US paper-account notes (39 files)
- sync grid trading endpoints into openapi.yaml

Components:
- footer: add AI Integrations column (MCP / ChatGPT App / Claude Connector);
  restore legacy tagline, status pill, padding, grid, heading + link styles;
  hug footer to content (drop mt-16)
- sdk-links: support grid module (GridContext, hideGo)
- raw markdown: serve EN source prefixless at /docs/<path>.md (legacy parity)

Polish:
- CliCommand terminal card with per-command doc deep-links
- resolve relative-slug URLs in sidebar / prev-next / breadcrumb
- hydrate pricing billing toggle + eyebrow badge; thin scrollbars
- global body base + site-wide antialiasing

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-27 15:56:05 +08:00
twosugar 3b7a4872c0 docs(migrate): add stage-2 implementation plan
Composite components, build fix (§S1 already landed via Sätteri opt-out),
canary preview, and legacy cutover. §S1 documents both Plan A (unified()
processor, chosen path) and Plan B fallback (Astro 6 downgrade, not
needed).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-18 11:48:20 +08:00
twosugar 279e2df147 chore(migrate): convert docs/*.md to *.mdx with autolink/brace escapes
Rename all 882 markdown files under docs/{en,zh-CN,zh-HK}/ from .md to
.mdx, escaping <email@host> autolinks and bare {ident} braces that mdx
would misinterpret as JSX. Frontmatter untouched.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-17 16:54:26 +08:00
twosugar 45d60b9be1 chore(migrate): archive vitepress reference to .legacy/ and switch scripts to astro
Move vitepress config, theme, postcss and unocss configs into
.legacy/vitepress-reference/ for use as a source-of-truth reference
while we port components to React. Astro dependencies not yet
installed; scripts entry-points point to astro but running them will
fail until T2 lands astro.config.ts and dependencies.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-17 16:19:52 +08:00
twosugar 9a7d3dcb06 docs(plan): openapi-website astro migration stage 1
18-task implementation plan for stage 1 of the vitepress -> astro
migration. Covers vitepress teardown (mv to .legacy/), astro scaffold,
tri-lingual content routes, tokens/styles baseline, shell components
(TopNav/Sidebar/TOC/PrevNext/Breadcrumb/Search), region system,
pagefind-backed vitepress-parity search UI, LLM .md export, 7 mdx
primitives extracted into @longbridge/openapi-ui workspace, 6 composite
placeholders, opencli A/B tooling, first-pass verification and legacy
purge.

Each task follows TDD-adjacent structure (checklist steps, per-task
commits, exact file paths, executable code). Global constraints copied
verbatim from spec: URL set A △ B = ∅ hard gate, user-experience
equivalence, shiki token drift <=2% (only approved exception), no
AI-run builds, no push, single-file commit granularity.

Spec: docs/superpowers/specs/2026-08-17-openapi-astro-migration-design.md

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-17 16:08:24 +08:00
twosugar fac783bcdb docs(spec): openapi-website astro migration design
Architectural spec for migrating openapi-website from VitePress
2.0-alpha + Vue 3 to Astro 7 + React 19 + Tailwind v4, referencing
whale-apidocs.

Top-level constraint: user-facing experience must remain identical
(URLs, visuals, interactions, load, search, component behavior). Only
approved exception: shiki code-highlight token color drift <=2%.

Two-stage plan:
- Stage 1: architecture + primitives + shell (remove vitepress, wire
  content collections, sidebar generator from _category_.json, theme
  pre-paint, region system, Pagefind search, opencli URL/DOM gate).
- Stage 2: composite components (TryIt rebuilt with react-hook-form,
  ApiReference React CSR port, NewHomePage, inspira animations), all
  extracted into 6 workspace packages.

opencli A/B verification via chrome-devtools MCP, DOM topology >=95%,
URL set diff = empty, layered CI (per-PR sample, canary full-site
visual, release-gate experience assertions).

Decision log: 21 entries, all open questions closed.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-17 15:17:59 +08:00
liuyuhou-code ee8224b38a Feature/execution side (#1188)
Co-authored-by: Sunli <scott_s829@163.com>
2026-08-17 10:25:22 +08:00
Jason Lee 46babbcdb5 docs: clarify ACP usage and setup (#1209)
## Summary

- rewrite the CLI v0.27.0 ACP release note around user-facing purpose
and investment scenarios
- add English, Simplified Chinese, and Traditional Chinese `longbridge
acp` guides
- document generic ACP client configuration and keep Zed as the sole
product-specific example
- link Longbridge AI and the release notes to the new setup guide

## Test Plan

- `git diff --check`
- `npm run build:release`

Co-authored-by: Codex <codex@openai.com>
2026-08-14 22:17:18 +08:00
Hogan d89e74990f docs: CLI v0.27.0 (agent + ACP) and CI build heap bump (#1208)
Non-grid slice split out of #1204 so it can ship independently (grid
trading is blocked on the gateway).

## Changes
- **Changelog & CLI release notes** (`en` / `zh-CN` / `zh-HK`) — a
2026-08-14 `CLI v0.27.0` entry documenting:
- **`agent` commands (A2A)** — `workspace list`, `agent list`, streaming
`agent chat` / `agent continue` (longbridge/longbridge-terminal#280)
- **`acp` runtime** — `longbridge acp` exposes the Longbridge AI agent
over the Agent Client Protocol, with Codex / Claude adapter presets
(longbridge/longbridge-terminal#282)
- **CI** — raise the docs build Node heap to 14GB (`package.json` +
`build.yml` + `canary.yml`).

## Not included
Grid trading docs (API reference, CLI `grid` page, SDK examples, push
event, MCP tools) stay in #1204 until the gateway is live.

Refs: longbridge/longbridge-terminal#280,
longbridge/longbridge-terminal#282
2026-08-14 17:43:26 +08:00
Ryder 59cf80c8aa docs(ai): 新增公开 Agent 列表接口文档 (#1202) 2026-08-13 13:12:36 +08:00
Endless 8af8ecb67d fix: update Claude Longbridge Connector URL from /longbridge-mcp to /longbridge (#1200)
🤖 Auto-generated by Endless task
[#41](https://endless.longbridge-inc.com/projects/developers/tasks/41).
Initiated by: huacnlee@longbridge-inc.com
Worker agent: Claude Code (claude_code · lboneapi · claude-sonnet-4-6)

## Commits

- **fix: update Claude Longbridge Connector URL from /longbridge-mcp to
/longbridge**

- **feat: add claude.ai connector install guide to MCP page and update
claudeSteps in Skill.vue**
- Add ### claude.ai section to mcp.md (en/zh-CN/zh-HK) with step-by-step
Customize → Connectors → Browser Connectors flow and direct URL
- Update claudeSteps in Skill.vue (all 3 locales) to reflect the same
accurate UI navigation flow

---------

Co-authored-by: Jason Lee <huacnlee@gmail.com>
2026-08-07 09:23:35 +08:00
Ryder 4d525a9de3 docs: add parent_message_id parameter to conversation API docs (#1198)
Co-authored-by: Biao <biao.wang@longbridge-inc.com>
2026-08-06 20:59:37 +08:00
拉罐 fe9ae6dd5c feat(login): forward invite-code to login redirect (query > cookie) (#1199) 2026-08-06 19:16:18 +08:00
Hogan 2d861dd567 feat(skill): add Claude connector alongside ChatGPT (#1196)
## What changed

**Skill page (`/skill/`)**
- New **Claude** tab in the install segmented control (Connect AI · Copy
command · ChatGPT · **Claude**), linking to the Claude connector
directory `https://claude.ai/directory/connectors/longbridge-mcp`. Tab
bar now scrolls instead of overflowing on mobile.
- Hero callout now covers both channels: "ChatGPT and Claude can install
Longbridge directly — use `@longbridge` in ChatGPT, or the connector in
Claude." (fixed its layout so the longer sentence wraps cleanly instead
of centering raggedly).

**Home page**
- New **"Now available in ChatGPT and Claude"** intro band above the
FEATURES section, reusing the exact same `eyebrow + h-section` header
style as the other sections, with ChatGPT / Claude logo chips on the
right.

All copy synced across **en / zh-CN / zh-HK**.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: twosugar <sugarfish@yeah.net>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-05 22:34:17 +08:00
拉罐 0eb792d64c docs(seo): add cross-domain internal links to longbridge.com (#1193)
Wrap 6 existing terms across the docs as hyperlinks pointing to the
matching longbridge.com pages (per SEO team requirement doc). Targets
are unprefixed so longbridge.com auto-routes by browser locale; the same
URL is used from all three language sites.

- docs index: community topics -> /topics; watchlist -> /watchlist
- screener/screener_indicators: stock screener -> /screener
- market/calendar/macro_calendar: macroeconomic data ->
/calendar/macrodata
- fundamental/overview: Financial event calendars -> /calendar/macrodata
- content/overview: security news -> /news
2026-08-04 13:31:41 +08:00
Sunli e95c5710e2 docs: update option volume daily SDK params and examples
Add timestamp/count params, update all SDK call examples to pass explicit
args, and note that Go SDK uses start/end time range instead.
2026-07-31 09:36:44 +08:00
Sunli c4980dee0d docs: update option volume API response fields
- Simplify option_volume response to call_volume and put_volume only
- Rename list to stats in option_volume_daily response
- Add symbol, total_volume, total_open_interest fields to daily stats
- Change pc_vol and pc_oi types from string to float
2026-07-30 15:43:44 +08:00
Shine Xia b2c7d05660 docs: add attached order (take-profit/stop-loss) params docs and orde… (#1092)
Co-authored-by: Xia Guanghui <guanghui.xia@longbridge.sg>
2026-07-29 16:38:31 +08:00
Jason Lee 36363471c8 docs: Add v0.26.0 CLI release notes (#1185)
Adds the release-notes entry for what has landed on
`longbridge-terminal` `main` since v0.25.0, in all three locales (en /
zh-CN / zh-HK).

Covered:

- TUI settings modal (`Ctrl+,`), context-aware shortcut hints, mouse
scrolling — longbridge/longbridge-terminal#272
- TUI visual refresh — longbridge/longbridge-terminal#273
- Access point no longer sticks to China Mainland —
longbridge/longbridge-terminal#276
- `ipo calendar` returned no data — longbridge/longbridge-terminal#275
- Clearer error for US option quotes without OPRA access —
longbridge/longbridge-terminal#271
- `ipo detail` degrades gracefully when an auxiliary endpoint is down —
longbridge/longbridge-terminal#270

The version heading assumes **v0.26.0**, since the batch adds TUI
features rather than only fixes. Say the word if it should ship as
v0.25.1 and I will renumber.

Also refreshes the access-point paragraph in
`skills/longbridge/references/cli/overview.md`, which still described
detection as a non-blocking startup probe keyed off mere reachability,
and adds `LONGBRIDGE_REGION` to the environment-variable table — the CLI
now names that variable in its own error output.

The existing v0.25.0 entry is untouched; the diff is additive.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-27 21:28:57 +08:00
Ryder e1a7f482d1 新增 SSE 事件参考页并补全事件类型说明 (#1177)
- 新增 docs/{en,zh-CN,zh-HK}/docs/portai/chat/events.md,逐一列出 chat/workflow
生命周期、message、thinking、node_tool_use、subagent、agent_tool、human_interaction_required
及辅助事件的字段表与示例
     - 说明帧格式信封结构:SSE event 恒为 message,客户端应按 data.event 分发并忽略未知事件以保持向前兼容
- 给出成功/中断/失败三种典型事件序列,并注明中断运行不发 workflow_finished、恢复时不再发 workflow_started
- conversation.md 的流式示例中 workflow_run_id 由占位符 wr_... 修正为真实格式的数字字符串
745910371102313,并添加指向 events 页的链接
     - 三语言页面 sidebar_position 均为 4,紧随 continue(3)之后

---------

Co-authored-by: Biao <biao.wang@longbridge-inc.com>
2026-07-22 17:14:52 +08:00
Jason Lee 8b5b881aa8 fix: refine AI Agent sidebar navigation (#1174)
## Summary

- move AI Agent directly after Account in all three locales
- keep AI Agent expanded while collapsing Workspace and Conversation so
only the first level is visible
- replace the AI Agent CPU icon with a bot icon and add icons for Market
and Screener
- preserve the configured expanded/collapsed state of all other sidebar
sections

## Test Plan

- generated the English, Simplified Chinese, and Traditional Chinese
sidebars and asserted ordering, nesting, collapse state, and icon output
- ran Prettier checks on the changed sidebar/config files
- ran `git diff --check`
- build not run per repository instructions

Co-authored-by: Codex <codex@openai.com>
2026-07-20 18:35:14 +08:00
拉罐 4d758951cc feat: support US environment via cookie app_id (#1173)
Runtime US tenant detection based on cookie `app_id` /
`x-original-app-id` (longbridge_us / longbridge_us_uat), aligned with
openapi-website-private.

- API baseUrl (request.ts) prefers US host when cookie matches:
    longbridge_us     -> https://mr.longbridge.com
    longbridge_us_uat -> https://mr.longbridge-staging.com
  falls back to hostname suffix.
- __API_PROXY_URL__ resolves the same way in an inline bootstrap script
  that runs before longport-internal.iife.js loads.
- Append `with-us=1` to the login redirect URL.
- Pin longport-internal.iife.js to versioned CDN artifact that contains
  US tenant normalization

(assets.lbctrl.com/openapi-sdk/release/longport-internal-202607201728.iife.js).
- Rename portal gateway host m.* -> mr.* in package.json,
region.config.ts,
  config.mts and workflow yml.
2026-07-20 18:14:52 +08:00
Hogan bd71d5b939 docs: merge CLI v0.25.0 + SDK v4.4.0 changelog into single 2026-07-20 entry (#1172)
Merge the two CLI v0.25.0 sections (from 2026-07-20 and 2026-07-07) and
SDK v4.4.0 into a single combined entry under 2026-07-20.
2026-07-20 17:37:21 +08:00
Jason Lee b94a84cc35 docs: add CLI v0.25.0 release notes and US data center docs (#1170)
## Summary

- **CLI v0.25.0 release notes** — US data-center support, 14 US-routed
account/fundamentals commands, `quant run` migrated to the v2 API with
Navi support
- **Changelog** — same CLI entry plus a platform-level note that
Longbridge Developers now supports US account login, with the `.cn`
domain limitation called out
- **Getting Started** — new "Access Points and Data Centers" section
clarifying that `.com`/`.cn` are access points (network routing only)
while `ap`/`us` are data centers, and that `.cn` has no route to the US
data center

All three languages (en / zh-CN / zh-HK) updated in sync. Source for the
DC explanation: `longbridge-terminal/src/region.rs`.

Note: prettier reflowed the environment-variable table in
`docs/en/docs/getting-started.md` — formatting only, no content change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 17:16:28 +08:00
Hogan a0792276fc docs: US market APIs — CLI v0.25.0 + SDK v4.4.0 (14 new methods) (#1137)
## Summary

新增美股市场 API 文档(CLI PR #262 / OpenAPI PR #555 / openapi-go PR #106),三语言同步。

## CLI v0.25.0

### 新增命令
- **`etf-docs <SYMBOL>`** — 列出美股 ETF 监管文件(招股书、事实说明书等);`--limit`
- **`financial-report key-metrics`** — 美股关键财务指标;`--report
annual|quarterly`
- **`profit-analysis realized`** — 美股已实现盈亏;`--category
stock|option|crypto`

### 已有命令更新(美股账户自动路由)
- `company`, `valuation`, `financial-report`, `consensus`, `dividend` —
添加 US 路由说明
- `order` — 新增 `--status`、`--action` 筛选flag,`order detail --attached`
关联子委托

## SDK v4.4.0 — 14 个新方法(均为 US Only)

### FundamentalContext(9 个)
`us_company_overview`, `us_valuation_overview`, `us_financial_overview`,
`us_financial_statement_v3`, `us_key_financial_metrics`,
`us_analyst_consensus`, `us_etf_dividend_info`, `us_company_dividends`,
`us_etf_files`

### QuoteContext(1 个)
`us_crypto_overview`

### TradeContext(4 个)
`us_query_orders`, `us_order_detail`, `us_asset_overview`,
`us_realized_pl`

## Related PRs
- CLI: longbridge/longbridge-terminal#262
- SDK: longbridge/openapi#555
- Go SDK: longbridge/openapi-go#106

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-07-20 17:14:08 +08:00
Jason Lee 8c082a34c6 docs: Update quant scripting docs for Navi (#1169)
`longbridge quant run` now defaults to Navi
([longbridge-terminal#267](https://github.com/longbridge/longbridge-terminal/pull/267)),
so the CLI docs and the `longbridge` skill are rewritten around it.

## Scope

- `docs/{en,zh-CN,zh-HK}/docs/cli/quant/index.md` — language section and
all examples
- `docs/{en,zh-CN,zh-HK}/docs/cli/quant/backtest.md` — 4 strategy
scripts and the `strategy()` settings table
- `skills/longbridge/references/cli/quant.md` — 11 examples

**Every example script is new Navi source and passes `navi lint`.**

## Errors this surfaced

These were already broken before the rewrite:

- **`jq` paths were wrong.** Docs used `.data.report_json`; the report
is at `.report_json`. Every documented backtest one-liner returned
`null`.
- **The Bollinger example was needlessly manual.** It stated `ta.bbands`
was unavailable and built bands from `ta.sma` + `ta.stdev`. Navi's
`ta.bb` returns `(basis, upper, lower)` directly.
- **`strategy()` settings named PineScript symbols** —
`strategy.commission.percent`, `strategy.fixed`,
`strategy.percent_of_equity` — which in Navi are `CommissionType` /
`DefaultQtyType` variants.
- **Indicator outputs were stale.** The six indicator examples now show
real `quant run` output.

## Syntax highlighting

Replaces the OpenPine TextMate grammar with the official Navi grammar
from `navi-docs`, registered as `navi` with an `nv` alias. The `pine`
alias is dropped, and all fences use `nv`.

## Note on remaining stale values

The JSON figures under **Backtesting** in `backtest.md` are carried over
unverified — the quant API has been returning `code=14` (UNAVAILABLE)
and I could not re-run them. Worth re-checking once it recovers. The
indicator tables in `index.md` *are* freshly captured.

Per-language reference detail is kept deliberately thin:
[navi-lang.org](https://navi-lang.org) is authoritative and its API
evolves.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 14:47:40 +08:00
Endless 4843eea28b feat: reorder AI Agent sidebar item to end and set collapsed state (#1166)
🤖 Auto-generated by Endless task
[#40](https://endless.longbridge-inc.com/projects/developers/tasks/40).
Initiated by: huacnlee@longbridge-inc.com
Worker agent: Dory (ri · lboneapi · claude-haiku-4-5-20251001)

## Summary

- **Issue**: AI Agent sidebar items were displayed in the middle of the
sidebar due to directory ordering, with expanded state by default,
reducing visibility of higher-priority documentation items (API, CLI,
MCP).
- **Solution**: Implemented sidebar reordering logic to move AI Agent
items to the end of the sidebar (before the external API Reference link)
and set `collapsed: true` for default folded state across all three
language versions (zh-CN, en, zh-HK).
- **Verification**: Modified three `buildDocsSidebar()` functions to
identify AI Agent items by `/ai` path pattern, extract using `splice()`,
set collapsed property, and re-append to end. No changes to core
generation logic (`genMarkdowDocs()`).

## Changes

| File | Change |
|------|--------|
| `docs/.vitepress/locales/zh-CN/sidebar.ts` | Added AI Agent item
reordering and collapse logic to `buildDocsSidebar()` |
| `docs/.vitepress/locales/en/sidebar.ts` | Added AI Agent item
reordering and collapse logic to `buildDocsSidebar()` |
| `docs/.vitepress/locales/zh-HK/sidebar.ts` | Added AI Agent item
reordering and collapse logic to `buildDocsSidebar()` |
2026-07-20 14:25:45 +08:00
Endless 4727b908c3 feat: add Navi link to footer and Navi CLI docs in quant indicator guides (#1161)
🤖 Auto-generated by Endless task
[#39](https://endless.longbridge-inc.com/projects/developers/tasks/39).

Initiated by: huacnlee@longbridge-inc.com
Worker agent: Claude Code (claude_code · anthropic · claude-sonnet-4-6)

## Summary
- Added a link to [https://navi-lang.org](https://navi-lang.org) across
all footer components (AppFooter and both HomePage/NewHomePage variants)
- Created new indicator documentation pages (`indicator.md`) for `en`,
`zh-CN`, and `zh-HK` locales under the CLI quant section
- Each indicator doc introduces Navi's capabilities in the context of
existing quant features and guides users to install the Navi CLI for
local verification
- To verify: check the site footer for the Navi link and navigate to the
CLI → Quant → Indicator docs in all three locales

## Changes

| File | Change |
|---|---|
| `docs/.vitepress/theme/components/AppFooter.vue` | Added Navi
(navi-lang.org) link to the app footer |
| `docs/.vitepress/theme/components/HomePage/Footer.vue` | Added Navi
link to the HomePage footer |
| `docs/.vitepress/theme/components/NewHomePage/Footer.vue` | Added Navi
link to the NewHomePage footer |
| `docs/en/docs/cli/quant/indicator.md` | New EN doc: introduces Navi
for quant indicators and guides Navi CLI installation |
| `docs/zh-CN/docs/cli/quant/indicator.md` | New zh-CN doc: introduces
Navi for quant indicators and guides Navi CLI installation |
| `docs/zh-HK/docs/cli/quant/indicator.md` | New zh-HK doc: introduces
Navi for quant indicators and guides Navi CLI installation |

---------

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
Co-authored-by: Jason Lee <huacnlee@gmail.com>
2026-07-17 18:52:18 +08:00
QFCG 05bf5fba80 docs: add history candlestick months limit description (#1160)
Co-authored-by: 梁轩伟 <xuanwei.liang@longbridge.sg>
2026-07-17 15:31:06 +08:00
拉罐 5f101c334f Feat/seo (#1159)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-16 18:18:26 +08:00
hold-baby fb1e18fbff docs: add Content API overview pages and fix homepage capability card links (#1158)
## Merge Verdict

**[APPROVE]** — Docs-only change: adds Content API overview pages (3
locales) and fixes homepage API capability card links; all link targets
verified against production.

> 4 files · +237 / -7 · `NewHomePage` `docs/content`

---

## Summary

- Homepage "API Capabilities" cards previously all linked to `/api`,
which returns 404 in production — each of the 5 cards now links to its
own capability page via a new `link` field on `API_CAPS`.
- Added `overview.md` for the Content module (News & Contents) in all
three locales (`en`, `zh-CN`, `zh-HK`), following the structure of
`quote/overview.md` / `trade/overview.md`: a categorized table (News ×1
/ Topics ×6 / Sharelist ×9) linking to all 16 endpoint pages.
- Content & News card now points to the new `/docs/content/overview`
page shipped in the same PR.

---

## Risk Analysis

| Risk | Level | Mitigation |
| ------ | ------ | ------------ |
| Broken link targets |  | All 5 card URLs curl-verified:
`/docs/quote/overview`, `/docs/trade/trade-overview`,
`/docs/cli/derivatives/option`,
`/docs/cli/fundamentals/financial-report` return 200 in production;
`/docs/content/overview` is added by this PR |
| Overview link/title drift |  | All 16 table links use the exact
`slug` frontmatter of target pages; titles match target page `title`
verbatim in each locale |
| Sidebar ordering | 🟢 | `sidebar_position: 0` sorts the overview before
News(1)/Topics(2)/Sharelist(3), same pattern as the quote module |

---

## Design Decisions

- **Per-card links instead of a single `/docs/api` link**: matches user
intent for the homepage capability grid; each card lands on its
capability's most relevant page.
- **No Protobuf/WebSocket access sections in the Content overview**:
Content APIs are plain HTTP REST, so the quote overview's
private-protocol sections were intentionally not copied; a one-line HTTP
+ SDK note is kept instead.

---

## Code Concerns

1. **[信息]** Unused component with a stale broken link
(`docs/.vitepress/theme/components/NewHomePage/CapSection.vue:64`)
`CapSection.vue` is referenced by no file (dead code) and contains
`/docs/trade/overview`, a live 404 — pre-existing and outside this diff;
consider deleting the component or fixing its links in a follow-up.
   ——作者回复:Will be removed in a separate follow-up PR.

---

## Verification Status

 Link targets curl-verified against production ·  Slugs/titles
cross-checked against target page frontmatter · 📋 To verify: homepage
card navigation in local dev (`bun run dev`), including `/zh-CN` locale
prefix handling

Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-07-16 15:25:15 +08:00
拉罐 f675b0caed docs(seo): add cross-domain internal links to longbridge.com (#1157)
Per SEO team's cross-domain internal linking spec:
- docs/index: link "Market news" -> /en/news, "Real-time and historical
quotes" -> /markets
- docs/getting-started: link "HK Market" -> /hk/
- docs/cli/index: link "AI-agent tool" -> /hk/longbridge-ai
- docs/quote/pull/quote: update anchor to "Longbridge Global Markets" ->
/en/markets
- docs/cli/quant/screener: update anchor to "Longbridge Stock Screener"
-> /en/screener
- Skill.vue: update "screen stocks" & "live market data" targets to
/en/*
- Pricing.vue: align "news", "Longbridge App", "integrated accounts",
"View live market data" to /en/news, /hk/en/download, /en/markets

Trilingual sync across en / zh-CN / zh-HK. Links only, no copy changes.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-16 14:40:02 +08:00
Endless 0bc89537ca feat(mcp): add Grok to MCP installation guide and skill list (#1155)
🤖 Auto-generated by Endless task
[#37](https://endless.longbridge-inc.com/projects/developers/tasks/37).

Initiated by: huacnlee@longbridge-inc.com

- Added Grok as a supported MCP client in the installation documentation
across all three locales (en, zh-CN, zh-HK)
- Documents the step-by-step flow: **Skills and Connectors → Connectors
→ New Connector → Custom**, entering name `Longbridge` and server URL
`https://mcp.longbridge.com`
- Covers completing the Longbridge OAuth 2 authorization after clicking
**Add Connector**
- Updated `Skill.vue` to include Grok in the supported clients list,
positioned after Codex

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
2026-07-14 11:56:14 +08:00
Ryder de56f3a0f4 docs: Add AI conversations API (#1129)
- 新增 conversation.md 描述发起对话接口 POST
/v1/babbage/agents/:id/conversations,含阻塞式与 SSE 流式两种响应模式及请求示例
- 新增 continue.md 描述继续对话接口,覆盖 answers_by_tool_call 结构、多次中断续跑及归属校验规则
- conversation.md 提供 conversation_response schema,含 interrupt
中断结构(node_id、tool_call_id、questions)与 error 字段说明
- 新增 portai 与 chat 目录的 _category_.json,配置 sidebar 位置(2.7)、cpu 图标与分组标签
- en / zh-CN / zh-HK 三语言目录同步创建,内容与结构保持一致

---------

Co-authored-by: Biao <biao.wang@longbridge-inc.com>
2026-07-13 16:02:44 +08:00
Endless 149bea3de6 fix: update favicon URLs to correct light/dark logo assets (#1148) 2026-07-10 12:36:29 +08:00
Endless f8af02c983 feat(docs): add dark theme App Icon resource to Assets documentation (#1147)
🤖 Auto-generated by Endless task
[#35](https://endless.longbridge-inc.com/projects/developers/tasks/35).

Initiated by: huacnlee@longbridge-inc.com

- Added `app-icon-dark.svg` as a new Longbridge App Icon resource in the
Assets documentation across all locales (en, zh-CN, zh-HK)
- The dark theme icon is intended for use in contexts such as GitHub
avatars, ChatGPT/Claude plugins, and similar integrations
- Updated VitePress config (`config.mts`) to include the new Assets
section in the sidebar navigation
- Documentation added consistently across all three language versions to
maintain i18n parity

---------

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
2026-07-10 11:45:36 +08:00
Endless 37d8312c2c docs: update ChatGPT entry from Apps to Plugins for Longbridge install (#1146)
🤖 Auto-generated by Endless task
[#34](https://endless.longbridge-inc.com/projects/developers/tasks/34).

Initiated by: huacnlee@longbridge-inc.com

- Updated installation instructions across EN, zh-CN, and zh-HK docs to
reflect that the ChatGPT entry point has changed from **Apps** to
**Plugins**
- Modified `mcp.md`, `qa/general.md`, and `skill/install/index.md` in
all three locales (9 files total)
- Ensures users can correctly locate and install the Longbridge plugin
within the ChatGPT interface

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
2026-07-10 10:40:58 +08:00
Endless 98522cfadc docs(mcp): add note on ChatGPT MCP trading order restrictions (#1144)
🤖 Auto-generated by Endless task
[#33](https://endless.longbridge-inc.com/projects/developers/tasks/33).

Initiated by: huacnlee@longbridge-inc.com

- Added clarification in MCP documentation (EN, zh-CN, zh-HK) that the
MCP published on ChatGPT has special limitations
- Noted that trading/order placement functionality is excluded from the
ChatGPT-hosted MCP
- Explained that these restrictions are due to ChatGPT platform policy
rules
- Updated all three language variants of the MCP docs to keep content
consistent across locales

---------

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
2026-07-09 17:47:17 +08:00
liuyuhou-code aac040c7ce docs(trade): fix OrderTag enum value GTC to Gtc (#1142) 2026-07-09 10:31:34 +08:00
Jason Lee aff930cbe2 Add brand assets documentation page (#1141)
Summary
- Add localized /docs/assets pages listing Longbridge brand image
resources as Markdown/HTML for AI-readable access.
- Link the assets page from footer variants and add localized footer
labels.
- Allow breadcrumb suppression via frontmatter and copy assets markdown
routes after build.

Test Plan
- npx prettier -c scripts/copy-routes.ts
docs/.vitepress/theme/layouts/Layout.vue
docs/.vitepress/theme/style/index.css
docs/.vitepress/theme/components/AppFooter.vue
docs/.vitepress/theme/components/HomePage/Footer.vue
docs/.vitepress/theme/components/NewHomePage/Footer.vue
docs/en/docs/assets/index.md docs/zh-CN/docs/assets/index.md
docs/zh-HK/docs/assets/index.md docs/en/docs/assets/_category_.json
docs/zh-CN/docs/assets/_category_.json
docs/zh-HK/docs/assets/_category_.json
- npx tsc --noEmit -p docs/tsconfig.json
- git diff --check
- JSON parse check for locale files and assets category files

Note
- Did not run build because repository instructions prohibit AI sessions
from running build commands.

Co-authored-by: Codex <codex@openai.com>
2026-07-08 16:23:46 +08:00
Sunli 6066f1f93d docs(getting-started): use refresh_access_token_async in python-async tab 2026-07-08 11:17:52 +08:00
Sunli 1dc5c50960 docs(getting-started): add python-async tab to refresh_access_token section 2026-07-08 11:17:51 +08:00
Jason Lee 9a5804f3df docs: add ChatGPT app MCP guidance (#1138)
## Summary
- Add Longbridge ChatGPT App guidance across the home page, MCP docs,
Skill install docs, QA docs, and Longbridge Skill metadata.
- Update the Skill hero with a ChatGPT banner and third ChatGPT install
tab while keeping the generic Copy command flow intact.
- Replace the old ChatGPT Developer Mode flow with the official ChatGPT
Apps search, authorize, and @longbridge usage flow, including
screenshots.

## Test Plan
- git diff --check
- git diff --cached --check
- bun run build:release

Notes: build passes with the existing VitePress dynamic/static import
and chunk-size warnings.

---------

Co-authored-by: Codex <codex@openai.com>
2026-07-07 18:27:40 +08:00
Liu Kun 3de4d0a388 docs: clarify client_request_id optional behavior and idempotency bypass (#1135) 2026-07-06 15:13:23 +08:00
Liu Kun b1107f6edc docs: add client_request_id and idempotency support to order submit API (#1134)
- Add client_request_id parameter to prevent duplicate order submissions
- Document 10-minute server-side cache duration
- Include idempotency explanation and examples in all three language
versions (en, zh-CN, zh-HK)
- Update parameter tables and add new Idempotency/冪等性 sections

Co-authored-by: kun.liu <kun.liu@longbridge-inc.com>
2026-07-06 14:34:02 +08:00