Commit Graph

492 Commits

Author SHA1 Message Date
Sunli 744a368119 docs: update C++ ContentContext examples to synchronous style
ContentContext::create(config) now returns synchronously in 4.0.5,
same as QuoteContext and TradeContext. Updated 6 files across
zh-CN, en, and zh-HK.
2026-03-23 19:08:36 +08:00
Sunli 5b3b3e006d docs: add Python (async) examples to getting-started scenarios 2026-03-23 19:08:36 +08:00
Sunli 5f1306f9a1 fix: remove extra blank lines in Python async code examples 2026-03-23 19:08:36 +08:00
Sunli cef44568c7 docs: add Python (async) tab to all SDK code examples
Add AsyncQuoteContext/AsyncTradeContext/AsyncContentContext examples
alongside existing sync Python examples, covering all 143 API pages
across zh-CN, en, and zh-HK.
2026-03-23 19:08:36 +08:00
Sunli 9f491a5951 fix: use absolute path for unocss configFile to resolve lookup error 2026-03-23 19:08:36 +08:00
Sunli b6cb147b28 docs: update SDK version references from 4.0.0 to 4.0.5 2026-03-23 19:08:36 +08:00
Sunli c35b055bfb docs: reindent all C++ examples to 4-space indentation 2026-03-23 19:08:36 +08:00
Sunli f3e3a88004 docs: update C++ examples for v4.0.5 synchronous context creation
Replace nested callback pattern with synchronous style:
- Old: QuoteContext::create(config, [](auto res) { res.context().method(...) })
- New: QuoteContext ctx = QuoteContext::create(config); ctx.method(...)

Extract API calls into a run() helper function following the new
SDK example convention. Updated 134 files across zh-CN, en, zh-HK.
2026-03-23 19:08:36 +08:00
Sunli 5f35581aec docs: update SDK examples for v4.0.5 context creation API changes
QuoteContext/TradeContext/ContentContext construction is now synchronous
and infallible in v4.0.5:
- Rust: try_new(config).await? -> new(config)
- Node.js: await QuoteContext.new(config) -> QuoteContext.new(config)
- Java: QuoteContext.create(config).get() -> QuoteContext.create(config)

Updated 143 files across zh-CN, en, and zh-HK docs.
2026-03-23 19:08:36 +08:00
Jason Lee 16bb6bd0fa feat: add longbridge skills, update repo URLs to longbridge/developers (#375)
## Summary

- Add `skills/longbridge` skill files covering CLI, Python/Rust SDK,
MCP, and LLM integration
- Update `npx skills add` command in `cli.md` (en/zh-CN/zh-HK) from
`longbridge/longbridge-terminal` to `longbridge/developers`
- Update project GitHub repo references from
`longbridge/developers-website` to `longbridge/developers` in
`config.mts` and `CONTRIBUTING.md`

## Test plan

- [ ] Verify skill files are accessible via `npx skills add
longbridge/developers`
- [ ] Verify "Edit this page" links in the site point to the correct
GitHub repo
- [ ] Verify CLI docs show the correct skill install command

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 17:28:46 +08:00
Sunli b9a57cf9e6 docs: update API examples across quote and trade documentation 2026-03-20 22:51:13 +08:00
Sunli 5883678913 fix: add missing tbody wrapper to quote coverage table to fix hydration warning 2026-03-20 15:19:57 +08:00
Sunli 0758eaa0c8 docs: add PowerShell tab for OAuth client registration curl commands 2026-03-20 15:18:35 +08:00
Sunli 3f04b7aeab docs: update OAuth token storage path to ~/.longbridge/openapi/tokens/ 2026-03-20 15:05:39 +08:00
Sunli e3699a0759 docs: add .cn domain endpoints for mainland China access 2026-03-20 14:58:07 +08:00
hogan 74f2f406aa Add security filings (#372)
Co-authored-by: 袁章洪 <zhanghong.yuan@longbridge-inc.com>
Co-authored-by: Jason Lee <huacnlee@gmail.com>
2026-03-20 10:59:50 +08:00
hold-baby 291a0fd908 upgrade customer service components to version 1.0.7 (#374)
Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-03-19 22:58:41 +08:00
hold-baby e1aa24caa9 upgrade customer service components to version 1.0.6 (#373)
Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-03-19 00:30:34 +08:00
hold-baby cbc95e26f5 Revert "feat: remove customer service widget (#368)" (#371)
This reverts commit 961260f85f.

Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-03-18 17:53:32 +08:00
Jason Lee f8bfa2b6ef fix footer. 2026-03-18 15:13:05 +08:00
Jason Lee 9467cdfde5 Fix assets (#370) 2026-03-18 15:00:54 +08:00
Jason Lee e7e9a2d1ba feat: Update platform name to Longbridge Developers and UI improvements (#369)
## Summary

- Rename project from "OpenAPI" to "Longbridge Developers" across all
locales, config, and docs
- Add local SVG assets for homepage features (replacing external CDN
URLs)
- **TipContainer**: replace emoji with SVG icons, Shadcn-style
border/bg/text per type using `data-type` + CSS `@apply`
- **Tabs**: improved tab styling, fix `ul`/`ol` indentation in tab
content
- **Sidebar**: active item uses brand color background (color-mix) with
rounded corners
- **Doc footer**: LLMs Text + Edit this page on same row, subdued
colors, lighter "Updated at"
- **Breadcrumb**: remove primary color
- **UserMenu**: rename Profile → Dashboard (控制台)
- **Style**: inline code color fix, blockquote updates, font
improvements

## Test plan

- [ ] Verify rename appears correctly in EN / zh-CN / zh-HK locales
- [ ] Check homepage SVGs load from `/assets/`
- [ ] Check TipContainer all 6 types render with correct
border/bg/text/icon colors in light and dark mode
- [ ] Check Tabs styling and list indentation
- [ ] Check sidebar active item background
- [ ] Check doc footer layout (LLMs Text + Edit this page same row)

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 14:35:26 +08:00
hold-baby 961260f85f feat: remove customer service widget (#368)
Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-03-18 10:08:45 +08:00
hold-baby 9391748947 feat: update support-widget version to 1.0.5 (#367)
Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-03-17 23:52:38 +08:00
hold-baby 5d4c095101 feat: 添加客服入口 support-widget (#365)
- 动态加载 support-widget 脚本
- 配置 isLoggedIn、loginUrl、chatUrl
- 处理 token 编码和 null 场景

Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-03-17 23:32:38 +08:00
Jason Lee c6a8731733 docs: add company filings commands and earnings analysis example to CLI docs (#364)
## Summary

- Add `filings` and `filing-detail` commands to the "Available
capabilities" section across all three locales (en, zh-CN, zh-HK)
- Add an earnings analysis example in the "AI integration" section
demonstrating a two-step workflow: use `filings` to discover filing IDs,
then `filing-detail` to pull full content for cross-company comparison
(TSLA vs NVDA Q4 2025)

## Test plan

- [ ] Verify the new "Company filings & announcements" section renders
correctly in all three locales
- [ ] Verify the earnings analysis example code block displays properly
- [ ] Check that table formatting renders correctly in the example
output

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 22:55:24 +08:00
Jason Lee 679706d589 docs: update brew install command to use --cask flag (#362)
## Summary

- Update brew install command to `brew install --cask` in CLI docs
(zh-CN, zh-HK, en)

Follows the migration of longbridge/homebrew-tap from Formula to Cask.

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 16:44:31 +08:00
Jason Lee 4a908652bb docs: add Longbridge Terminal CLI page (#361)
## Summary

- Add CLI documentation page (EN / zh-CN / zh-HK) for [Longbridge
Terminal](https://github.com/longbridge/longbridge-terminal), covering
installation (Homebrew + install script), OAuth authentication, full
command reference, and AI integration
- Add **CLI** nav item after MCP in all three locales
- Move LLM sidebar position to appear immediately after CLI

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 16:20:20 +08:00
hogan 77a52132e6 update news symbol (#359)
Co-authored-by: 袁章洪 <zhanghong.yuan@longbridge-inc.com>
2026-03-16 19:04:07 +08:00
Colbert Ran 5166d1613d fix wrong docs (#358) 2026-03-12 19:49:27 +08:00
Sunli 5accb00f24 docs: Longbridge SDK docs update (branding, 4.0.0, Go examples) (#356)
## Summary
- **Branding & version**: SDK 页与文档统一为 longbridge 品牌、版本 4.0.0,修正仓库与包地址
- **Getting started**: 更新 API Host、OAuth 示例与 4.0.0,修正 typo(开发中 → 开发者)
- **Request examples**: 为所有 API 请求示例补充多语言
tabs(Python/Node/Java/Rust/C++),并增加 Go SDK 示例(en / zh-CN / zh-HK)
- **Dependencies**: 更新 package.json 与 bun.lock

Made with [Cursor](https://cursor.com)
2026-03-11 11:34:49 +08:00
Endless Web 208e9206da docs: update brd.md 2026-03-05 17:23:19 +08:00
Jason Lee 50b377cee0 [Agent] 优化 MCP 服务介绍文档 (#355)
## 变更摘要

- 参考 Stripe MCP 文档风格,重写三个 locale(zh-CN、zh-HK、en)的 `docs/mcp.md`
- 将开篇由技术描述驱动改为用户价值驱动(「你可以做什么」优先于「这是什么」)
- 新增「能做什么」章节,补充查询行情、分析账户、执行交易三组具体提示词示例
- 整理各客户端接入配置,结构更清晰

## 实现细节

| 文件 | 修改原因 |
|------|---------|
| `docs/zh-CN/docs/mcp.md` | 简体中文版重写 |
| `docs/zh-HK/docs/mcp.md` | 繁体中文版同步 |
| `docs/en/docs/mcp.md` | 英文版同步 |

## Quality Checklist

- [x] 三个 locale 内容同步
- [x] 参考 Stripe 文档结构(https://docs.stripe.com/mcp)
- [x] 遵循长桥文案书写规范

---
_Generated by Endless Coding Agent (session a5817662)_

---------

Co-authored-by: Endless Agent <endless+openapi-website@longbridge.com>
Co-authored-by: Endless Agent <endless+openapi-website@endless+self-agent@longbridge.com>
Co-authored-by: Endless Agent <endless@longbridge.com>
2026-03-04 22:55:45 +08:00
Jason Lee 0aba4644e0 Add OAuth 2.0 as recommended authentication method (#351)
Updated getting-started documentation for both zh-CN and en:

**Changes:**
- Added OAuth 2.0 as the recommended authentication method (marked with
⭐)
- Moved traditional API Key method to secondary position for
compatibility
- Added OAuth registration and authorization flow examples for all SDKs
- Included OAuth benefits and security best practices
- Provided code examples for Python, JavaScript, Rust, and Java

**OAuth 2.0 Benefits:**
✅ More secure (no shared secret)
✅ Simpler integration (no signature calculation)
✅ Token-based modern authentication
✅ Better suited for modern applications

---------

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-02 20:44:20 +08:00
xiaobo-gaga 626ee312c0 Place MCP under Getting Started and add MCP top-nav entry (#354)
## Summary

- Move MCP under Getting Started in left sidebar (all locales)
  - docs/en/docs/mcp.md
  - docs/zh-CN/docs/mcp.md
  - docs/zh-HK/docs/mcp.md
- Add MCP top navigation item right after Docs (all locales)
  - docs/.vitepress/locales/en/nav.ts
  - docs/.vitepress/locales/zh-CN/nav.ts
  - docs/.vitepress/locales/zh-HK/nav.ts

## Notes

- Clean branch from main
- No unrelated changes included
2026-03-02 18:39:35 +08:00
xiaobo-gaga ac5740ddc3 Adjust MCP docs sidebar order to position 6 (#353)
## Summary

Set MCP docs  to  across all locales:

- 
- 
- 

## Notes

Clean branch from  with only this change.
2026-03-02 11:41:36 +08:00
xiaobo-gaga f297ee91fc zh-CN OAuth docs rework: OAuth2-only access guide + refresh-page de-dup (#349) 2026-03-01 12:35:43 +08:00
xiaobo-gaga 28c6746a1c Update OAuth 2 docs (#348)
This PR starts the second pass of API doc accuracy review (without
changing doc structure).

## Included in this PR
- Add verification progress log for mock-account OAuth2 testing:
  - `openapi/audit/mock-account-review-2026-03-01.md`

## What has been verified
- Quote APIs: market temperature, history market temperature, security
list
- Watchlist API: groups
- Asset APIs checked and failure modes captured for current mock-account
scope

## Next commits (same PR)
- Apply field/response corrections in docs (en/zh-CN/zh-HK) based on
verified runtime behavior
- Keep original documentation layout unchanged
2026-03-01 10:58:29 +08:00
Jason Lee 5b32bbd269 Add MCP docs. (#338)
Co-authored-by: xiaobo-gaga <huacnlee+ai-xiaobo@gmail.com>
2026-03-01 10:52:57 +08:00
Jason Lee 3d1b5eb543 Update Content to default collapsed (#347)
Co-authored-by: xiaobo-gaga <huacnlee+ai-xiaobo@gmail.com>
2026-03-01 10:30:09 +08:00
xiaobo-gaga 47139258bb Audit OAuth2 deployment and fix API docs across 3 locales (#346)
This PR performs an OAuth2/API docs audit and applies cross-locale fixes
for en / zh-CN / zh-HK.

## What was verified
- OAuth discovery endpoints are reachable:
-
`https://openapi.longportapp.com/.well-known/oauth-authorization-server`
-
`https://openapi.longbridge.xyz/.well-known/oauth-authorization-server`
(test only)
- Health endpoint works on prod/test: `/v1/test`
- Auth-required sample endpoint correctly rejects missing token:
`/v1/asset/account` -> 401

Audit report added:
- `openapi/audit/audit-summary.md`
- `openapi/audit/audit-summary.json`
- Script: `script/audit_api_docs.py`

## Docs fixes (all 3 locales)
1) Added OAuth 2.0 recommended flow to
`api-reference/how-to-access-api.md`
   - Added discovery URLs
   - Added bearer token usage
   - Clarified legacy signature docs are compatibility reference

2) Updated `api-reference/refresh-token-api.md`
- Clarified OAuth2 refresh recommendation via `/oauth2/token` +
`grant_type=refresh_token`
   - Kept legacy `/v1/token/refresh` as compatibility reference

3) Added Mintlify-style per-endpoint API listing page under API
Reference:
   - `api-reference/endpoints.md`
   - One-by-one API listing with Method + Path + doc link + Try link

4) Expanded API Reference group by default (`collapsed: false`) for
easier discovery.

## Result
- API docs are now clearer about OAuth2 deployment status.
- API listing/discoverability is significantly improved.
- Cross-locale consistency for documented HTTP APIs is verified (0
parity gaps found).
2026-03-01 10:23:09 +08:00
hogan 286becf5c2 add security news (#345) 2026-02-28 15:57:20 +08:00
xiaobo-gaga 4de3e304d7 Add LLM docs for longbridge.com markdown access (#344)
This PR adds an LLM-focused documentation section explaining AI-friendly
Markdown access for pages on `longbridge.com`.

## Added
- New section in LLM docs (en / zh-CN / zh-HK):
  - `docs/en/docs/llm.md`
  - `docs/zh-CN/docs/llm.md`
  - `docs/zh-HK/docs/llm.md`

## Content
- `longbridge.com` pages can be retrieved as Markdown via:
  1. URL suffix `.md`
  2. Header `Accept: text/markdown`
- Includes practical examples for LLM crawlers / RAG ingestion.
2026-02-27 19:26:50 +08:00
xiaobo-gaga 3ae3dcc17d Revert accidentally merged commit 01d9605 (#341)
This PR reverts commit 01d9605 ("Add detailed MCP docs and nav entries
for en/zh-CN/zh-HK"), which was merged to main by mistake.
2026-02-27 17:33:29 +08:00
xiaobo-gaga 01d9605eeb Add detailed MCP docs and nav entries for en/zh-CN/zh-HK 2026-02-27 16:11:56 +08:00
ihavecoke 1cf8b57023 Update logo assets 2026-02-15 11:11:13 +08:00
Shine Xia 86fd5f3a7e Add submit parameters: limit_depth_level, trigger_count, monitor_price (#337) 2026-01-14 19:01:15 +08:00
Sunli da97d8100c update examples 2025-12-12 14:10:22 +08:00
袁昌瑞 5e5fef0d88 feat: 调整 logo 跳转地址 2025-11-21 19:00:00 +08:00
袁昌瑞 24884150cc feat: 调整 canonical 2025-11-21 19:00:00 +08:00