docs: add macrodata SDK + CLI + MCP docs (SDK v4.3.1, CLI v0.24.0)#1085
docs: add macrodata SDK + CLI + MCP docs (SDK v4.3.1, CLI v0.24.0)#1085hogan-yuan wants to merge 14 commits into
Conversation
| ```python | ||
| from longbridge.openapi import FundamentalContext, Config, OAuthBuilder | ||
|
|
||
| oauth = OAuthBuilder("your-client-id").build(lambda url: print("請訪問:", url)) |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| 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?; |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| 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)) |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| 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?; |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| 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)) |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| 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?; |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| 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)) |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| 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?; |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| 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)
Summary
新增宏观经济数据相关文档,三语言(en / zh-CN / zh-HK)同步。
SDK docs(
docs/{lang}/docs/fundamental/fundamental/)macroeconomic-indicators.md—macroeconomic_indicators/macroeconomic_indicators_v2方法macroeconomic.md—macroeconomic/macroeconomic_v2方法name、describe、unit、unit_prefix类型MultiLanguageText→string(v2 breaking change)CLI docs(
docs/{lang}/docs/cli/fundamentals/)macrodata.md—longbridge macrodata命令,含--country、--keyword、--lang、--start/--end、--limit、--page、--formatMCP 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