Skip to content

docs: add macrodata SDK + CLI + MCP docs (SDK v4.3.1, CLI v0.24.0)#1085

Open
hogan-yuan wants to merge 14 commits into
mainfrom
docs/macroeconomic
Open

docs: add macrodata SDK + CLI + MCP docs (SDK v4.3.1, CLI v0.24.0)#1085
hogan-yuan wants to merge 14 commits into
mainfrom
docs/macroeconomic

Conversation

@hogan-yuan

@hogan-yuan hogan-yuan commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

新增宏观经济数据相关文档,三语言(en / zh-CN / zh-HK)同步。

SDK docs(docs/{lang}/docs/fundamental/fundamental/

  • 新增 macroeconomic-indicators.mdmacroeconomic_indicators / macroeconomic_indicators_v2 方法
  • 新增 macroeconomic.mdmacroeconomic / macroeconomic_v2 方法
  • Schema 修正:namedescribeunitunit_prefix 类型 MultiLanguageTextstring(v2 breaking change)

CLI docs(docs/{lang}/docs/cli/fundamentals/

  • 新增 macrodata.mdlongbridge macrodata 命令,含 --country--keyword--lang--start/--end--limit--page--format

MCP docs

  • mcp.md 三语言 capabilities 表格追加「宏观经济指标」

Changelog & Release Notes

  • changelog.md 追加 2026-06-11 条目(SDK v4.3.1 + CLI v0.24.0)
  • cli/release-notes.md 追加 v0.24.0 条目

Notes

🤖 Generated with Claude Code

```python
from longbridge.openapi import FundamentalContext, Config, OAuthBuilder

oauth = OAuthBuilder("your-client-id").build(lambda url: print("請訪問:", url))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶

Suggested change
oauth = OAuthBuilder("your-client-id").build(lambda url: print("請訪問:", url))
oauth = OAuthBuilder("your-client-id").build(lambda url: print("請訪問", url))


#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("請訪問: {url}")).await?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶

Suggested change
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("請訪問: {url}")).await?;
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("請訪問{url}")).await?;

```python
from longbridge.openapi import FundamentalContext, Config, OAuthBuilder, MacroeconomicCountry

oauth = OAuthBuilder("your-client-id").build(lambda url: print("請訪問:", url))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶

Suggested change
oauth = OAuthBuilder("your-client-id").build(lambda url: print("請訪問:", url))
oauth = OAuthBuilder("your-client-id").build(lambda url: print("請訪問", url))


#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("請訪問: {url}")).await?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶

Suggested change
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("請訪問: {url}")).await?;
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("請訪問{url}")).await?;

```python
from longbridge.openapi import FundamentalContext, Config, OAuthBuilder

oauth = OAuthBuilder("your-client-id").build(lambda url: print("请访问:", url))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶

Suggested change
oauth = OAuthBuilder("your-client-id").build(lambda url: print("请访问:", url))
oauth = OAuthBuilder("your-client-id").build(lambda url: print("请访问", url))


#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("请访问: {url}")).await?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶

Suggested change
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("请访问: {url}")).await?;
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("请访问{url}")).await?;

```python
from longbridge.openapi import FundamentalContext, Config, OAuthBuilder, MacroeconomicCountry

oauth = OAuthBuilder("your-client-id").build(lambda url: print("请访问:", url))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶

Suggested change
oauth = OAuthBuilder("your-client-id").build(lambda url: print("请访问:", url))
oauth = OAuthBuilder("your-client-id").build(lambda url: print("请访问", url))


#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("请访问: {url}")).await?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶

Suggested change
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("请访问: {url}")).await?;
let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("请访问{url}")).await?;

- Replace US00175 → 62267 everywhere
- CLI: add --lang flag, fix --limit default to 20
- SDK: fix name/describe/unit/unit_prefix MultiLanguageText → string
- SDK: add macroeconomic_indicators_v2 (keyword param) and macroeconomic_v2 (sort param)
- MCP: add macroeconomic indicators to capabilities table (3 langs)
@hogan-yuan hogan-yuan changed the title docs: add macroeconomic indicators SDK + CLI docs (SDK v4.3.1) docs: add macrodata SDK + CLI + MCP docs (SDK v4.3.1, CLI v0.24.0) Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant