Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en/docs/account/alert/list_alerts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func main() {
"enabled": true,
"frequency": 2,
"scope": 0,
"text": "价格涨到 400",
"text": "Price rises to 400",
"state": [
1
],
Expand Down
4 changes: 2 additions & 2 deletions docs/en/docs/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ description: 'Release notes for Longbridge OpenAPI, CLI, MCP and SDKs, newest fi
## 2023-11-03

- Add quote history candlestick interface
- Long connection `Business Command:27`, obtain the history candlestick of security
- Long connection `Business Command: 27`, obtain the history candlestick of security

## 2023-08-17

Expand All @@ -421,7 +421,7 @@ description: 'Release notes for Longbridge OpenAPI, CLI, MCP and SDKs, newest fi
## 2022-07-18

- Update security static info interface
- Long connection `Business Command:10`, response add `board` fields
- Long connection `Business Command: 10`, response add `board` fields

## 2022-07-14

Expand Down
8 changes: 4 additions & 4 deletions docs/en/docs/cli/ipo/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ longbridge ipo calendar

```
── HK ──
| name | symbol | state | sub_date | sub_end_date | ipo_date |
|------------|---------|---------|------------|--------------|------------|
| 翼菲科技 | 6871.HK | pending | 2026-05-07 | 2026-05-13 | 2026-05-17 |
| 英派药业-B | 7630.HK | pending | 2026-05-04 | 2026-05-08 | 2026-05-12 |
| name | symbol | state | sub_date | sub_end_date | ipo_date |
|-----------------|---------|---------|------------|--------------|------------|
| ROBOTPHOENIX | 6871.HK | pending | 2026-05-07 | 2026-05-13 | 2026-05-17 |
| IMPACT THERAP-B | 7630.HK | pending | 2026-05-04 | 2026-05-08 | 2026-05-12 |

── US ──
| name | symbol | state | ipo_date |
Expand Down
48 changes: 24 additions & 24 deletions docs/en/docs/cli/market-data/rank.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ longbridge rank
```
Ranking Categories (use second-level key with --key)

| key | name | sub-key | market |
|----------------|--------|-------------------|--------|
| hot_all | 总热度 | hot_all-us | US |
| hot_all | 总热度 | hot_all-hk | HK |
| hot_up | 热度上升 | hot_up-us | US |
| hot_up | 热度上升 | hot_up-hk | HK |
| trade_heat | 热门交易 | trade_heat-us | US |
| trade_heat | 热门交易 | trade_heat-hk | HK |
| discuss_heat | 热议 | discuss_heat-us | US |
| discuss_heat | 热议 | discuss_heat-hk | HK |
| discuss_heat | 热议 | discuss_heat-cn | CN |
| discuss_heat | 热议 | discuss_heat-sg | SG |
| watchlist_heat | 关注度 | watchlist_heat-us | US |
| watchlist_heat | 关注度 | watchlist_heat-hk | HK |
| watchlist_heat | 关注度 | watchlist_heat-cn | CN |
| watchlist_heat | 关注度 | watchlist_heat-sg | SG |
| key | name | sub-key | market |
|----------------|----------------|-------------------|--------|
| hot_all | Trending Now | hot_all-us | US |
| hot_all | Trending Now | hot_all-hk | HK |
| hot_up | On The Rise | hot_up-us | US |
| hot_up | On The Rise | hot_up-hk | HK |
| trade_heat | Popular Trades | trade_heat-us | US |
| trade_heat | Popular Trades | trade_heat-hk | HK |
| discuss_heat | Hot Topics | discuss_heat-us | US |
| discuss_heat | Hot Topics | discuss_heat-hk | HK |
| discuss_heat | Hot Topics | discuss_heat-cn | CN |
| discuss_heat | Hot Topics | discuss_heat-sg | SG |
| watchlist_heat | Most Followed | watchlist_heat-us | US |
| watchlist_heat | Most Followed | watchlist_heat-hk | HK |
| watchlist_heat | Most Followed | watchlist_heat-cn | CN |
| watchlist_heat | Most Followed | watchlist_heat-sg | SG |
```

## Examples
Expand All @@ -49,10 +49,10 @@ longbridge rank --key hot_all-us
```
Rank — hot_all-us

| rank | symbol | name | price | chg% | pre/post | pre/post chg% |
|------|---------|-------|---------|---------|----------|---------------|
| 1 | NVDA.US | 英伟达 | 215.330 | -0.0190 | 214.297 | -0.0048 |
| 2 | AAPL.US | 苹果 | 205.100 | -0.42% | 204.800 | -0.0015 |
| rank | symbol | name | price | chg% | pre/post | pre/post chg% |
|------|---------|--------|---------|---------|----------|---------------|
| 1 | NVDA.US | NVIDIA | 215.330 | -0.0190 | 214.297 | -0.0048 |
| 2 | AAPL.US | Apple | 205.100 | -0.42% | 204.800 | -0.0015 |
```

### View HK total heat ranking
Expand Down Expand Up @@ -87,7 +87,7 @@ longbridge rank --key hot_all-us --format json
"lists": [
{
"symbol": "NVDA.US",
"name": "英伟达",
"name": "NVIDIA",
"last_done": "215.330",
"chg": "-0.0190",
"pre_post_price": "214.297",
Expand Down Expand Up @@ -121,10 +121,10 @@ longbridge rank --format json
"first_tags": [
{
"key": "hot_all",
"name": "总热度",
"name": "Trending Now",
"second_tags": [
{ "key": "hot_all-us", "market": "US", "name": "美股" },
{ "key": "hot_all-hk", "market": "HK", "name": "港股" }
{ "key": "hot_all-us", "market": "US", "name": "US Stocks" },
{ "key": "hot_all-hk", "market": "HK", "name": "HK Stocks" }
]
}
]
Expand Down
14 changes: 7 additions & 7 deletions docs/en/docs/cli/market-data/top-movers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ longbridge top-movers
```

```
| time | symbol | change% | reason | tags |
|----------------------|---------|---------|------------------|------------------|
| 2026-05-22T17:44:45Z | TSLA.US | +3.24% | 波动超 20 日均值 | 汽车制造商 |
| 2026-05-22T14:42:36Z | RKLB.US | +11.32% | 波动超 20 日均值 | 航空航天与国防 |
| time | symbol | change% | reason | tags |
|----------------------|---------|---------|-------------------------------|---------------------------|
| 2026-05-22T17:44:45Z | TSLA.US | +3.24% | Volatility exceeds 20-day avg | Automobile Manufacturers |
| 2026-05-22T14:42:36Z | RKLB.US | +11.32% | Volatility exceeds 20-day avg | Aerospace and Defense |
```

## Examples
Expand Down Expand Up @@ -67,17 +67,17 @@ longbridge top-movers --market US --format json
{
"events": [
{
"alert_reason": "波动超 20 日均值",
"alert_reason": "Volatility exceeds 20-day avg",
"alert_type": 11,
"timestamp": "1779471885",
"stock": {
"symbol": "TSLA.US",
"code": "TSLA",
"market": "US",
"name": "特斯拉",
"name": "Tesla, Inc.",
"change": "0.0324",
"last_done": "426.010",
"labels": ["汽车制造商"]
"labels": ["Automobile Manufacturers"]
}
}
],
Expand Down
16 changes: 8 additions & 8 deletions docs/en/docs/cli/watchlist/sharelist.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ longbridge sharelist

```
My Sharelists:
| ID | Name | Type | Day Chg | YTD Chg | Subscribers |
|-------|--------|---------|---------|---------|-------------|
| 15921 | 新能源 | Regular | -0.40% | 6.64% | 500 |
| ID | Name | Type | Day Chg | YTD Chg | Subscribers |
|-------|------------|---------|---------|---------|-------------|
| 15921 | New Energy | Regular | -0.40% | 6.64% | 500 |

Subscribed Sharelists:
| ID | Name | Type | Day Chg | YTD Chg | Subscribers |
|-------|------------------|---------|---------|---------|-------------|
| 11538 | 持股收息等待过激 | Regular | -0.04% | 5.14% | 481 |
| 11538 | Dividend Income | Regular | -0.04% | 5.14% | 481 |
```

## Examples
Expand All @@ -46,10 +46,10 @@ longbridge sharelist popular --count 20
```

```
| ID | Name | Type | Day Chg | YTD Chg | Subscribers |
|----------|--------------|----------|---------|---------|-------------|
| 12732294 | 无人机概念股 | Official | 20.51% | -3.82% | 768 |
| 29001357 | SpaceX概念 | Regular | 13.34% | 49.86% | 107 |
| ID | Name | Type | Day Chg | YTD Chg | Subscribers |
|----------|----------------|----------|---------|---------|-------------|
| 12732294 | Drone Concepts | Official | 20.51% | -3.82% | 768 |
| 29001357 | SpaceX Concept | Regular | 13.34% | 49.86% | 107 |
```

### Create a sharelist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ func main() {
"total": "124300000000",
"currency": "USD",
"business": [
{"name": "美洲", "percent": "40.80", "value": "31968000000"},
{"name": "欧洲", "percent": "23.64", "value": "18521000000"},
{"name": "大中华区", "percent": "20.72", "value": "16233000000"}
{"name": "Americas", "percent": "40.80", "value": "31968000000"},
{"name": "Europe", "percent": "23.64", "value": "18521000000"},
{"name": "Greater China", "percent": "20.72", "value": "16233000000"}
],
"regionals": []
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ func main() {
"code": 0,
"message": "success",
"data": {
"name": "苹果",
"name": "Apple",
"ticker": "AAPL",
"fp_start": "2025.12.28",
"fp_end": "2026.03.28",
"currency": "USD",
"report_desc": "概要:苹果(AAPL)的营业收入是 1112 亿(+16.6%);每股收益是 2.01(+21.82%)。",
"report_desc": "Summary: Apple (AAPL) revenue was 111.18B (+16.6%); EPS was 2.01 (+21.82%).",
"fo_revenue": {"value": "111184000000.0000", "yoy": "16.6", "cmp_desc": "", "est_value": ""},
"fo_ebit": {"value": "35885000000.0000", "yoy": "21.28", "cmp_desc": "", "est_value": ""},
"fo_eps": {"value": "2.0100", "yoy": "21.82", "cmp_desc": "", "est_value": ""},
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/fundamental/fundamental/industry_peers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func main() {
"ytd_chg": "0.0875",
"next": [
{
"name": "在线消费电子产品零售",
"name": "Online Consumer Electronics Retail",
"symbol": "",
"stock_num": 4,
"chg": "0.0268",
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/fundamental/fundamental/invest_relation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func main() {
{
"symbol": "HUYA.US",
"company_id": "12345",
"company_name": "虎牙直播",
"company_name": "Huya Inc.",
"company_name_en": "Huya Inc.",
"company_name_zhcn": "虎牙直播",
"currency": "USD",
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/fundamental/fundamental/operating.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func main() {
{
"field_name": "operating_revenue",
"indicator_name": "Revenue",
"indicator_value": "6786 亿",
"indicator_value": "678.6B",
"yoy": "0.0800"
}
]
Expand Down
4 changes: 2 additions & 2 deletions docs/en/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ func main() {
}
```

运行:
Run:

```shell
go run ./
Expand Down Expand Up @@ -1915,7 +1915,7 @@ After running, the output is as follows:
Order {
order_id: "718437534753550336",
status: NotReported,
stock_name: "腾讯控股 1",
stock_name: "TENCENT",
quantity: 200,
executed_quantity: None,
price: Some(50.000),
Expand Down
6 changes: 3 additions & 3 deletions docs/en/docs/market/status/top_movers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,16 @@ func main() {
"stock": {
"code": "TSLA",
"symbol": "TSLA.US",
"name": "特斯拉",
"name": "Tesla, Inc.",
"change": "-0.0388",
"last_done": "404.110",
"market": "US",
"labels": ["汽车制造商"],
"labels": ["Automobile Manufacturers"],
"logo": "https://assets.lbkrs.com/ticker/ST/US/TSLA.png",
"trade_status": 0
},
"timestamp": "1779202097",
"alert_reason": "波动超 20 日均值",
"alert_reason": "Volatility exceeds 20-day avg",
"alert_type": 11,
"post": null
}
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/market/status/unusual_items.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func main() {
{
"symbol": "TSLA.US",
"name": "Tesla Inc.",
"alert_name": "大宗交易",
"alert_name": "Block Trade",
"alert_time": 1778198400000,
"emotion": 1,
"change_values": [
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/quote/analytics/calc-index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ longbridge calc-index TSLA.US --index pe,total_market_value
<SDKLinks module="quote" klass="QuoteContext" method="calc_indexes" go="CalcIndex" />

:::info
[Business Command](../../socket/biz_command):`26`
[Business Command](../../socket/biz_command): `26`
:::

## Request
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/quote/analytics/capital_distribution.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ longbridge capital NVDA.US
<SDKLinks module="quote" klass="QuoteContext" method="capital_distribution" />

:::info
[Business Command](../../socket/biz_command):`25`
[Business Command](../../socket/biz_command): `25`
:::

## Request
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/quote/analytics/capital_flow_intraday.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ longbridge capital NVDA.US --flow
<SDKLinks module="quote" klass="QuoteContext" method="capital_flow" />

:::info
[Business Command](../../socket/biz_command):`24`
[Business Command](../../socket/biz_command): `24`
:::

## Request
Expand Down
4 changes: 2 additions & 2 deletions docs/en/docs/quote/options/optionchain-date-strike.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ longbridge option chain TSLA.US --date 2026-04-17
| Name | Type | Required | Description |
| ----------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------- |
| symbol | string | Yes | Security code, in `ticker.region` format, for example:`700.HK` |
| expiry_date | string | Yes | Option expiry date,in `YYMMDD` format, for example: `20220429`, obtained by [Option Expiry Date](./optionchain-date) API |
| expiry_date | string | Yes | Option expiry date, in `YYMMDD` format, for example: `20220429`, obtained by [Option Expiry Date](./optionchain-date) API |

### Protobuf

Expand Down Expand Up @@ -305,4 +305,4 @@ message StrikePriceInfo {
| 3 | 301600 | Invalid request | Invalid request parameters or unpacking request failed |
| 3 | 301606 | Request rate limit | Reduce the frequency of requests |
| 7 | 301602 | Server error | Please try again or contact a technician to resolve the issue |
| 7 | 301600 | Invalue request parameters | Please check the request parameter: `symbol`,`expiry_date` |
| 7 | 301600 | Invalue request parameters | Please check the request parameter: `symbol`, `expiry_date` |
2 changes: 1 addition & 1 deletion docs/en/docs/quote/options/optionchain_date.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func main() {

| Name | Type | Description |
| ----------- | -------- | -------------------------------------------------- |
| expiry_date | string[] | option chain expiry dates list,in `YYMMDD` format |
| expiry_date | string[] | option chain expiry dates list, in `YYMMDD` format |

### Protobuf

Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/quote/stocks/history-candlestick.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ longbridge kline history NVDA.US --start 2025-01-01 --end 2025-12-31

:::info

[Business Command](../../socket/biz_command):`27`
[Business Command](../../socket/biz_command): `27`

:::

Expand Down
6 changes: 3 additions & 3 deletions docs/en/docs/screener/screener_indicators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ func main() {
"data": {
"groups": [
{
"group_name": "公司规模与财务",
"group_name": "Company Size & Financials",
"indicators": [
{ "id": "1", "key": "marketcap", "name": "市值", "unit": "亿", "min": null, "max": null }
{ "id": "1", "key": "marketcap", "name": "Market Cap", "unit": "B", "min": null, "max": null }
]
}
]
Expand Down Expand Up @@ -233,6 +233,6 @@ The SDK response `data` is a grouped structure. The CLI `--format json` output f
| ∟ ∟ id | string | false | Indicator ID (string) |
| ∟ ∟ key | string | false | Indicator key for building filter conditions (no `filter_` prefix) |
| ∟ ∟ name | string | false | Indicator display name |
| ∟ ∟ unit | string | false | Unit (e.g. `%`, `亿`) |
| ∟ ∟ unit | string | false | Unit (e.g. `%`, `B`) |
| ∟ ∟ min | string | false | Global lower bound; null means no lower bound |
| ∟ ∟ max | string | false | Global upper bound; null means no upper bound |
4 changes: 2 additions & 2 deletions docs/en/docs/screener/screener_recommend_strategies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ func main() {
"message": "success",
"data": {
"strategys": [
{ "id": 19, "name": "今日大涨股票", "type": "platform", "market": "US" },
{ "id": 20, "name": "今年增长冠军", "type": "platform", "market": "US" }
{ "id": 19, "name": "Stocks that surged today", "type": "platform", "market": "US" },
{ "id": 20, "name": "Top growth stocks of the year", "type": "platform", "market": "US" }
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/screener/screener_strategy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func main() {
"message": "success",
"data": {
"id": 19,
"name": "今日大涨股票",
"name": "Stocks that surged today",
"market": "US",
"type": "platform",
"filter": {
Expand Down
Loading
Loading