@dshtrading/connector-xysz 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +5 -5
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -70,7 +70,7 @@ function apply(ctx, config) {
|
|
|
70
70
|
};
|
|
71
71
|
register(defineTool({
|
|
72
72
|
name: "cn_get_ticker",
|
|
73
|
-
description: "Get the latest Level-1 quote for an A-share stock from
|
|
73
|
+
description: "Get the latest Level-1 quote for an A-share stock from China Galaxy Securities Xingyao Shuzhi (AmazingData). Symbol accepts the canonical A-share form (600519.SH) or a bare 6-digit code (600519). Returns last price, previous close, change percent and bid/ask-1 from the authoritative exchange feed.",
|
|
74
74
|
parameters: { symbol: {
|
|
75
75
|
type: "string",
|
|
76
76
|
required: true,
|
|
@@ -89,7 +89,7 @@ function apply(ctx, config) {
|
|
|
89
89
|
}));
|
|
90
90
|
register(defineTool({
|
|
91
91
|
name: "cn_get_klines",
|
|
92
|
-
description: "Get historical K-lines for A-share stocks from
|
|
92
|
+
description: "Get historical K-lines for A-share stocks from China Galaxy Securities Xingyao Shuzhi (AmazingData). Intervals: " + INTERVAL_VOCABULARY.join("/") + " (dsh-trading vocabulary; upstream serves the full A-share history since 2013). Returns up to limit most recent candles in ascending time order.",
|
|
93
93
|
parameters: {
|
|
94
94
|
symbol: {
|
|
95
95
|
type: "string",
|
|
@@ -122,7 +122,7 @@ function apply(ctx, config) {
|
|
|
122
122
|
}));
|
|
123
123
|
register(defineTool({
|
|
124
124
|
name: "cn_get_orderbook",
|
|
125
|
-
description: "Get the 5-level order book (bid/ask prices and sizes) for an A-share stock from
|
|
125
|
+
description: "Get the 5-level order book (bid/ask prices and sizes) for an A-share stock from China Galaxy Securities Xingyao Shuzhi (AmazingData). Derived from the latest exchange Level-1 snapshot row of the current trading day.",
|
|
126
126
|
parameters: { symbol: {
|
|
127
127
|
type: "string",
|
|
128
128
|
required: true,
|
|
@@ -141,7 +141,7 @@ function apply(ctx, config) {
|
|
|
141
141
|
}));
|
|
142
142
|
register(defineTool({
|
|
143
143
|
name: "cn_list_instruments",
|
|
144
|
-
description: "List the A-share instrument universe (Shanghai/Shenzhen/Beijing, about 5500 symbols with Chinese short names) from
|
|
144
|
+
description: "List the A-share instrument universe (Shanghai/Shenzhen/Beijing, about 5500 symbols with Chinese short names) from China Galaxy Securities Xingyao Shuzhi (AmazingData). Optional query filters by code or name substring.",
|
|
145
145
|
parameters: { query: {
|
|
146
146
|
type: "string",
|
|
147
147
|
description: "Optional code or name filter, e.g. 茅台 or 6005"
|
|
@@ -159,7 +159,7 @@ function apply(ctx, config) {
|
|
|
159
159
|
}));
|
|
160
160
|
register(defineTool({
|
|
161
161
|
name: "cn_get_fundamentals",
|
|
162
|
-
description: "Get an A-share fundamental snapshot from
|
|
162
|
+
description: "Get an A-share fundamental snapshot from China Galaxy Securities Xingyao Shuzhi (AmazingData): company short name, listing board/date and the 52-week high/low derived from weekly K-lines.",
|
|
163
163
|
parameters: { symbol: {
|
|
164
164
|
type: "string",
|
|
165
165
|
required: true,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dshtrading/connector-xysz",
|
|
3
3
|
"description": "中国银河证券星耀数智(AmazingData / tgw)A 股数据源连接器(数据面-only):经本机/局域网的 FastAPI 封装服务 xysz-api 提供 tradingCnMarketData 与 cn_* 行情工具,无交易通道",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@dshtrading/api": "^0.
|
|
24
|
+
"@dshtrading/api": "^0.6.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@deepseek-ai/cordis": ">=4.0.0",
|