diff --git a/docs/en/docs/changelog.md b/docs/en/docs/changelog.md index 675ad7f5..d894217b 100644 --- a/docs/en/docs/changelog.md +++ b/docs/en/docs/changelog.md @@ -6,6 +6,18 @@ sidebar_position: 7 sidebar_icon: newspaper --- +## 2026-06-13 + +### SDK v4.3.2 + +- **Macroeconomic indicators** — Two new `FundamentalContext` methods: `macroeconomic_indicators` lists all indicators (filter by country, keyword search), `macroeconomic` returns historical release data (actual / forecast / previous values) for a given indicator code + +## 2026-06-11 + +### CLI v0.24.0 + +- **New `macrodata` command** — Browse 400+ macro indicators across US/HK/CN/EU/JP/SG and query historical release data with actual, forecast, previous, and revised values; supports `--country`, `--keyword`, `--lang`, `--start`, `--end`, `--limit`, `--page`, `--format json` + ## 2026-06-04 ### CLI v0.22.4 diff --git a/docs/en/docs/cli/fundamentals/finance-calendar.md b/docs/en/docs/cli/fundamentals/finance-calendar.md index 0b478b1d..603ddaa9 100644 --- a/docs/en/docs/cli/fundamentals/finance-calendar.md +++ b/docs/en/docs/cli/fundamentals/finance-calendar.md @@ -6,7 +6,7 @@ sidebar_position: 6 # longbridge finance-calendar -Browse upcoming financial events — earnings reports, dividend payments, stock splits, IPOs, and macroeconomic releases — filtered by symbol, watchlist, market, or event type. +Browse upcoming financial events — earnings reports, dividend payments, stock splits, IPOs, and macrodata releases — filtered by symbol, watchlist, market, or event type. ## Subcommands @@ -16,7 +16,7 @@ Browse upcoming financial events — earnings reports, dividend payments, stock | `dividend` | Dividend announcements | | `split` | Stock splits and merges | | `ipo` | IPO listings | -| `macrodata` | Macroeconomic data releases | +| `macrodata` | Macrodata releases | | `closed` | Market closure days | ## Examples @@ -59,7 +59,7 @@ Shows both split and merge events for Hong Kong-listed stocks. longbridge finance-calendar macrodata --star 3 ``` -Filters macroeconomic events to only show high-importance releases (3-star). Covers data like CPI, NFP, Fed rate decisions, and similar market-moving events. +Filters macrodata events to only show high-importance releases (3-star). Covers data like CPI, NFP, Fed rate decisions, and similar market-moving events. ### IPO calendar diff --git a/docs/en/docs/cli/fundamentals/macrodata.md b/docs/en/docs/cli/fundamentals/macrodata.md new file mode 100644 index 00000000..c834a9d1 --- /dev/null +++ b/docs/en/docs/cli/fundamentals/macrodata.md @@ -0,0 +1,98 @@ +--- +title: 'macrodata' +sidebar_label: 'macrodata' +sidebar_position: 20 +--- + +# longbridge macrodata + +Browse macrodata indicators and their historical release data — covering US, HK, CN, EU, JP, and SG markets. + +## Modes + +| Mode | Usage | Description | +| ---- | ----- | ----------- | +| List | `longbridge macrodata` | List all available indicators | +| History | `longbridge macrodata ` | Historical releases for one indicator | + +## Examples + +### List all indicators + +```bash +longbridge macrodata +``` + +``` +Total: 619 +Code Name Category Country Frequency Source +62267 Non-Farm Payroll Employment US Monthly Bureau of Labor Statistics +... +``` + +### Filter by country + +```bash +longbridge macrodata --country US +longbridge macrodata --country HK +longbridge macrodata --country CN +``` + +Supported country codes: `HK`, `CN`, `US`, `EU`, `JP`, `SG`. + +### Search by keyword + +```bash +longbridge macrodata --keyword CPI +longbridge macrodata --keyword CPI --country US +``` + +### Paginate the list + +```bash +longbridge macrodata --country US --limit 50 --page 2 +``` + +### Historical releases for a specific indicator + +```bash +longbridge macrodata 62267 +``` + +``` +Non-Farm Payroll [Employment | Bureau of Labor Statistics · Monthly] + +Period Actual Forecast Previous Revised Unit +2026-05-01 272000 250000 265000 263500 Thousand +2026-04-01 228000 137000 228000 228000 Thousand +... +``` + +### Filter history by date range + +```bash +longbridge macrodata 62267 --start 2024-01-01 --end 2024-12-31 +``` + +### JSON output for AI / scripting + +```bash +# List as JSON +longbridge macrodata --format json + +# History as JSON +longbridge macrodata 62267 --format json +``` + +## Options + +| Option | Description | Default | +| ------ | ----------- | ------- | +| `--country` | Filter list: `HK` \| `CN` \| `US` \| `EU` \| `JP` \| `SG` | All | +| `--keyword` | Filter list by indicator name (fuzzy, list mode only) | — | +| `--start` | History start date `YYYY-MM-DD` | — | +| `--end` | History end date `YYYY-MM-DD` | — | +| `--lang` | Language for names/descriptions: `zh-CN` \| `zh-HK` \| `en` | — | +| `--limit` | Max records per page (list: max 1000, history: max 100) | 20 | +| `--page` | Page number, 1-based | 1 | +| `--format` | `table` or `json` | `table` | diff --git a/docs/en/docs/cli/release-notes.md b/docs/en/docs/cli/release-notes.md index f3fd75bb..35e12bf0 100644 --- a/docs/en/docs/cli/release-notes.md +++ b/docs/en/docs/cli/release-notes.md @@ -7,6 +7,10 @@ sidebar_icon: newspaper # Release Notes +### [v0.24.0](https://github.com/longbridge/longbridge-terminal/releases/tag/v0.24.0) + +- **New `macrodata` command** — Browse 400+ macrodata indicators across US/HK/CN/EU/JP/SG; list mode with optional `--country` filter, history mode for a specific indicator code with `--start`/`--end` date range; `--format json` for AI/scripting workflows + ### [v0.22.4](https://github.com/longbridge/longbridge-terminal/releases/tag/v0.22.4) - **`constituent` now supports ETFs** — ETF symbols return an asset-allocation breakdown (holdings / regional / asset-class / industry tables); index symbols behave exactly as before diff --git a/docs/en/docs/fundamental/fundamental/macroeconomic-indicators.md b/docs/en/docs/fundamental/fundamental/macroeconomic-indicators.md new file mode 100644 index 00000000..24c6eb80 --- /dev/null +++ b/docs/en/docs/fundamental/fundamental/macroeconomic-indicators.md @@ -0,0 +1,196 @@ +--- +slug: macroeconomic-indicators +title: Macroeconomic Indicators +sidebar_position: 20 +language_tabs: false +toc_footers: [] +includes: [] +search: true +highlight_theme: '' +headingLevel: 2 +--- + +List macroeconomic indicators available through Longbridge, optionally filtered by country. + + +# List all indicators +longbridge macrodata +# Filter by US indicators +longbridge macrodata --country US + + + + +## Parameters + +> **SDK method parameters.** + +| Name | Type | Required | Description | +| ---- | ---- | -------- | ----------- | +| country | MacroeconomicCountry | NO | Filter by country. Omit for all countries. | +| keyword | string | NO | Fuzzy search by indicator name (case-insensitive) | +| offset | int | NO | Pagination offset. Default: 0 | +| limit | int | NO | Max records per page. Default: 100, max: 1000 | + +### MacroeconomicCountry + +| Value | Country | +| ----- | ------- | +| HK | Hong Kong SAR | +| CN | China (Mainland) | +| US | United States | +| EU | Euro Zone | +| JP | Japan | +| SG | Singapore | + +## Request Example + + + + +```python +from longbridge.openapi import FundamentalContext, Config, OAuthBuilder, MacroeconomicCountry + +oauth = OAuthBuilder("your-client-id").build(lambda url: print("Visit:", url)) +config = Config.from_oauth(oauth) +ctx = FundamentalContext(config) + +# All indicators +resp = ctx.macroeconomic_indicators() +print(resp) + +# US only +resp = ctx.macroeconomic_indicators(country=MacroeconomicCountry.UnitedStates, limit=50) +print(resp) + +# Search by keyword +resp = ctx.macroeconomic_indicators(keyword="payroll") +print(resp) +``` + + + + +```python +import asyncio +from longbridge.openapi import AsyncFundamentalContext, Config, OAuthBuilder, MacroeconomicCountry + +async def main() -> None: + oauth = await OAuthBuilder("your-client-id").build_async(lambda url: print("Visit:", url)) + config = Config.from_oauth(oauth) + ctx = AsyncFundamentalContext.create(config) + resp = await ctx.macroeconomic_indicators(country=MacroeconomicCountry.UnitedStates) + print(resp) + +if __name__ == "__main__": + asyncio.run(main()) +``` + + + + +```javascript +const { Config, FundamentalContext, OAuth, MacroeconomicCountry } = require('longbridge') + +async function main() { + const oauth = await OAuth.build('your-client-id', (_, url) => { + console.log('Open this URL to authorize: ' + url) + }) + const config = Config.fromOAuth(oauth) + const ctx = FundamentalContext.new(config) + const resp = await ctx.macroeconomicIndicators({ country: MacroeconomicCountry.UnitedStates }) + console.log(resp) +} +main().catch(console.error) +``` + + + + +```java +import com.longbridge.*; +import com.longbridge.fundamental.*; + +class Main { + public static void main(String[] args) throws Exception { + try (OAuth oauth = new OAuthBuilder("your-client-id").build(url -> System.out.println("Open to authorize: " + url)).get(); + Config config = Config.fromOAuth(oauth); + FundamentalContext ctx = FundamentalContext.create(config)) { + var resp = ctx.getMacroeconomicIndicators(null, null, null).get(); + System.out.println(resp); + } + } +} +``` + + + + +```rust +use std::sync::Arc; +use longbridge::{oauth::OAuthBuilder, fundamental::FundamentalContext, Config}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("Open: {url}")).await?; + let config = Arc::new(Config::from_oauth(oauth)); + let ctx = FundamentalContext::new(config); + let resp = ctx.macroeconomic_indicators(None, None, None).await?; + println!("{:?}", resp); + Ok(()) +} +``` + + + + +## Response + +### Response Example + +```json +{ + "count": 619, + "list": [ + { + "indicator_code": "62267", + "country": "US", + "name": "Non-Farm Payroll", + "periodicity": "Monthly", + "describe": "Employment situation report...", + "importance": 3 + } + ] +} +``` + +### Response Status + +| Status | Description | Schema | +| ------ | ----------- | ------ | +| 200 | Success | [MacroeconomicIndicatorListResponse](#MacroeconomicIndicatorListResponse) | +| 400 | Bad request | None | + +## Schemas + +### MacroeconomicIndicatorListResponse + + + +| Name | Type | Required | Description | +| ---- | ---- | -------- | ----------- | +| list | MacroeconomicIndicator[] | true | Indicator list | +| count | int | true | Total number of matching indicators | + +### MacroeconomicIndicator + + + +| Name | Type | Required | Description | +| ---- | ---- | -------- | ----------- | +| indicator_code | string | true | Indicator code (use as input to `macroeconomic`) | +| country | string | true | Country name | +| name | string | true | Indicator name | +| periodicity | string | true | Release periodicity (e.g. `Monthly`, `Quarterly`) | +| describe | string | true | Indicator description | +| importance | int | true | Importance level (1 = Low, 2 = Medium, 3 = High) | diff --git a/docs/en/docs/fundamental/fundamental/macroeconomic.md b/docs/en/docs/fundamental/fundamental/macroeconomic.md new file mode 100644 index 00000000..d66b63fd --- /dev/null +++ b/docs/en/docs/fundamental/fundamental/macroeconomic.md @@ -0,0 +1,184 @@ +--- +slug: macroeconomic +title: Macroeconomic Historical Data +sidebar_position: 21 +language_tabs: false +toc_footers: [] +includes: [] +search: true +highlight_theme: '' +headingLevel: 2 +--- + +Get historical releases for a specific macroeconomic indicator — actual values, forecasts, previous values, and next release dates. + + +# Historical data for Non-Farm Payroll +longbridge macrodata 62267 +# Date range filter +longbridge macrodata 62267 --start 2024-01-01 --end 2024-12-31 + + + + +## Parameters + +> **SDK method parameters.** + +| Name | Type | Required | Description | +| ---- | ---- | -------- | ----------- | +| indicator_code | string | YES | Indicator code from `macroeconomic_indicators` | +| start_date | string | NO | Start date in `YYYY-MM-DD` format | +| end_date | string | NO | End date in `YYYY-MM-DD` format | +| offset | int | NO | Pagination offset. Default: 0 | +| limit | int | NO | Max records. Default: 100, max: 100 | + +## Request Example + + + + +```python +from longbridge.openapi import FundamentalContext, Config, OAuthBuilder + +oauth = OAuthBuilder("your-client-id").build(lambda url: print("Visit:", url)) +config = Config.from_oauth(oauth) +ctx = FundamentalContext(config) + +resp = ctx.macroeconomic("62267", start_date="2024-01-01", end_date="2024-12-31") +print(resp) +``` + + + + +```python +import asyncio +from longbridge.openapi import AsyncFundamentalContext, Config, OAuthBuilder + +async def main() -> None: + oauth = await OAuthBuilder("your-client-id").build_async(lambda url: print("Visit:", url)) + config = Config.from_oauth(oauth) + ctx = AsyncFundamentalContext.create(config) + resp = await ctx.macroeconomic("62267", start_date="2024-01-01", end_date="2024-12-31") + print(resp) + +if __name__ == "__main__": + asyncio.run(main()) +``` + + + + +```javascript +const { Config, FundamentalContext, OAuth } = require('longbridge') + +async function main() { + const oauth = await OAuth.build('your-client-id', (_, url) => { + console.log('Open this URL to authorize: ' + url) + }) + const config = Config.fromOAuth(oauth) + const ctx = FundamentalContext.new(config) + const resp = await ctx.macroeconomic('62267', { startDate: '2024-01-01', endDate: '2024-12-31' }) + console.log(resp) +} +main().catch(console.error) +``` + + + + +```java +import com.longbridge.*; +import com.longbridge.fundamental.*; + +class Main { + public static void main(String[] args) throws Exception { + try (OAuth oauth = new OAuthBuilder("your-client-id").build(url -> System.out.println("Open to authorize: " + url)).get(); + Config config = Config.fromOAuth(oauth); + FundamentalContext ctx = FundamentalContext.create(config)) { + var resp = ctx.getMacroeconomic("62267", "2024-01-01", "2024-12-31", null, null).get(); + System.out.println(resp); + } + } +} +``` + + + + +```rust +use std::sync::Arc; +use longbridge::{oauth::OAuthBuilder, fundamental::FundamentalContext, Config}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("Open: {url}")).await?; + let config = Arc::new(Config::from_oauth(oauth)); + let ctx = FundamentalContext::new(config); + let resp = ctx.macroeconomic("62267", Some("2024-01-01"), Some("2024-12-31"), None, None).await?; + println!("{:?}", resp); + Ok(()) +} +``` + + + + +## Response + +### Response Example + +```json +{ + "count": 24, + "info": { + "indicator_code": "62267", + "country": "US", + "name": "Non-Farm Payroll", + "periodicity": "Monthly", + "describe": "...", + "importance": 3 + }, + "data": [ + { + "period": "2024-12-01", + "release_at": 1735900200, + "actual_value": "256000", + "previous_value": "212000", + "forecast_value": "165000" + } + ] +} +``` + +### Response Status + +| Status | Description | Schema | +| ------ | ----------- | ------ | +| 200 | Success | [MacroeconomicResponse](#MacroeconomicResponse) | +| 400 | Bad request | None | + +## Schemas + +### MacroeconomicResponse + + + +| Name | Type | Required | Description | +| ---- | ---- | -------- | ----------- | +| info | MacroeconomicIndicator | true | Indicator metadata | +| data | Macroeconomic[] | true | Historical data points | +| count | int | true | Total number of data points | + +### Macroeconomic + + + +| Name | Type | Required | Description | +| ---- | ---- | -------- | ----------- | +| period | string | true | Statistical period (e.g. `2024-12-01`, `2024-Q4`) | +| release_at | int | false | Unix timestamp of release datetime | +| actual_value | string | true | Actual released value | +| previous_value | string | true | Previous period value | +| forecast_value | string | true | Market consensus forecast | diff --git a/docs/en/docs/mcp.md b/docs/en/docs/mcp.md index cf6fda0a..0146041f 100644 --- a/docs/en/docs/mcp.md +++ b/docs/en/docs/mcp.md @@ -21,14 +21,14 @@ Longbridge provides a hosted HTTP MCP (Model Context Protocol) service that lets Longbridge MCP exposes 100+ tools across six capability areas. Your client discovers them automatically on connect — no manual configuration. -| Capability | Coverage | -| --------------------------- | ------------------------------------------------------------------------- | -| **Real-time market data** | Quotes, candlesticks, depth, broker queues, trades, intraday capital flow | -| **Fundamentals & research** | Company profiles, dividends, valuations, executive holdings, A/H premium | -| **Derivatives** | Option chains, warrant filters, issuers, warrant quotes | -| **Account & portfolio** | Balances, positions, cash flow, watchlists and groups | -| **Trading** | Place / modify / cancel orders, estimate max purchase quantity | -| **Automation** | Price alerts, scheduled DCA (dollar-cost averaging) plans | +| Capability | Coverage | +| --------------------------- | -------------------------------------------------------------------------------------------------- | +| **Real-time market data** | Quotes, candlesticks, depth, broker queues, trades, intraday capital flow | +| **Fundamentals & research** | Company profiles, dividends, valuations, executive holdings, A/H premium, macroeconomic indicators | +| **Derivatives** | Option chains, warrant filters, issuers, warrant quotes | +| **Account & portfolio** | Balances, positions, cash flow, watchlists and groups | +| **Trading** | Place / modify / cancel orders, estimate max purchase quantity | +| **Automation** | Price alerts, scheduled DCA (dollar-cost averaging) plans | Actual tool availability depends on your region, account level, and granted OAuth scopes. diff --git a/docs/zh-CN/docs/changelog.md b/docs/zh-CN/docs/changelog.md index 798cc2a9..b698b48d 100644 --- a/docs/zh-CN/docs/changelog.md +++ b/docs/zh-CN/docs/changelog.md @@ -6,6 +6,18 @@ sidebar_position: 7 sidebar_icon: newspaper --- +## 2026-06-13 + +### SDK v4.3.2 + +- **宏观经济数据接口** — 新增两个 `FundamentalContext` 方法:`macroeconomic_indicators` 列出全部指标(支持按国家筛选、关键词搜索),`macroeconomic` 查询指定指标的历史发布数据(实际值/预期值/前值) + +## 2026-06-11 + +### CLI v0.24.0 + +- **新增 `macrodata` 命令** — 浏览 400+ 宏观指标(覆盖美/港/中/欧/日/新)并查询历史发布数据;支持 `--country`、`--keyword`、`--lang`、`--start`、`--end`、`--limit`、`--page`、`--format json` + ## 2026-06-04 ### CLI v0.22.4 diff --git a/docs/zh-CN/docs/cli/fundamentals/finance-calendar.md b/docs/zh-CN/docs/cli/fundamentals/finance-calendar.md index 47e45bb8..20e89e11 100644 --- a/docs/zh-CN/docs/cli/fundamentals/finance-calendar.md +++ b/docs/zh-CN/docs/cli/fundamentals/finance-calendar.md @@ -6,7 +6,7 @@ sidebar_position: 6 # longbridge finance-calendar -浏览即将到来的财经事件——财报发布、股息派发、拆合股、IPO 及宏观经济数据,支持按标的、自选股、市场或事件类型过滤。 +浏览即将到来的财经事件——财报发布、股息派发、拆合股、IPO 及宏观数据,支持按标的、自选股、市场或事件类型过滤。 ## 子命令 @@ -16,7 +16,7 @@ sidebar_position: 6 | `dividend` | 股息公告 | | `split` | 拆股与合股 | | `ipo` | IPO 上市 | -| `macrodata` | 宏观经济数据发布 | +| `macrodata` | 宏观数据发布 | | `closed` | 市场休市日 | ## 示例 @@ -59,7 +59,7 @@ longbridge finance-calendar split --market HK longbridge finance-calendar macrodata --star 3 ``` -只显示高重要性宏观经济数据发布(三星级),涵盖 CPI、非农就业、美联储利率决议等市场重要事件。 +只显示高重要性宏观数据发布(三星级),涵盖 CPI、非农就业、美联储利率决议等市场重要事件。 ### IPO 日历 diff --git a/docs/zh-CN/docs/cli/fundamentals/macrodata.md b/docs/zh-CN/docs/cli/fundamentals/macrodata.md new file mode 100644 index 00000000..0fdd8de6 --- /dev/null +++ b/docs/zh-CN/docs/cli/fundamentals/macrodata.md @@ -0,0 +1,95 @@ +--- +title: 'macrodata' +sidebar_label: 'macrodata' +sidebar_position: 20 +--- + +# longbridge macrodata + +浏览宏观数据指标及其历史发布数据,覆盖美国、香港、中国大陆、欧元区、日本和新加坡市场。 + +## 模式 + +| 模式 | 用法 | 描述 | +| ---- | ---- | ---- | +| 列表 | `longbridge macrodata` | 列出全部可用指标 | +| 历史 | `longbridge macrodata ` | 查询指定指标的历史数据 | + +## 示例 + +### 列出全部指标 + +```bash +longbridge macrodata +``` + +``` +Total: 619 +Code Name Category Country Frequency Source +62267 非农就业人数 Employment US Monthly Bureau of Labor Statistics +... +``` + +### 按国家/地区筛选 + +```bash +longbridge macrodata --country US +longbridge macrodata --country HK +longbridge macrodata --country CN +``` + +支持的国家代码:`HK`、`CN`、`US`、`EU`、`JP`、`SG`。 + +### 按关键词搜索 + +```bash +longbridge macrodata --keyword CPI +longbridge macrodata --keyword CPI --country US +``` + +### 分页查看 + +```bash +longbridge macrodata --country US --limit 50 --page 2 +``` + +### 查看某个指标的历史发布数据 + +```bash +longbridge macrodata 62267 +``` + +``` +Non-Farm Payroll [Employment | Bureau of Labor Statistics · Monthly] + +Period Actual Forecast Previous Revised Unit +2026-05-01 272000 250000 265000 263500 Thousand +2026-04-01 228000 137000 228000 228000 Thousand +... +``` + +### 按日期范围筛选历史数据 + +```bash +longbridge macrodata 62267 --start 2024-01-01 --end 2024-12-31 +``` + +### JSON 输出(适合 AI / 脚本) + +```bash +longbridge macrodata --format json +longbridge macrodata 62267 --format json +``` + +## 选项 + +| 选项 | 描述 | 默认值 | +| ---- | ---- | ------ | +| `--country` | 筛选列表:`HK` \| `CN` \| `US` \| `EU` \| `JP` \| `SG` | 全部 | +| `--keyword` | 按指标名称筛选(模糊匹配,仅列表模式) | — | +| `--start` | 历史开始日期 `YYYY-MM-DD` | — | +| `--end` | 历史结束日期 `YYYY-MM-DD` | — | +| `--lang` | 名称/描述语言:`zh-CN` \| `zh-HK` \| `en` | — | +| `--limit` | 每页最大条数(列表最大 1000,历史最大 100) | 20 | +| `--page` | 页码,从 1 开始 | 1 | +| `--format` | `table` 或 `json` | `table` | diff --git a/docs/zh-CN/docs/cli/release-notes.md b/docs/zh-CN/docs/cli/release-notes.md index ef9a1f40..fcd7b072 100644 --- a/docs/zh-CN/docs/cli/release-notes.md +++ b/docs/zh-CN/docs/cli/release-notes.md @@ -7,6 +7,10 @@ sidebar_icon: newspaper # Release Notes +### [v0.24.0](https://github.com/longbridge/longbridge-terminal/releases/tag/v0.24.0) + +- **新增 `macrodata` 命令** — 浏览 400+ 宏观数据指标,覆盖美/港/中/欧/日/新六大市场;列表模式支持 `--country` 筛选,历史模式支持 `--start`/`--end` 日期区间;`--format json` 满足 AI / 脚本需求 + ### [v0.22.4](https://github.com/longbridge/longbridge-terminal/releases/tag/v0.22.4) - **`constituent` 支持 ETF** — ETF 标的现返回资产分布数据(持仓 / 地区 / 资产类别 / 行业四组表格);指数标的行为完全不变 diff --git a/docs/zh-CN/docs/fundamental/fundamental/macroeconomic-indicators.md b/docs/zh-CN/docs/fundamental/fundamental/macroeconomic-indicators.md new file mode 100644 index 00000000..7116e5fe --- /dev/null +++ b/docs/zh-CN/docs/fundamental/fundamental/macroeconomic-indicators.md @@ -0,0 +1,140 @@ +--- +slug: macroeconomic-indicators +title: 宏观经济指标列表 +sidebar_position: 20 +language_tabs: false +toc_footers: [] +includes: [] +search: true +highlight_theme: '' +headingLevel: 2 +--- + +列出 Longbridge 支持的宏观经济指标,可按国家/地区筛选。 + + +# 列出全部指标 +longbridge macrodata +# 筛选美国指标 +longbridge macrodata --country US + + + + +## 参数 + +> **SDK 方法参数。** + +| 名称 | 类型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| country | MacroeconomicCountry | 否 | 按国家/地区筛选。不填返回全部。 | +| keyword | string | 否 | 按指标名称模糊搜索(不区分大小写) | +| offset | int | 否 | 分页偏移量,默认 0 | +| limit | int | 否 | 每页最大条数,默认 100,最大 1000 | + +### MacroeconomicCountry + +| 枚举值 | 国家/地区 | +| ------ | --------- | +| HK | 香港 | +| CN | 中国大陆 | +| US | 美国 | +| EU | 欧元区 | +| JP | 日本 | +| SG | 新加坡 | + +## 请求示例 + + + + +```python +from longbridge.openapi import FundamentalContext, Config, OAuthBuilder, MacroeconomicCountry + +oauth = OAuthBuilder("your-client-id").build(lambda url: print("请访问:", url)) +config = Config.from_oauth(oauth) +ctx = FundamentalContext(config) + +resp = ctx.macroeconomic_indicators(country=MacroeconomicCountry.UnitedStates, limit=50) +print(resp) +``` + + + + +```javascript +const { Config, FundamentalContext, OAuth, MacroeconomicCountry } = require('longbridge') + +async function main() { + const oauth = await OAuth.build('your-client-id', (_, url) => { + console.log('请访问此 URL 授权:' + url) + }) + const config = Config.fromOAuth(oauth) + const ctx = FundamentalContext.new(config) + const resp = await ctx.macroeconomicIndicators({ country: MacroeconomicCountry.UnitedStates }) + console.log(resp) +} +main().catch(console.error) +``` + + + + +```rust +use std::sync::Arc; +use longbridge::{oauth::OAuthBuilder, fundamental::FundamentalContext, Config}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("请访问:{url}")).await?; + let config = Arc::new(Config::from_oauth(oauth)); + let ctx = FundamentalContext::new(config); + let resp = ctx.macroeconomic_indicators(None, None, None).await?; + println!("{:?}", resp); + Ok(()) +} +``` + + + + +## 响应 + +### 响应示例 + +```json +{ + "count": 619, + "list": [ + { + "indicator_code": "62267", + "country": "US", + "name": "Non-Farm Payroll", + "periodicity": "Monthly", + "describe": "Employment situation report...", + "importance": 3 + } + ] +} +``` + +## 数据结构 + +### MacroeconomicIndicatorListResponse + +| 字段 | 类型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| list | MacroeconomicIndicator[] | 是 | 指标列表 | +| count | int | 是 | 满足条件的指标总数 | + +### MacroeconomicIndicator + +| 字段 | 类型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| indicator_code | string | 是 | 指标代码(用于 `macroeconomic` 查询) | +| country | string | 是 | 国家/地区名称 | +| name | string | 是 | 指标名称 | +| periodicity | string | 是 | 发布频率(如 `Monthly`、`Quarterly`) | +| describe | string | 是 | 指标说明 | +| importance | int | 是 | 重要性(1=低、2=中、3=高) | + diff --git a/docs/zh-CN/docs/fundamental/fundamental/macroeconomic.md b/docs/zh-CN/docs/fundamental/fundamental/macroeconomic.md new file mode 100644 index 00000000..7280a5a6 --- /dev/null +++ b/docs/zh-CN/docs/fundamental/fundamental/macroeconomic.md @@ -0,0 +1,136 @@ +--- +slug: macroeconomic +title: 宏观经济历史数据 +sidebar_position: 21 +language_tabs: false +toc_footers: [] +includes: [] +search: true +highlight_theme: '' +headingLevel: 2 +--- + +获取指定宏观经济指标的历史发布数据,包括实际值、预测值、前值和下次发布时间。 + + +# 查询非农就业人数历史数据 +longbridge macrodata 62267 +# 指定日期范围 +longbridge macrodata 62267 --start 2024-01-01 --end 2024-12-31 + + + + +## 参数 + +> **SDK 方法参数。** + +| 名称 | 类型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| indicator_code | string | 是 | 指标代码,来自 `macroeconomic_indicators` | +| start_date | string | 否 | 开始日期,格式 `YYYY-MM-DD` | +| end_date | string | 否 | 结束日期,格式 `YYYY-MM-DD` | +| offset | int | 否 | 分页偏移量,默认 0 | +| limit | int | 否 | 最大返回条数,默认 100,最大 100 | + +## 请求示例 + + + + +```python +from longbridge.openapi import FundamentalContext, Config, OAuthBuilder + +oauth = OAuthBuilder("your-client-id").build(lambda url: print("请访问:", url)) +config = Config.from_oauth(oauth) +ctx = FundamentalContext(config) + +resp = ctx.macroeconomic("62267", start_date="2024-01-01", end_date="2024-12-31") +print(resp) +``` + + + + +```javascript +const { Config, FundamentalContext, OAuth } = require('longbridge') + +async function main() { + const oauth = await OAuth.build('your-client-id', (_, url) => { + console.log('请访问此 URL 授权:' + url) + }) + const config = Config.fromOAuth(oauth) + const ctx = FundamentalContext.new(config) + const resp = await ctx.macroeconomic('62267', { startDate: '2024-01-01', endDate: '2024-12-31' }) + console.log(resp) +} +main().catch(console.error) +``` + + + + +```rust +use std::sync::Arc; +use longbridge::{oauth::OAuthBuilder, fundamental::FundamentalContext, Config}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("请访问:{url}")).await?; + let config = Arc::new(Config::from_oauth(oauth)); + let ctx = FundamentalContext::new(config); + let resp = ctx.macroeconomic("62267", Some("2024-01-01"), Some("2024-12-31"), None, None).await?; + println!("{:?}", resp); + Ok(()) +} +``` + + + + +## 响应 + +### 响应示例 + +```json +{ + "count": 24, + "info": { + "indicator_code": "62267", + "country": "US", + "name": "Non-Farm Payroll", + "periodicity": "Monthly", + "describe": "...", + "importance": 3 + }, + "data": [ + { + "period": "2024-12-01", + "release_at": 1735900200, + "actual_value": "256000", + "previous_value": "212000", + "forecast_value": "165000" + } + ] +} +``` + +## 数据结构 + +### MacroeconomicResponse + +| 字段 | 类型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| info | MacroeconomicIndicator | 是 | 指标元数据 | +| data | Macroeconomic[] | 是 | 历史数据点列表 | +| count | int | 是 | 数据总条数 | + +### Macroeconomic + +| 字段 | 类型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| period | string | 是 | 统计周期(如 `2024-12-01`、`2024-Q4`) | +| release_at | int | 否 | 发布时间 Unix 时间戳 | +| actual_value | string | 是 | 实际值 | +| previous_value | string | 是 | 前值 | +| forecast_value | string | 是 | 市场预期值 | diff --git a/docs/zh-CN/docs/mcp.md b/docs/zh-CN/docs/mcp.md index f1475262..65844702 100644 --- a/docs/zh-CN/docs/mcp.md +++ b/docs/zh-CN/docs/mcp.md @@ -21,14 +21,14 @@ Longbridge 提供托管的 HTTP MCP(Model Context Protocol)服务,让你 Longbridge MCP 暴露 100+ 工具,覆盖六大能力域,客户端连接后会自动发现——无需手动配置。 -| 能力 | 覆盖范围 | -| ---------------- | -------------------------------------------- | -| **实时行情** | 报价、K 线、深度、经纪队列、逐笔、分时资金流 | -| **基本面与研究** | 公司资料、分红、估值、高管持仓、A/H 溢价 | -| **衍生品** | 期权链、涡轮筛选、发行商、涡轮报价 | -| **账户与组合** | 余额、持仓、资金流水、自选股及分组 | -| **交易** | 下单、改单、撤单、可买量估算 | -| **自动化** | 股价提醒、定投(DCA)计划 | +| 能力 | 覆盖范围 | +| ---------------- | -------------------------------------------------------- | +| **实时行情** | 报价、K 线、深度、经纪队列、逐笔、分时资金流 | +| **基本面与研究** | 公司资料、分红、估值、高管持仓、A/H 溢价、宏观经济指标 | +| **衍生品** | 期权链、涡轮筛选、发行商、涡轮报价 | +| **账户与组合** | 余额、持仓、资金流水、自选股及分组 | +| **交易** | 下单、改单、撤单、可买量估算 | +| **自动化** | 股价提醒、定投(DCA)计划 | 实际可用工具因地区、账户等级与 OAuth 授权范围而异。 diff --git a/docs/zh-HK/docs/changelog.md b/docs/zh-HK/docs/changelog.md index fdef278e..1f77f157 100644 --- a/docs/zh-HK/docs/changelog.md +++ b/docs/zh-HK/docs/changelog.md @@ -6,6 +6,18 @@ sidebar_position: 7 sidebar_icon: newspaper --- +## 2026-06-13 + +### SDK v4.3.2 + +- **宏觀經濟數據接口** — 新增兩個 `FundamentalContext` 方法:`macroeconomic_indicators` 列出全部指標(支持按國家篩選、關鍵詞搜索),`macroeconomic` 查詢指定指標的歷史發布數據(實際值/預期值/前值) + +## 2026-06-11 + +### CLI v0.24.0 + +- **新增 `macrodata` 命令** — 瀏覽 400+ 宏觀指標(覆蓋美/港/中/歐/日/新)並查詢歷史發布數據;支持 `--country`、`--keyword`、`--lang`、`--start`、`--end`、`--limit`、`--page`、`--format json` + ## 2026-06-04 ### CLI v0.22.4 diff --git a/docs/zh-HK/docs/cli/fundamentals/finance-calendar.md b/docs/zh-HK/docs/cli/fundamentals/finance-calendar.md index b1af69f0..b22dc5c7 100644 --- a/docs/zh-HK/docs/cli/fundamentals/finance-calendar.md +++ b/docs/zh-HK/docs/cli/fundamentals/finance-calendar.md @@ -6,7 +6,7 @@ sidebar_position: 6 # longbridge finance-calendar -瀏覽即將到來的財經事件——財報發布、股息派發、拆合股、IPO 及宏觀經濟數據,支援按標的、自選股、市場或事件類型篩選。 +瀏覽即將到來的財經事件——財報發布、股息派發、拆合股、IPO 及宏觀數據,支援按標的、自選股、市場或事件類型篩選。 ## 子命令 @@ -16,7 +16,7 @@ sidebar_position: 6 | `dividend` | 股息公告 | | `split` | 拆股與合股 | | `ipo` | IPO 上市 | -| `macrodata` | 宏觀經濟數據發布 | +| `macrodata` | 宏觀數據發布 | | `closed` | 市場休市日 | ## 示例 @@ -59,7 +59,7 @@ longbridge finance-calendar split --market HK longbridge finance-calendar macrodata --star 3 ``` -只顯示高重要性宏觀經濟數據發布(三星級),涵蓋 CPI、非農就業、美聯儲利率決議等市場重要事件。 +只顯示高重要性宏觀數據發布(三星級),涵蓋 CPI、非農就業、美聯儲利率決議等市場重要事件。 ### IPO 日曆 diff --git a/docs/zh-HK/docs/cli/fundamentals/macrodata.md b/docs/zh-HK/docs/cli/fundamentals/macrodata.md new file mode 100644 index 00000000..ff3dc3c1 --- /dev/null +++ b/docs/zh-HK/docs/cli/fundamentals/macrodata.md @@ -0,0 +1,67 @@ +--- +title: 'macrodata' +sidebar_label: 'macrodata' +sidebar_position: 20 +--- + +# longbridge macrodata + +瀏覽宏觀數據指標及其歷史發布數據,覆蓋美國、香港、中國大陸、歐元區、日本和新加坡市場。 + +## 模式 + +| 模式 | 用法 | 描述 | +| ---- | ---- | ---- | +| 列表 | `longbridge macrodata` | 列出全部可用指標 | +| 歷史 | `longbridge macrodata ` | 查詢指定指標的歷史數據 | + +## 示例 + +### 列出全部指標 + +```bash +longbridge macrodata +``` + +### 按國家/地區篩選 + +```bash +longbridge macrodata --country US +longbridge macrodata --country HK +``` + +支持的國家代碼:`HK`、`CN`、`US`、`EU`、`JP`、`SG`。 + +### 按關鍵詞搜索 + +```bash +longbridge macrodata --keyword CPI +longbridge macrodata --keyword CPI --country US +``` + +### 查看某個指標的歷史發布數據 + +```bash +longbridge macrodata 62267 +longbridge macrodata 62267 --start 2024-01-01 --end 2024-12-31 +``` + +### JSON 輸出(適合 AI / 腳本) + +```bash +longbridge macrodata --format json +longbridge macrodata 62267 --format json +``` + +## 選項 + +| 選項 | 描述 | 默認值 | +| ---- | ---- | ------ | +| `--country` | 篩選列表:`HK` \| `CN` \| `US` \| `EU` \| `JP` \| `SG` | 全部 | +| `--keyword` | 按指標名稱篩選(模糊匹配,僅列表模式) | — | +| `--start` | 歷史開始日期 `YYYY-MM-DD` | — | +| `--end` | 歷史結束日期 `YYYY-MM-DD` | — | +| `--lang` | 名稱/描述語言:`zh-CN` \| `zh-HK` \| `en` | — | +| `--limit` | 每頁最大條數(列表最大 1000,歷史最大 100) | 20 | +| `--page` | 頁碼,從 1 開始 | 1 | +| `--format` | `table` 或 `json` | `table` | diff --git a/docs/zh-HK/docs/cli/release-notes.md b/docs/zh-HK/docs/cli/release-notes.md index a586b7ec..57e5174a 100644 --- a/docs/zh-HK/docs/cli/release-notes.md +++ b/docs/zh-HK/docs/cli/release-notes.md @@ -7,6 +7,10 @@ sidebar_icon: newspaper # Release Notes +### [v0.24.0](https://github.com/longbridge/longbridge-terminal/releases/tag/v0.24.0) + +- **新增 `macrodata` 命令** — 瀏覽 400+ 宏觀數據指標,覆蓋美/港/中/歐/日/新六大市場;列表模式支持 `--country` 篩選,歷史模式支持 `--start`/`--end` 日期區間;`--format json` 滿足 AI / 腳本需求 + ### [v0.22.4](https://github.com/longbridge/longbridge-terminal/releases/tag/v0.22.4) - **`constituent` 支持 ETF** — ETF 標的現返回資產分佈數據(持倉 / 地區 / 資產類別 / 行業四組表格);指數標的行為完全不變 diff --git a/docs/zh-HK/docs/fundamental/fundamental/macroeconomic-indicators.md b/docs/zh-HK/docs/fundamental/fundamental/macroeconomic-indicators.md new file mode 100644 index 00000000..4d3726a7 --- /dev/null +++ b/docs/zh-HK/docs/fundamental/fundamental/macroeconomic-indicators.md @@ -0,0 +1,140 @@ +--- +slug: macroeconomic-indicators +title: 宏觀經濟指標列表 +sidebar_position: 20 +language_tabs: false +toc_footers: [] +includes: [] +search: true +highlight_theme: '' +headingLevel: 2 +--- + +列出 Longbridge 支持的宏觀經濟指標,可按國家/地區篩選。 + + +# 列出全部指標 +longbridge macrodata +# 篩選美國指標 +longbridge macrodata --country US + + + + +## 參數 + +> **SDK 方法參數。** + +| 名稱 | 類型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| country | MacroeconomicCountry | 否 | 按國家/地區篩選。不填返回全部。 | +| keyword | string | 否 | 按指標名稱模糊搜索(不區分大小寫) | +| offset | int | 否 | 分頁偏移量,默認 0 | +| limit | int | 否 | 每頁最大條數,默認 100,最大 1000 | + +### MacroeconomicCountry + +| 枚舉值 | 國家/地區 | +| ------ | --------- | +| HK | 香港 | +| CN | 中國大陸 | +| US | 美國 | +| EU | 歐元區 | +| JP | 日本 | +| SG | 新加坡 | + +## 請求示例 + + + + +```python +from longbridge.openapi import FundamentalContext, Config, OAuthBuilder, MacroeconomicCountry + +oauth = OAuthBuilder("your-client-id").build(lambda url: print("請訪問:", url)) +config = Config.from_oauth(oauth) +ctx = FundamentalContext(config) + +resp = ctx.macroeconomic_indicators(country=MacroeconomicCountry.UnitedStates, limit=50) +print(resp) +``` + + + + +```javascript +const { Config, FundamentalContext, OAuth, MacroeconomicCountry } = require('longbridge') + +async function main() { + const oauth = await OAuth.build('your-client-id', (_, url) => { + console.log('請訪問此 URL 授權:' + url) + }) + const config = Config.fromOAuth(oauth) + const ctx = FundamentalContext.new(config) + const resp = await ctx.macroeconomicIndicators({ country: MacroeconomicCountry.UnitedStates }) + console.log(resp) +} +main().catch(console.error) +``` + + + + +```rust +use std::sync::Arc; +use longbridge::{oauth::OAuthBuilder, fundamental::FundamentalContext, Config}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("請訪問:{url}")).await?; + let config = Arc::new(Config::from_oauth(oauth)); + let ctx = FundamentalContext::new(config); + let resp = ctx.macroeconomic_indicators(None, None, None).await?; + println!("{:?}", resp); + Ok(()) +} +``` + + + + +## 響應 + +### 響應示例 + +```json +{ + "count": 619, + "list": [ + { + "indicator_code": "62267", + "country": "US", + "name": "Non-Farm Payroll", + "periodicity": "Monthly", + "describe": "Employment situation report...", + "importance": 3 + } + ] +} +``` + +## 數據結構 + +### MacroeconomicIndicatorListResponse + +| 字段 | 類型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| list | MacroeconomicIndicator[] | 是 | 指標列表 | +| count | int | 是 | 滿足條件的指標總數 | + +### MacroeconomicIndicator + +| 字段 | 類型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| indicator_code | string | 是 | 指標代碼(用於 `macroeconomic` 查詢) | +| country | string | 是 | 國家/地區名稱 | +| name | string | 是 | 指標名稱 | +| periodicity | string | 是 | 發布頻率(如 `Monthly`、`Quarterly`) | +| describe | string | 是 | 指標說明 | +| importance | int | 是 | 重要性(1=低、2=中、3=高) | + diff --git a/docs/zh-HK/docs/fundamental/fundamental/macroeconomic.md b/docs/zh-HK/docs/fundamental/fundamental/macroeconomic.md new file mode 100644 index 00000000..43a08a25 --- /dev/null +++ b/docs/zh-HK/docs/fundamental/fundamental/macroeconomic.md @@ -0,0 +1,134 @@ +--- +slug: macroeconomic +title: 宏觀經濟歷史數據 +sidebar_position: 21 +language_tabs: false +toc_footers: [] +includes: [] +search: true +highlight_theme: '' +headingLevel: 2 +--- + +獲取指定宏觀經濟指標的歷史發布數據,包括實際值、預測值、前值和下次發布時間。 + + +# 查詢非農就業人數歷史數據 +longbridge macrodata 62267 +# 指定日期範圍 +longbridge macrodata 62267 --start 2024-01-01 --end 2024-12-31 + + + + +## 參數 + +> **SDK 方法參數。** + +| 名稱 | 類型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| indicator_code | string | 是 | 指標代碼,來自 `macroeconomic_indicators` | +| start_date | string | 否 | 開始日期,格式 `YYYY-MM-DD` | +| end_date | string | 否 | 結束日期,格式 `YYYY-MM-DD` | +| offset | int | 否 | 分頁偏移量,默認 0 | +| limit | int | 否 | 最大返回條數,默認 100,最大 100 | + +## 請求示例 + + + + +```python +from longbridge.openapi import FundamentalContext, Config, OAuthBuilder + +oauth = OAuthBuilder("your-client-id").build(lambda url: print("請訪問:", url)) +config = Config.from_oauth(oauth) +ctx = FundamentalContext(config) + +resp = ctx.macroeconomic("62267", start_date="2024-01-01", end_date="2024-12-31") +print(resp) +``` + + + + +```javascript +const { Config, FundamentalContext, OAuth } = require('longbridge') + +async function main() { + const oauth = await OAuth.build('your-client-id', (_, url) => { + console.log('請訪問此 URL 授權:' + url) + }) + const config = Config.fromOAuth(oauth) + const ctx = FundamentalContext.new(config) + const resp = await ctx.macroeconomic('62267', { startDate: '2024-01-01', endDate: '2024-12-31' }) + console.log(resp) +} +main().catch(console.error) +``` + + + + +```rust +use std::sync::Arc; +use longbridge::{oauth::OAuthBuilder, fundamental::FundamentalContext, Config}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("請訪問:{url}")).await?; + let config = Arc::new(Config::from_oauth(oauth)); + let ctx = FundamentalContext::new(config); + let resp = ctx.macroeconomic("62267", Some("2024-01-01"), Some("2024-12-31"), None, None).await?; + println!("{:?}", resp); + Ok(()) +} +``` + + + + +## 響應示例 + +```json +{ + "count": 24, + "info": { + "indicator_code": "62267", + "country": "US", + "name": "Non-Farm Payroll", + "periodicity": "Monthly", + "describe": "...", + "importance": 3 + }, + "data": [ + { + "period": "2024-12-01", + "release_at": 1735900200, + "actual_value": "256000", + "previous_value": "212000", + "forecast_value": "165000" + } + ] +} +``` + +## 數據結構 + +### MacroeconomicResponse + +| 字段 | 類型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| info | MacroeconomicIndicator | 是 | 指標元數據 | +| data | Macroeconomic[] | 是 | 歷史數據點列表 | +| count | int | 是 | 數據總條數 | + +### Macroeconomic + +| 字段 | 類型 | 必填 | 描述 | +| ---- | ---- | ---- | ---- | +| period | string | 是 | 統計週期(如 `2024-12-01`、`2024-Q4`) | +| release_at | int | 否 | 發布時間 Unix 時間戳 | +| actual_value | string | 是 | 實際值 | +| previous_value | string | 是 | 前值 | +| forecast_value | string | 是 | 市場預期值 | diff --git a/docs/zh-HK/docs/mcp.md b/docs/zh-HK/docs/mcp.md index fa4adb72..319fc121 100644 --- a/docs/zh-HK/docs/mcp.md +++ b/docs/zh-HK/docs/mcp.md @@ -24,7 +24,7 @@ Longbridge MCP 暴露 100+ 工具,覆蓋六大能力域,客戶端連接後 | 能力 | 覆蓋範圍 | | ---------------- | -------------------------------------------- | | **即時行情** | 報價、K 線、深度、經紀隊列、逐筆、分時資金流 | -| **基本面與研究** | 公司資料、派息、估值、高管持倉、A/H 溢價 | +| **基本面與研究** | 公司資料、派息、估值、高管持倉、A/H 溢價、宏觀經濟指標 | | **衍生品** | 期權鏈、窩輪篩選、發行商、窩輪報價 | | **帳戶與組合** | 餘額、持倉、資金流水、自選股及分組 | | **交易** | 下單、改單、撤單、可買量估算 |