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 21 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 21 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?;

@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
@hogan-yuan hogan-yuan force-pushed the docs/macroeconomic branch from 69ae0e1 to 8ea3f5a Compare June 13, 2026 03:37
hogan-yuan and others added 6 commits June 13, 2026 12:23
…ove v2 internal section

Remove unmapped v2 fields (source_org, adjustment_factor, category, start_date from info; revised_value, next_release_at, unit, unit_prefix from data points), fix country value to shorthand code ("US"), and delete the macroeconomic_v2 section which covers internal pub(crate) methods not intended for user docs. Applied consistently across en, zh-CN, and zh-HK.
…m, fix country abbreviations, clean response example

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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