Skip to content

Commit cfefa0d

Browse files
committed
update links
1 parent 821b29d commit cfefa0d

File tree

20 files changed

+52
-70
lines changed

20 files changed

+52
-70
lines changed

docs/getting-started.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class Main {
297297
Config config = Config.fromEnv();
298298

299299
// Init config without ENV
300-
// https://longportapp.github.io/openapi-sdk/java/com/longport/ConfigBuilder.html
300+
// https://longportapp.github.io/openapi/java/com/longport/ConfigBuilder.html
301301
// Config config = ConfigBuilder("YOUR_APP_KEY", "YOUR_APP_SECRET", "YOUR_ACCESS_TOKEN").build();
302302

303303
try (TradeContext ctx = TradeContext.create(config).get()) {
@@ -1042,7 +1042,7 @@ Order {
10421042
}
10431043
```
10441044

1045-
上面例子已经完整演示了如何使用 SDK 访问 OpenAPI 的接口,更多其他接口请详细阅读 [LongPort OpenAPI 文档](https://longportapp.github.io/openapi-sdk/),根据不同的接口使用。
1045+
上面例子已经完整演示了如何使用 SDK 访问 OpenAPI 的接口,更多其他接口请详细阅读 [LongPort OpenAPI 文档](https://longportapp.github.io/openapi/),根据不同的接口使用。
10461046

10471047
## 更多例子
10481048

@@ -1054,7 +1054,7 @@ Order {
10541054

10551055
SDK 的详细 API 文档请访问:
10561056

1057-
<https://longportapp.github.io/openapi-sdk/>
1057+
<https://longportapp.github.io/openapi/>
10581058

10591059
## 反馈及沟通
10601060

docs/quote/pull/static.md

+26-26
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ sidebar_position: 1
1717

1818
### Parameters
1919

20-
| Name | Type | Required | Description |
21-
| ------ | -------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
20+
| Name | Type | Required | Description |
21+
|--------|----------|----------|---------------------------------------------------------------------------------------------------------------------------------|
2222
| symbol | string[] || 标的代码列表,使用 `ticker.region` 格式,例如:`[700.HK]` <br /><br />**校验规则:**<br />每次请求支持传入的标的数量上限是 `500`|
2323

2424
### Protobuf
@@ -54,7 +54,7 @@ print(resp)
5454
</TabItem>
5555
<TableItem value="js" label="JavaScript">
5656

57-
https://longportapp.github.io/openapi-sdk/rust/longport/quote/struct.QuoteContext.html#method.static_info
57+
https://longportapp.github.io/openapi/rust/longport/quote/struct.QuoteContext.html#method.static_info
5858

5959
```js
6060
const { Config, QuoteContext } = require('longport')
@@ -76,25 +76,25 @@ QuoteContext.new(config)
7676

7777
### Response Properties
7878

79-
| Name | Type | Description |
80-
| -------------------- | -------- | ------------------------------------------------------------------------------------------------ |
81-
| secu_static_info | object[] | 标的基础数据列表 |
82-
| ∟ symbol | string | 标的代码 |
83-
| ∟ name_cn | string | 中文简体标的名称 |
84-
| ∟ name_en | string | 英文标的名称 |
85-
| ∟ name_hk | string | 中文繁体标的名称 |
86-
| ∟ exchange | string | 标的所属交易所 |
87-
| ∟ currency | string | 交易币种 <br /><br />**可选值:**<br />`CNY` <br />`USD` <br />`SGD` <br />`HKD` |
88-
| ∟ lot_size | int32 | 每手股数 |
89-
| ∟ total_shares | int64 | 总股本 |
90-
| ∟ circulating_shares | int64 | 流通股本 |
91-
| ∟ hk_shares | int64 | 港股股本 (仅港股) |
92-
| ∟ eps | string | 每股盈利 |
93-
| ∟ eps_ttm | string | 每股盈利 (TTM) |
94-
| ∟ bps | string | 每股净资产 |
95-
| ∟ dividend_yield | string | 股息 |
79+
| Name | Type | Description |
80+
|----------------------|----------|------------------------------------------------------------------------------------------------|
81+
| secu_static_info | object[] | 标的基础数据列表 |
82+
| ∟ symbol | string | 标的代码 |
83+
| ∟ name_cn | string | 中文简体标的名称 |
84+
| ∟ name_en | string | 英文标的名称 |
85+
| ∟ name_hk | string | 中文繁体标的名称 |
86+
| ∟ exchange | string | 标的所属交易所 |
87+
| ∟ currency | string | 交易币种 <br /><br />**可选值:**<br />`CNY` <br />`USD` <br />`SGD` <br />`HKD` |
88+
| ∟ lot_size | int32 | 每手股数 |
89+
| ∟ total_shares | int64 | 总股本 |
90+
| ∟ circulating_shares | int64 | 流通股本 |
91+
| ∟ hk_shares | int64 | 港股股本 (仅港股) |
92+
| ∟ eps | string | 每股盈利 |
93+
| ∟ eps_ttm | string | 每股盈利 (TTM) |
94+
| ∟ bps | string | 每股净资产 |
95+
| ∟ dividend_yield | string | 股息 |
9696
| ∟ stock_derivatives | int32[] | 如果标的是正股,可提供的衍生品行情类型 <br /><br />**可选值:**<br />`1` - 期权 <br />`2` - 轮证 |
97-
| ∟ board | string | 标的所属板块,详见 [Board](../objects#board---标的板块) |
97+
| ∟ board | string | 标的所属板块,详见 [Board](../objects#board---标的板块) |
9898

9999
### Protobuf
100100

@@ -169,9 +169,9 @@ message StaticInfo {
169169

170170
## 错误码
171171

172-
| 协议错误码 | 业务错误码 | 描述 | 排查建议 |
173-
| ---------- | ---------- | -------------- | ------------------------------------------ |
174-
| 3 | 301600 | 无效的请求 | 请求参数有误或解包失败 |
175-
| 3 | 301606 | 限流 | 降低请求频次 |
176-
| 7 | 301602 | 服务端内部错误 | 请重试或联系技术人员处理 |
172+
| 协议错误码 | 业务错误码 | 描述 | 排查建议 |
173+
|------------|------------|--------------|---------------------------------------|
174+
| 3 | 301600 | 无效的请求 | 请求参数有误或解包失败 |
175+
| 3 | 301606 | 限流 | 降低请求频次 |
176+
| 7 | 301602 | 服务端内部错误 | 请重试或联系技术人员处理 |
177177
| 7 | 301607 | 接口限制 | 请求的标的数量超限,请减少单次请求标的数量 |

i18n/en/docusaurus-plugin-content-docs/current/getting-started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class Main {
295295
Config config = Config.fromEnv();
296296

297297
// Init config without ENV
298-
// https://longportapp.github.io/openapi-sdk/java/com/longport/ConfigBuilder.html
298+
// https://longportapp.github.io/openapi/java/com/longport/ConfigBuilder.html
299299
// Config config = ConfigBuilder("YOUR_APP_KEY", "YOUR_APP_SECRET", "YOUR_ACCESS_TOKEN").build();
300300

301301
try (TradeContext ctx = TradeContext.create(config).get()) {
@@ -1060,7 +1060,7 @@ We provide the complete code of the above examples in the GitHub repository of L
10601060

10611061
For detailed SDK API document, please visit:
10621062

1063-
<https://longportapp.github.io/openapi-sdk/>
1063+
<https://longportapp.github.io/openapi/>
10641064

10651065
## Contact & Feedback
10661066

i18n/en/sdk-versions/cpp.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
### Download
66

7-
- [1.1.7](https://static.lbctrl.com/openapi-sdk/openapi-cpp-sdk-1.1.7.tar.gz)
87
- [2.1.10](https://static.lbctrl.com/openapi-sdk/openapi-cpp-sdk-2.1.10.tar.gz)
98

109
### API Documents
1110

12-
- [v1](https://longportapp.github.io/openapi-sdk/v1/cpp/index.html)
13-
- [v2](https://longportapp.github.io/openapi-sdk/v2/cpp/index.html)
11+
- https://longportapp.github.io/openapi/cpp/index.html

i18n/en/sdk-versions/java.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ Add the following line to your `pom.xml` file
1818

1919
### API Documents
2020

21-
- [v1](https://longportapp.github.io/openapi-sdk/v1/java/index.html)
22-
- [v2](https://longportapp.github.io/openapi-sdk/v2/java/index.html)
21+
- https://longportapp.github.io/openapi/java/index.html

i18n/en/sdk-versions/nodejs.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ $ npm install longport --save
1414

1515
### API Documents
1616

17-
- [v1](https://longportapp.github.io/openapi-sdk/v1/nodejs/index.html)
18-
- [v2](https://longportapp.github.io/openapi-sdk/v2/nodejs/index.html)
17+
- https://longportapp.github.io/openapi/nodejs/index.html

i18n/en/sdk-versions/python.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ $ pip install longport
1414
1515
### API Documents
1616

17-
- [v1](https://longportapp.github.io/openapi-sdk/v1/python/index.html)
18-
- [v2](https://longportapp.github.io/openapi-sdk/v2/python/index.html)
17+
- https://longportapp.github.io/openapi/python/index.html

i18n/en/sdk-versions/rust.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ longport = "1.0.0"
1515

1616
### API Documents
1717

18-
- [v1](https://longportapp.github.io/openapi-sdk/v1/rust/longport/index.html)
19-
- [v2](https://longportapp.github.io/openapi-sdk/v2/rust/longport/index.html)
18+
- https://longportapp.github.io/openapi/rust/longport/index.html

i18n/zh-CN/sdk-versions/cpp.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
### 下载地址
66

7-
- [1.1.7](https://static.lbctrl.com/openapi-sdk/openapi-cpp-sdk-1.1.7.tar.gz)
87
- [2.1.10](https://static.lbctrl.com/openapi-sdk/openapi-cpp-sdk-2.1.10.tar.gz)
98

109
### API 文档
1110

12-
- [v1](https://longportapp.github.io/openapi-sdk/v1/cpp/index.html)
13-
- [v2](https://longportapp.github.io/openapi-sdk/v2/cpp/index.html)
11+
- https://longportapp.github.io/openapi/cpp/index.html

i18n/zh-CN/sdk-versions/java.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@
1818

1919
### API 文档
2020

21-
- [v1](https://longportapp.github.io/openapi-sdk/v1/java/index.html)
22-
- [v2](https://longportapp.github.io/openapi-sdk/v2/java/index.html)
21+
- https://longportapp.github.io/openapi/java/index.html

i18n/zh-CN/sdk-versions/nodejs.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ $ npm install longport --save
1414

1515
### API 文档
1616

17-
- [v1](https://longportapp.github.io/openapi-sdk/v1/nodejs/index.html)
18-
- [v2](https://longportapp.github.io/openapi-sdk/v2/nodejs/index.html)
17+
- https://longportapp.github.io/openapi/nodejs/index.html

i18n/zh-CN/sdk-versions/python.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ $ pip install longport -i https://mirrors.aliyun.com/pypi/simple
1818

1919
### API 文档
2020

21-
- [v1](https://longportapp.github.io/openapi-sdk/v1/python/index.html)
22-
- [v2](https://longportapp.github.io/openapi-sdk/v2/python/index.html)
21+
- https://longportapp.github.io/openapi/python/index.html

i18n/zh-CN/sdk-versions/rust.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ longport = "2.0.0"
1515

1616
### API 文档
1717

18-
- [v1](https://longportapp.github.io/openapi-sdk/v1/rust/longport/index.html)
19-
- [v2](https://longportapp.github.io/openapi-sdk/v2/rust/longport/index.html)
18+
- https://longportapp.github.io/openapi/rust/longport/index.html

i18n/zh-HK/docusaurus-plugin-content-docs/current/getting-started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ class Main {
306306
Config config = Config.fromEnv();
307307

308308
// Init config without ENV
309-
// https://longportapp.github.io/openapi-sdk/java/com/longport/ConfigBuilder.html
309+
// https://longportapp.github.io/openapi/java/com/longport/ConfigBuilder.html
310310
// Config config = ConfigBuilder("YOUR_APP_KEY", "YOUR_APP_SECRET", "YOUR_ACCESS_TOKEN").build();
311311

312312
try (TradeContext ctx = TradeContext.create(config).get()) {
@@ -991,7 +991,7 @@ Order {
991991

992992
SDK 的詳細 API 文檔請訪問:
993993

994-
<https://longportapp.github.io/openapi-sdk/>
994+
<https://longportapp.github.io/openapi/>
995995

996996
## 回饋及溝通
997997

i18n/zh-HK/sdk-versions/cpp.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
### 下載地址
66

7-
- [1.1.7](https://static.lbctrl.com/openapi-sdk/openapi-cpp-sdk-1.1.7.tar.gz)
87
- [2.1.10](https://static.lbctrl.com/openapi-sdk/openapi-cpp-sdk-2.1.10.tar.gz)
98

109
### API 文檔
1110

12-
- [v1](https://longportapp.github.io/openapi-sdk/v1/cpp/index.html)
13-
- [v2](https://longportapp.github.io/openapi-sdk/v2/cpp/index.html)
11+
- https://longportapp.github.io/openapi/cpp/index.html

i18n/zh-HK/sdk-versions/java.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@
1818

1919
### API 文檔
2020

21-
- [v1](https://longportapp.github.io/openapi-sdk/v1/java/index.html)
22-
- [v2](https://longportapp.github.io/openapi-sdk/v2/java/index.html)
21+
- https://longportapp.github.io/openapi/java/index.html

i18n/zh-HK/sdk-versions/nodejs.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ $ npm install longport --save
1414

1515
### API 文檔
1616

17-
- [v1](https://longportapp.github.io/openapi-sdk/v1/nodejs/index.html)
18-
- [v2](https://longportapp.github.io/openapi-sdk/v2/nodejs/index.html)
17+
- https://longportapp.github.io/openapi/nodejs/index.html

i18n/zh-HK/sdk-versions/python.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ $ pip3 install longport
1212

1313
### API 文檔
1414

15-
- [v1](https://longportapp.github.io/openapi-sdk/v1/python/index.html)
16-
- [v2](https://longportapp.github.io/openapi-sdk/v2/python/index.html)
15+
- https://longportapp.github.io/openapi/python/index.html

i18n/zh-HK/sdk-versions/rust.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ longport = "1.0.0"
1515

1616
### API 文檔
1717

18-
- [v1](https://longportapp.github.io/openapi-sdk/v1/rust/longport/index.html)
19-
- [v2](https://longportapp.github.io/openapi-sdk/v2/rust/longport/index.html)
18+
- https://longportapp.github.io/openapi/rust/longport/index.html

src/theme/MDXComponents/SDKLinks.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ export const SDKLinks = ({
3232
title: 'Python',
3333
color: '#3572a5',
3434
label: `longport.openapi.${klass}.${snakeMethod}`,
35-
url: `https://longportapp.github.io/openapi-sdk/python/${module}_context/#longport.openapi.${klass}.${snakeMethod}`,
35+
url: `https://longportapp.github.io/openapi/python/${module}_context/#longport.openapi.${klass}.${snakeMethod}`,
3636
},
3737
{
3838
title: 'Rust',
3939
color: '#dea584',
4040
label: `longport::${module}::${klass}#${snakeMethod}`,
41-
url: `https://longportapp.github.io/openapi-sdk/rust/longport/${module}/struct.${klass}.html#method.${snakeMethod}`,
41+
url: `https://longportapp.github.io/openapi/rust/longport/${module}/struct.${klass}.html#method.${snakeMethod}`,
4242
},
4343
{
4444
title: 'Go',
@@ -50,7 +50,7 @@ export const SDKLinks = ({
5050
title: 'Node.js',
5151
color: '#f1e05a',
5252
label: `${klass}#${camelMethod}`,
53-
url: `https://longportapp.github.io/openapi-sdk/nodejs/classes/${klass}.html#${camelMethod}`,
53+
url: `https://longportapp.github.io/openapi/nodejs/classes/${klass}.html#${camelMethod}`,
5454
},
5555
]
5656

@@ -59,7 +59,7 @@ export const SDKLinks = ({
5959
title: 'Java',
6060
color: '#b07219',
6161
label: `${klass}.${getPrefixedMethod}`,
62-
url: `https://longportapp.github.io/openapi-sdk/java/com/longport/${module}/${klass}.html#${methodJava}`,
62+
url: `https://longportapp.github.io/openapi/java/com/longport/${module}/${klass}.html#${methodJava}`,
6363
})
6464
}
6565

0 commit comments

Comments
 (0)