@dshtrading/kit-hk 0.1.0
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/LICENSE +75 -0
- package/assets/skills/hk-risk-checklist.md +1 -0
- package/assets/skills/indicator-authoring.md +218 -0
- package/assets/skills/knowledge-curation.md +98 -0
- package/assets/skills/trading-notes-setup.md +91 -0
- package/assets/skills/trading-strategy-paradigms.md +65 -0
- package/lib/api/lib/index.d.ts +720 -0
- package/lib/fundamentals.d.ts +28 -0
- package/lib/fundamentals.js +216 -0
- package/lib/index.d.ts +21 -0
- package/lib/index.js +224 -0
- package/lib/news.d.ts +51 -0
- package/lib/news.js +485 -0
- package/package.json +39 -0
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
//#region ../api/lib/index.d.ts
|
|
2
|
+
//#region src/index.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* @dshtrading/api — 纯类型契约包(crypto-slice-plan §关键接口草案)。
|
|
5
|
+
*
|
|
6
|
+
* 零运行时、零依赖:服务契约由连接器实现(ctx 键按市场命名空间,如 ctx.tradingCrypto),
|
|
7
|
+
* 消费方只依赖这里的类型。交易安全闸门(铁律 #3)在类型层面体现为
|
|
8
|
+
* OrderRequest.dryRun 默认 true、错误词汇含 LIVE_TRADING_DISABLED / APPROVAL_DENIED。
|
|
9
|
+
*
|
|
10
|
+
* @module @dshtrading/api
|
|
11
|
+
*/
|
|
12
|
+
/** K线周期(Binance 现货/合约 interval 词汇)。 */
|
|
13
|
+
type Interval = '1m' | '3m' | '5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '8h' | '12h' | '1d' | '3d' | '1w' | '1M';
|
|
14
|
+
/** 最新行情快照(公共数据,无需凭证)。 */
|
|
15
|
+
interface Ticker {
|
|
16
|
+
/** 交易对符号,**市场规范词汇**(docs/symbol-vocabulary.md:crypto=BTCUSDT,us=AAPL,cn=600519.SH,hk=00700.HK)。 */
|
|
17
|
+
readonly symbol: string;
|
|
18
|
+
/** 标的/公司名称(如“紫光股份”、“苹果”、“腾讯控股”;部分数据源可缺省)。 */
|
|
19
|
+
readonly name?: string;
|
|
20
|
+
/** 最新成交价。 */
|
|
21
|
+
readonly price: number;
|
|
22
|
+
/** 最优买价(部分数据源可缺省)。 */
|
|
23
|
+
readonly bid?: number;
|
|
24
|
+
/** 最优卖价(部分数据源可缺省)。 */
|
|
25
|
+
readonly ask?: number;
|
|
26
|
+
/** 24h 成交量(base 资产计)。 */
|
|
27
|
+
readonly volume?: number;
|
|
28
|
+
/** 快照时间(epoch ms)。 */
|
|
29
|
+
readonly timestamp: number;
|
|
30
|
+
/** 官方昨收(涨跌基准锚点;部分数据源可缺省,缺省时消费方退回日 K 自算)。 */
|
|
31
|
+
readonly prevClose?: number;
|
|
32
|
+
/** 相对昨收的涨跌幅(百分比,如 -0.89 表示 -0.89%;部分数据源可缺省)。 */
|
|
33
|
+
readonly changePercent?: number;
|
|
34
|
+
}
|
|
35
|
+
/** 单根 K 线。 */
|
|
36
|
+
interface Kline {
|
|
37
|
+
readonly openTime: number;
|
|
38
|
+
readonly open: number;
|
|
39
|
+
readonly high: number;
|
|
40
|
+
readonly low: number;
|
|
41
|
+
readonly close: number;
|
|
42
|
+
readonly volume: number;
|
|
43
|
+
readonly closeTime: number;
|
|
44
|
+
}
|
|
45
|
+
/** 衍生品市场指标快照(持仓量/多空比/资金费等)。 */
|
|
46
|
+
interface DerivativesData {
|
|
47
|
+
/** 交易对符号,市场规范词汇(如 BTCUSDT 或 BTCUSDT-SWAP)。 */
|
|
48
|
+
readonly symbol: string;
|
|
49
|
+
/** 数据来源(如 binance / okx)。 */
|
|
50
|
+
readonly source: string;
|
|
51
|
+
/** 未平仓合约量(Open Interest,base 币数或张数)。 */
|
|
52
|
+
readonly openInterest?: number;
|
|
53
|
+
/** 未平仓合约总价值(USD 或 quote 计价)。 */
|
|
54
|
+
readonly openInterestValue?: number;
|
|
55
|
+
/** 多空人数比(Long/Short Account Ratio)。 */
|
|
56
|
+
readonly longShortRatio?: number;
|
|
57
|
+
/** 大户持仓多空比(Top Trader Long/Short Position Ratio)。 */
|
|
58
|
+
readonly topTraderLongShortRatio?: number;
|
|
59
|
+
/** 主动买入/卖出量比(Taker Buy/Sell Volume Ratio)。 */
|
|
60
|
+
readonly takerBuySellRatio?: number;
|
|
61
|
+
/** 最新资金费率(小数,如 0.0001 表示 0.01%)。 */
|
|
62
|
+
readonly fundingRate?: number;
|
|
63
|
+
/** 预测(下一期)资金费率(小数;交易所未发布预测时缺省,issue #54)。 */
|
|
64
|
+
readonly nextFundingRate?: number;
|
|
65
|
+
/** 下一期资金费率结算时间(epoch ms,GUI 倒计时用,issue #54)。 */
|
|
66
|
+
readonly nextFundingTime?: number;
|
|
67
|
+
/** 标记价格(Mark Price,永续合约;issue #54 基差卡用)。 */
|
|
68
|
+
readonly markPrice?: number;
|
|
69
|
+
/** 指数价格(Index Price,现货指数;与 markPrice 配对计算基差)。 */
|
|
70
|
+
readonly indexPrice?: number;
|
|
71
|
+
/** 快照时间(epoch ms)。 */
|
|
72
|
+
readonly timestamp: number;
|
|
73
|
+
}
|
|
74
|
+
/** 衍生品时序数据点(资金费率历史 / OI 历史共用词汇,issue #54)。 */
|
|
75
|
+
interface DerivativesPoint {
|
|
76
|
+
/** 采样时间(epoch ms)。 */
|
|
77
|
+
readonly time: number;
|
|
78
|
+
/** 采样值(费率序列为小数费率;OI 序列单位与快照 openInterest 同语义)。 */
|
|
79
|
+
readonly value: number;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 衍生品历史序列(GUI「衍生品」页签趋势卡用,issue #54):
|
|
83
|
+
* 资金费率历史 + 未平仓量历史,时间一律升序(旧→新,与 K 线序列同向)。
|
|
84
|
+
* 可选方法 getDerivativesHistory 的返回面;任一序列不可得时该字段缺省,
|
|
85
|
+
* 消费方按卡降级(隐藏趋势图、保留快照读数)。
|
|
86
|
+
*/
|
|
87
|
+
interface DerivativesHistory {
|
|
88
|
+
/** 交易对符号,市场规范词汇(如 BTCUSDT-SWAP)。 */
|
|
89
|
+
readonly symbol: string;
|
|
90
|
+
/** 数据来源(如 binance / okx)。 */
|
|
91
|
+
readonly source: string;
|
|
92
|
+
/** 资金费率历史(时间升序,value 为小数费率)。 */
|
|
93
|
+
readonly fundingRates?: DerivativesPoint[];
|
|
94
|
+
/** OI 历史(时间升序,value 单位与 DerivativesData.openInterest 同语义)。 */
|
|
95
|
+
readonly openInterest?: DerivativesPoint[];
|
|
96
|
+
}
|
|
97
|
+
/** 加密标的代币经济学与基本面快照。 */
|
|
98
|
+
interface CryptoFundamentals {
|
|
99
|
+
/** 规范符号或代币代码(如 BTCUSDT 或 BTC)。 */
|
|
100
|
+
readonly symbol: string;
|
|
101
|
+
/** 标的资产名称(如 Bitcoin)。 */
|
|
102
|
+
readonly name?: string;
|
|
103
|
+
/** 全球市值排名(Market Cap Rank)。 */
|
|
104
|
+
readonly rank?: number;
|
|
105
|
+
/** 流通市值(USD 计价)。 */
|
|
106
|
+
readonly marketCapUsd?: number;
|
|
107
|
+
/** 完全稀释估值(FDV,USD 计价)。 */
|
|
108
|
+
readonly fdvUsd?: number;
|
|
109
|
+
/** 流通供应量。 */
|
|
110
|
+
readonly circulatingSupply?: number;
|
|
111
|
+
/** 总供应量 / 最大供应量。 */
|
|
112
|
+
readonly totalSupply?: number;
|
|
113
|
+
/** 24h 交易量(USD 计价)。 */
|
|
114
|
+
readonly volume24hUsd?: number;
|
|
115
|
+
/** 快照时间(epoch ms)。 */
|
|
116
|
+
readonly timestamp: number;
|
|
117
|
+
}
|
|
118
|
+
/** 股票市场标的基本面与财务估值快照(US/CN/HK)。 */
|
|
119
|
+
interface StockFundamentals {
|
|
120
|
+
/** 标的规范符号(如 AAPL, 600519.SH, 00700.HK)。 */
|
|
121
|
+
readonly symbol: string;
|
|
122
|
+
/** 公司/标的名称。 */
|
|
123
|
+
readonly name?: string;
|
|
124
|
+
/** 总市值(本位币计价)。 */
|
|
125
|
+
readonly marketCap?: number;
|
|
126
|
+
/** 流通市值(A 股/港股适用)。 */
|
|
127
|
+
readonly floatMarketCap?: number;
|
|
128
|
+
/** 滚动市盈率 PE (TTM)。 */
|
|
129
|
+
readonly peTtm?: number;
|
|
130
|
+
/** 静态市盈率 PE (静)。 */
|
|
131
|
+
readonly peStatic?: number;
|
|
132
|
+
/** 动态/预测市盈率 Forward / Dynamic PE。 */
|
|
133
|
+
readonly peDynamic?: number;
|
|
134
|
+
/** 市净率 PB。 */
|
|
135
|
+
readonly pb?: number;
|
|
136
|
+
/** 市销率 PS。 */
|
|
137
|
+
readonly ps?: number;
|
|
138
|
+
/** 每股收益 EPS。 */
|
|
139
|
+
readonly eps?: number;
|
|
140
|
+
/** 每股净资产 BPS。 */
|
|
141
|
+
readonly bps?: number;
|
|
142
|
+
/** 股息率(小数,如 0.015 表示 1.5%)。 */
|
|
143
|
+
readonly dividendYield?: number;
|
|
144
|
+
/** 换手率(小数或百分比)。 */
|
|
145
|
+
readonly turnoverRate?: number;
|
|
146
|
+
/** 振幅(百分比)。 */
|
|
147
|
+
readonly amplitudePercent?: number;
|
|
148
|
+
/** 涨停价(A 股适用)。 */
|
|
149
|
+
readonly limitUpPrice?: number;
|
|
150
|
+
/** 跌停价(A 股适用)。 */
|
|
151
|
+
readonly limitDownPrice?: number;
|
|
152
|
+
/** 52 周最高价。 */
|
|
153
|
+
readonly fiftyTwoWeekHigh?: number;
|
|
154
|
+
/** 52 周最低价。 */
|
|
155
|
+
readonly fiftyTwoWeekLow?: number;
|
|
156
|
+
/** 快照时间(epoch ms)。 */
|
|
157
|
+
readonly timestamp: number;
|
|
158
|
+
}
|
|
159
|
+
/** 盘口档位(价格 + 挂单量,量单位=标的基准单位:股票股、crypto 币)。 */
|
|
160
|
+
interface OrderbookLevel {
|
|
161
|
+
readonly price: number;
|
|
162
|
+
readonly amount: number;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* 盘口快照(GUI「盘口」竖栏用,issue #39)。实现保证:bids 按价格降序(买一在前)、
|
|
166
|
+
* asks 按价格升序(卖一在前),档位数由数据源决定(沪深五档、crypto 常见 5~20 档)。
|
|
167
|
+
*/
|
|
168
|
+
interface Orderbook {
|
|
169
|
+
readonly symbol: string;
|
|
170
|
+
readonly bids: readonly OrderbookLevel[];
|
|
171
|
+
readonly asks: readonly OrderbookLevel[];
|
|
172
|
+
/** 快照时间(epoch ms)。 */
|
|
173
|
+
readonly timestamp: number;
|
|
174
|
+
}
|
|
175
|
+
/** 逐笔成交(taker 视角:side 为主动方;流水单条)。 */
|
|
176
|
+
interface TradeTick {
|
|
177
|
+
/** 交易所成交 id(字符串透传,排序稳定性由时间戳保证)。 */
|
|
178
|
+
readonly id: string;
|
|
179
|
+
readonly symbol: string;
|
|
180
|
+
readonly price: number;
|
|
181
|
+
/** 成交量(基准单位,同 OrderbookLevel.amount)。 */
|
|
182
|
+
readonly amount: number;
|
|
183
|
+
/** 主动方向:buy=主动买(外盘)、sell=主动卖(内盘);数据源缺方向时 unknown。 */
|
|
184
|
+
readonly side: 'buy' | 'sell' | 'unknown';
|
|
185
|
+
readonly timestamp: number;
|
|
186
|
+
}
|
|
187
|
+
/** 单期财务指标数值与同比变动。 */
|
|
188
|
+
interface FinancialCell {
|
|
189
|
+
/** 指标数值(如 14.18 元 或 19.02%)。 */
|
|
190
|
+
readonly value?: number;
|
|
191
|
+
/** 同比增长率(百分比,如 -3.69 表示 -3.69%,+522.77 表示 +522.77%)。 */
|
|
192
|
+
readonly changePercent?: number;
|
|
193
|
+
}
|
|
194
|
+
/** 单个财务指标行(多期序列)。 */
|
|
195
|
+
interface FinancialIndicatorRow {
|
|
196
|
+
readonly id: string;
|
|
197
|
+
readonly name: string;
|
|
198
|
+
readonly unit?: string;
|
|
199
|
+
/** 期别映射 -> 该期读数与同比(key 对应 periods 数组中的元素,如 '2025/H1')。 */
|
|
200
|
+
readonly values: Record<string, FinancialCell>;
|
|
201
|
+
}
|
|
202
|
+
/** 财务指标大类分组(如“每股指标”、“盈利能力”、“现金流量”等)。 */
|
|
203
|
+
interface FinancialReportGroup {
|
|
204
|
+
readonly id: string;
|
|
205
|
+
readonly title: string;
|
|
206
|
+
readonly rows: FinancialIndicatorRow[];
|
|
207
|
+
}
|
|
208
|
+
/** 历史多期财务报表与指标矩阵(富途牛牛同款)。 */
|
|
209
|
+
interface FinancialReportMatrix {
|
|
210
|
+
/** 币种(如 CNY / HKD / USD)。 */
|
|
211
|
+
readonly currency: string;
|
|
212
|
+
/** 最新报告期标题(如 "2026财年H1 财报")。 */
|
|
213
|
+
readonly latestReportTitle?: string;
|
|
214
|
+
/** 报告期有序列表(由远及近,如 ['2024/H1', '2024/Q3', '2024/FY', '2025/H1', '2025/Q3', '2025/FY', '2026/Q1', '2026/H1'])。 */
|
|
215
|
+
readonly periods: string[];
|
|
216
|
+
/** 分组列表。 */
|
|
217
|
+
readonly groups: FinancialReportGroup[];
|
|
218
|
+
}
|
|
219
|
+
/** 股东持股信息行。 */
|
|
220
|
+
interface ShareholderItem {
|
|
221
|
+
readonly name: string;
|
|
222
|
+
readonly shares?: number;
|
|
223
|
+
readonly ratio?: number;
|
|
224
|
+
readonly change?: string;
|
|
225
|
+
}
|
|
226
|
+
/** 公司/标的简况信息。 */
|
|
227
|
+
interface CompanyProfile {
|
|
228
|
+
readonly symbol: string;
|
|
229
|
+
readonly name?: string;
|
|
230
|
+
readonly fullName?: string;
|
|
231
|
+
readonly nameEn?: string;
|
|
232
|
+
readonly industry?: string;
|
|
233
|
+
readonly sector?: string;
|
|
234
|
+
readonly legalRepresentative?: string;
|
|
235
|
+
readonly chairman?: string;
|
|
236
|
+
readonly generalManager?: string;
|
|
237
|
+
readonly boardSecretary?: string;
|
|
238
|
+
readonly registeredCapital?: string;
|
|
239
|
+
readonly address?: string;
|
|
240
|
+
readonly businessScope?: string;
|
|
241
|
+
readonly employeeCount?: string;
|
|
242
|
+
readonly description?: string;
|
|
243
|
+
readonly listingDate?: string;
|
|
244
|
+
readonly website?: string;
|
|
245
|
+
readonly executives?: Array<{
|
|
246
|
+
name: string;
|
|
247
|
+
title: string;
|
|
248
|
+
}>;
|
|
249
|
+
}
|
|
250
|
+
/** 机构盈利预测与目标价一致预期(富途 预测)。 */
|
|
251
|
+
interface ForecastSummary {
|
|
252
|
+
readonly epsCurrentYear?: number;
|
|
253
|
+
readonly epsNextYear?: number;
|
|
254
|
+
readonly revenueGrowthAvg?: number;
|
|
255
|
+
readonly netProfitGrowthAvg?: number;
|
|
256
|
+
readonly targetPriceAvg?: number;
|
|
257
|
+
readonly buyRatingCount?: number;
|
|
258
|
+
readonly holdRatingCount?: number;
|
|
259
|
+
readonly sellRatingCount?: number;
|
|
260
|
+
readonly totalOrgs?: number;
|
|
261
|
+
readonly items?: Array<{
|
|
262
|
+
readonly year: string;
|
|
263
|
+
readonly eps: number;
|
|
264
|
+
readonly revenue: number;
|
|
265
|
+
readonly netProfit: number;
|
|
266
|
+
readonly orgCount?: number;
|
|
267
|
+
}>;
|
|
268
|
+
}
|
|
269
|
+
/** 研报精选(富途 晨星研报/券商研报)。 */
|
|
270
|
+
interface ResearchReportItem {
|
|
271
|
+
readonly id: string;
|
|
272
|
+
readonly title: string;
|
|
273
|
+
readonly orgName: string;
|
|
274
|
+
readonly author?: string;
|
|
275
|
+
readonly rating?: string;
|
|
276
|
+
readonly publishDate: string;
|
|
277
|
+
readonly summary?: string;
|
|
278
|
+
readonly url?: string;
|
|
279
|
+
}
|
|
280
|
+
/** 主营构成(富途 经营分析/主营构成)。 */
|
|
281
|
+
interface MainOperationSegment {
|
|
282
|
+
readonly segmentName: string;
|
|
283
|
+
readonly classification: 'product' | 'industry' | 'region';
|
|
284
|
+
readonly revenue: number;
|
|
285
|
+
readonly revenueRatio: number;
|
|
286
|
+
readonly grossProfit?: number;
|
|
287
|
+
readonly grossMargin?: number;
|
|
288
|
+
}
|
|
289
|
+
/** 经营效率指标(富途 经营分析/经营效率)。 */
|
|
290
|
+
interface OperatingEfficiency {
|
|
291
|
+
readonly inventoryTurnoverDays?: number;
|
|
292
|
+
readonly accountsReceivableTurnoverDays?: number;
|
|
293
|
+
readonly operatingCycleDays?: number;
|
|
294
|
+
readonly totalAssetTurnover?: number;
|
|
295
|
+
readonly netProfitMargin?: number;
|
|
296
|
+
readonly grossProfitMargin?: number;
|
|
297
|
+
readonly currentRatio?: number;
|
|
298
|
+
readonly quickRatio?: number;
|
|
299
|
+
readonly roe?: number;
|
|
300
|
+
}
|
|
301
|
+
/** 股东增减持 / 内部人交易(富途 聪明钱/股东增减持)。 */
|
|
302
|
+
interface InsiderTradeItem {
|
|
303
|
+
readonly holderName: string;
|
|
304
|
+
readonly changeType: '增持' | '减持' | '不变' | '新进' | string;
|
|
305
|
+
readonly changeShares: number;
|
|
306
|
+
readonly changeRatio?: number;
|
|
307
|
+
readonly postHoldingRatio?: number;
|
|
308
|
+
readonly date?: string;
|
|
309
|
+
readonly averagePrice?: number;
|
|
310
|
+
}
|
|
311
|
+
/** 机构持股明细(富途 聪明钱/机构持股)。 */
|
|
312
|
+
interface InstitutionalHoldingItem {
|
|
313
|
+
readonly orgName?: string;
|
|
314
|
+
readonly orgType: string;
|
|
315
|
+
readonly orgCount?: number;
|
|
316
|
+
readonly holdingShares: number;
|
|
317
|
+
readonly holdingRatio: number;
|
|
318
|
+
readonly marketCap?: number;
|
|
319
|
+
readonly change?: string;
|
|
320
|
+
readonly changeRatio?: number;
|
|
321
|
+
}
|
|
322
|
+
/** 分红派息方案(富途 公司行动/分红派息)。 */
|
|
323
|
+
interface DividendItem {
|
|
324
|
+
readonly planYear: string;
|
|
325
|
+
readonly dividendPlan: string;
|
|
326
|
+
readonly cashDividend?: number;
|
|
327
|
+
readonly exDividendDate?: string;
|
|
328
|
+
readonly dividendDate?: string;
|
|
329
|
+
readonly recordDate?: string;
|
|
330
|
+
readonly dividendYield?: number;
|
|
331
|
+
}
|
|
332
|
+
/** 股份回购方案(富途 公司行动/回购)。 */
|
|
333
|
+
interface BuybackItem {
|
|
334
|
+
readonly date: string;
|
|
335
|
+
readonly buybackAmount?: number;
|
|
336
|
+
readonly buybackShares?: number;
|
|
337
|
+
readonly priceRange?: string;
|
|
338
|
+
readonly status: string;
|
|
339
|
+
}
|
|
340
|
+
/** 拆股并股 / 送转(富途 公司行动/拆股并股)。 */
|
|
341
|
+
interface SplitItem {
|
|
342
|
+
readonly date: string;
|
|
343
|
+
readonly ratio: string;
|
|
344
|
+
readonly description: string;
|
|
345
|
+
}
|
|
346
|
+
/** 股东户数与筹码集中度(富途 聪明钱)。 */
|
|
347
|
+
interface HolderNumSummary {
|
|
348
|
+
readonly totalHolders?: number;
|
|
349
|
+
readonly totalHoldersChangeRatio?: number;
|
|
350
|
+
readonly avgFreeShares?: number;
|
|
351
|
+
readonly avgHoldAmount?: number;
|
|
352
|
+
readonly concentration?: string;
|
|
353
|
+
readonly reportDate?: string;
|
|
354
|
+
}
|
|
355
|
+
/** 集合竞价快照与强弱基准(同花顺 A 股竞价数据面)。 */
|
|
356
|
+
interface AuctionSnapshot {
|
|
357
|
+
readonly symbol: string;
|
|
358
|
+
readonly matchPrice?: number;
|
|
359
|
+
readonly matchVolume?: number;
|
|
360
|
+
readonly unmatchedVolume?: number;
|
|
361
|
+
readonly unmatchedSide?: 'buy' | 'sell';
|
|
362
|
+
readonly strengthIndex?: number;
|
|
363
|
+
readonly stage?: 'call' | 'final';
|
|
364
|
+
readonly timestamp: number;
|
|
365
|
+
}
|
|
366
|
+
/** 涨跌停池与连板天梯条目(同花顺特色短线数据面)。 */
|
|
367
|
+
interface LimitUpPoolItem {
|
|
368
|
+
readonly symbol: string;
|
|
369
|
+
readonly name: string;
|
|
370
|
+
readonly price: number;
|
|
371
|
+
readonly changePercent: number;
|
|
372
|
+
readonly limitType: 'up' | 'down' | 'broken';
|
|
373
|
+
readonly firstLimitTime?: string;
|
|
374
|
+
readonly lastLimitTime?: string;
|
|
375
|
+
readonly limitOrderVolume?: number;
|
|
376
|
+
readonly limitOrderAmount?: number;
|
|
377
|
+
readonly consecutiveBoards?: number;
|
|
378
|
+
readonly breakCount?: number;
|
|
379
|
+
readonly sectorConcept?: string;
|
|
380
|
+
}
|
|
381
|
+
/** 龙虎榜席位与机构明细条目(同花顺特色资金数据面)。 */
|
|
382
|
+
interface DragonTigerItem {
|
|
383
|
+
readonly symbol: string;
|
|
384
|
+
readonly name: string;
|
|
385
|
+
readonly closePrice: number;
|
|
386
|
+
readonly changePercent: number;
|
|
387
|
+
readonly reason: string;
|
|
388
|
+
readonly netBuyAmount: number;
|
|
389
|
+
readonly buyAmount: number;
|
|
390
|
+
readonly sellAmount: number;
|
|
391
|
+
readonly institutionalNetBuy?: number;
|
|
392
|
+
readonly topBrokers?: Array<{
|
|
393
|
+
readonly rank: number;
|
|
394
|
+
readonly brokerName: string;
|
|
395
|
+
readonly type: 'buy' | 'sell';
|
|
396
|
+
readonly buyAmount: number;
|
|
397
|
+
readonly sellAmount: number;
|
|
398
|
+
readonly isInstitutional: boolean;
|
|
399
|
+
}>;
|
|
400
|
+
readonly tradeDate: string;
|
|
401
|
+
}
|
|
402
|
+
/** 聚合基本面数据包(供 Bridge 端点向前端全量交付)。 */
|
|
403
|
+
interface FundamentalsPackage {
|
|
404
|
+
readonly market: string;
|
|
405
|
+
readonly symbol: string;
|
|
406
|
+
readonly stock?: StockFundamentals;
|
|
407
|
+
readonly crypto?: CryptoFundamentals;
|
|
408
|
+
readonly matrix?: FinancialReportMatrix;
|
|
409
|
+
readonly profile?: CompanyProfile;
|
|
410
|
+
readonly shareholders?: ShareholderItem[];
|
|
411
|
+
readonly forecast?: ForecastSummary;
|
|
412
|
+
readonly reports?: ResearchReportItem[];
|
|
413
|
+
readonly mainOperations?: MainOperationSegment[];
|
|
414
|
+
readonly efficiency?: OperatingEfficiency;
|
|
415
|
+
readonly insiderTrades?: InsiderTradeItem[];
|
|
416
|
+
readonly institutionalHoldings?: InstitutionalHoldingItem[];
|
|
417
|
+
readonly holderSummary?: HolderNumSummary;
|
|
418
|
+
readonly dividends?: DividendItem[];
|
|
419
|
+
readonly buybacks?: BuybackItem[];
|
|
420
|
+
readonly splits?: SplitItem[];
|
|
421
|
+
readonly auction?: AuctionSnapshot;
|
|
422
|
+
readonly limitUpItem?: LimitUpPoolItem;
|
|
423
|
+
readonly dragonTiger?: DragonTigerItem;
|
|
424
|
+
}
|
|
425
|
+
type PositionSide = 'long' | 'short';
|
|
426
|
+
/** 持仓快照。 */
|
|
427
|
+
interface Position {
|
|
428
|
+
readonly symbol: string;
|
|
429
|
+
readonly side: PositionSide;
|
|
430
|
+
/** 仓位数量(正数;方向由 side 表达)。 */
|
|
431
|
+
readonly size: number;
|
|
432
|
+
readonly entryPrice: number;
|
|
433
|
+
readonly markPrice?: number;
|
|
434
|
+
readonly unrealizedPnl?: number;
|
|
435
|
+
readonly leverage?: number;
|
|
436
|
+
readonly timestamp: number;
|
|
437
|
+
}
|
|
438
|
+
type OrderSide = 'buy' | 'sell';
|
|
439
|
+
type OrderType = 'limit' | 'market';
|
|
440
|
+
type OrderStatus = 'new' | 'partially_filled' | 'filled' | 'canceled' | 'rejected' | 'expired';
|
|
441
|
+
/** 下单请求(安全闸门:dryRun 缺省视为 true)。 */
|
|
442
|
+
interface OrderRequest {
|
|
443
|
+
readonly symbol: string;
|
|
444
|
+
readonly side: OrderSide;
|
|
445
|
+
readonly type: OrderType;
|
|
446
|
+
readonly quantity: number;
|
|
447
|
+
/** limit 单必填。 */
|
|
448
|
+
readonly price?: number;
|
|
449
|
+
/** 缺省/true 时仅模拟,不触碰交易所。实盘还受插件 liveTrading 闸门与 approval 约束 [S4]。 */
|
|
450
|
+
readonly dryRun?: boolean;
|
|
451
|
+
}
|
|
452
|
+
/** 订单回执/状态。 */
|
|
453
|
+
interface Order {
|
|
454
|
+
readonly id: string;
|
|
455
|
+
readonly symbol: string;
|
|
456
|
+
readonly side: OrderSide;
|
|
457
|
+
readonly type: OrderType;
|
|
458
|
+
readonly status: OrderStatus;
|
|
459
|
+
readonly price?: number;
|
|
460
|
+
readonly quantity: number;
|
|
461
|
+
readonly filledQuantity?: number;
|
|
462
|
+
/** 本次订单是否为模拟单(回执必须显式回带,防 dry-run 语义丢失)。 */
|
|
463
|
+
readonly dryRun: boolean;
|
|
464
|
+
readonly timestamp: number;
|
|
465
|
+
}
|
|
466
|
+
interface AccountBalance {
|
|
467
|
+
readonly asset: string;
|
|
468
|
+
readonly free: number;
|
|
469
|
+
readonly locked: number;
|
|
470
|
+
}
|
|
471
|
+
/** 成交流水单条(GUI 交易台「成交历史」用,issue #40)。 */
|
|
472
|
+
interface TradeFill {
|
|
473
|
+
/** 交易所成交 id。 */
|
|
474
|
+
readonly id: string;
|
|
475
|
+
readonly symbol: string;
|
|
476
|
+
readonly side: OrderSide;
|
|
477
|
+
readonly price: number;
|
|
478
|
+
/** 成交量(base 币数)。 */
|
|
479
|
+
readonly amount: number;
|
|
480
|
+
/** 手续费(绝对值,币种由 feeAsset 表达)。 */
|
|
481
|
+
readonly fee?: number;
|
|
482
|
+
readonly feeAsset?: string;
|
|
483
|
+
readonly timestamp: number;
|
|
484
|
+
}
|
|
485
|
+
/** 订阅句柄:dispose 即退订(连接器用 ctx.effect/cordis 生命周期托管)。 */
|
|
486
|
+
interface Disposable {
|
|
487
|
+
dispose(): void;
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* 行情服务契约:由市场连接器实现,注册到按市场命名空间的 ctx 键(如 ctx.tradingCrypto)。
|
|
491
|
+
* 符号词汇(2026-08-31 规范,docs/symbol-vocabulary.md):入参接受市场规范形与连接器原生形,
|
|
492
|
+
* 输出 `symbol` 一律市场规范形——消费方(GUI/Agent/工作流)与数据源方言解耦。
|
|
493
|
+
*/
|
|
494
|
+
interface MarketDataService {
|
|
495
|
+
getTicker(symbol: string): Promise<Ticker>;
|
|
496
|
+
getKlines(symbol: string, interval: Interval, limit?: number): Promise<Kline[]>;
|
|
497
|
+
subscribeTicker(symbol: string, cb: (ticker: Ticker) => void): Disposable;
|
|
498
|
+
/**
|
|
499
|
+
* 查询本市场/交易所支持的全部标的名册(动态全集,Issue #15)。
|
|
500
|
+
* 输出 `symbol` 一律市场规范词汇(docs/symbol-vocabulary.md)。
|
|
501
|
+
* 可选方法:无公开全集端点的数据源(如 tencent/yahoo/stooq)可缺省或由桥/前端回退。
|
|
502
|
+
*/
|
|
503
|
+
listInstruments?(): Promise<Array<{
|
|
504
|
+
symbol: string;
|
|
505
|
+
name?: string;
|
|
506
|
+
}>>;
|
|
507
|
+
/**
|
|
508
|
+
* 标的基本面与估值快照(GUI「基本面」页签用,2026-09-02)。
|
|
509
|
+
* 可选方法:仅当数据源在同一公共端点里携带基本面字段时实现
|
|
510
|
+
* (腾讯行情行 cn/hk 已实现);未实现的市场由消费方降级为派生数据(日K 52 周高低)。
|
|
511
|
+
* 输出 `symbol` 一律市场规范词汇(docs/symbol-vocabulary.md)。
|
|
512
|
+
*/
|
|
513
|
+
getFundamentals?(symbol: string): Promise<StockFundamentals>;
|
|
514
|
+
/**
|
|
515
|
+
* 衍生品市场指标快照(GUI「衍生品」面板用,issue #38,2026-09-02):持仓量/
|
|
516
|
+
* 多空比/资金费等微观结构数据,crypto 永续合约市场专属。
|
|
517
|
+
* 可选方法:现货/股票数据源不实现;未实现时消费方直接隐藏面板(不降级不报错)。
|
|
518
|
+
* 入参接受规范形与连接器原生形,输出 `symbol` 一律规范词汇 SWAP 形(BTCUSDT-SWAP)。
|
|
519
|
+
*/
|
|
520
|
+
getDerivatives?(symbol: string): Promise<DerivativesData>;
|
|
521
|
+
/**
|
|
522
|
+
* 衍生品历史序列(GUI「衍生品」页签趋势卡用,issue #54):资金费率历史 +
|
|
523
|
+
* OI 历史,时间升序。可选方法:无公开历史端点的数据源不实现;未实现或失败
|
|
524
|
+
* 时消费方隐藏趋势图、保留快照读数(与快照同族的降级纪律)。
|
|
525
|
+
* 入参接受规范形与连接器原生形,输出 symbol 一律规范词汇 SWAP 形。
|
|
526
|
+
*/
|
|
527
|
+
getDerivativesHistory?(symbol: string): Promise<DerivativesHistory>;
|
|
528
|
+
/**
|
|
529
|
+
* 盘口快照(GUI「盘口」竖栏用,issue #39):档位词汇见 Orderbook。可选方法:
|
|
530
|
+
* 数据源无盘口能力时不实现(如 stooq/yahoo、腾讯 r_hk 港股行档位全 0)。
|
|
531
|
+
* 入参接受规范形与连接器原生形,输出 `symbol` 一律市场规范词汇。
|
|
532
|
+
*/
|
|
533
|
+
getOrderbook?(symbol: string): Promise<Orderbook>;
|
|
534
|
+
/**
|
|
535
|
+
* 最近逐笔成交流水(GUI「分笔」用,issue #39):取最近 limit 笔(缺省 ≤50),
|
|
536
|
+
* **时间升序(旧→新)**,与 K 线序列同向;方向缺省的数据源 side='unknown'。
|
|
537
|
+
* 可选方法:无公共逐笔端点的数据源(腾讯沪深行情行)不实现。
|
|
538
|
+
*/
|
|
539
|
+
getRecentTrades?(symbol: string, limit?: number): Promise<TradeTick[]>;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* 交易服务契约:placeOrder 默认 dry-run;实盘前必须过插件 liveTrading 开关与
|
|
543
|
+
* ctx.approval.request(交互形态;headless 下 ask=deny,fail-closed [S4])。
|
|
544
|
+
*
|
|
545
|
+
* R3(okx 切片 2026-08-29)修订:cancelOrder 增加可选 symbol、新增 getOrder——
|
|
546
|
+
* OKX 按 (instId, ordId) 双键定位订单,单参 id 形态不够;无其他实现方,扩展向后兼容。
|
|
547
|
+
*/
|
|
548
|
+
interface TradeService {
|
|
549
|
+
placeOrder(req: OrderRequest): Promise<Order>;
|
|
550
|
+
/** 撤单。symbol 可选:按 (symbol, id) 双键定位订单的交易所(如 OKX)必须提供。 */
|
|
551
|
+
cancelOrder(id: string, symbol?: string): Promise<void>;
|
|
552
|
+
/** 查询单笔订单状态(按 (symbol, id) 双键)。 */
|
|
553
|
+
getOrder(symbol: string, id: string): Promise<Order>;
|
|
554
|
+
getPositions(): Promise<Position[]>;
|
|
555
|
+
/**
|
|
556
|
+
* 账户余额快照(issue #40 GUI 交易台;只读,需凭证)。
|
|
557
|
+
* 可选方法:实现方已有只读余额面时实现(connector-okx 的 crypto_get_balance 同源)。
|
|
558
|
+
*/
|
|
559
|
+
getBalances?(): Promise<AccountBalance[]>;
|
|
560
|
+
/**
|
|
561
|
+
* 当前挂单列表(issue #40 GUI 交易台;只读,需凭证)。
|
|
562
|
+
* 可选方法:无批量挂单端点的实现方可缺省(GUI 隐藏挂单区)。
|
|
563
|
+
* 输出 `symbol` 一律市场规范词汇;status 只含 new / partially_filled。
|
|
564
|
+
*/
|
|
565
|
+
listOpenOrders?(symbol?: string): Promise<Order[]>;
|
|
566
|
+
/**
|
|
567
|
+
* 最近成交流水(issue #40 GUI 交易台;只读,需凭证)。
|
|
568
|
+
* 可选方法:时间升序(旧→新),最多 limit 条(缺省 ≤50)。
|
|
569
|
+
*/
|
|
570
|
+
listTradeFills?(symbol?: string, limit?: number): Promise<TradeFill[]>;
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Cordis Context 服务键(能力三角色之「声明」):市场命名空间键由契约包统一声明,
|
|
574
|
+
* 连接器 provide、消费方 inject 时获得完整类型。此处仅类型增强——本包保持
|
|
575
|
+
* 零运行时依赖,不产生任何 JS 输出。
|
|
576
|
+
*/
|
|
577
|
+
declare module '@deepseek-ai/cordis' {
|
|
578
|
+
interface Context {
|
|
579
|
+
/** crypto 市场行情服务(由 Binance 连接器以公共 REST 提供,无需凭证)。 */
|
|
580
|
+
tradingCryptoMarketData: MarketDataService;
|
|
581
|
+
/** us 市场行情服务(由 Stooq 连接器以公共 CSV 端点提供,无需凭证;us 复制 2026-08-31 补齐)。 */
|
|
582
|
+
tradingUsMarketData: MarketDataService;
|
|
583
|
+
/** cn 市场行情服务(由腾讯连接器以公共端点提供,无需凭证;cn+hk 切片 2026-08-31 补齐)。 */
|
|
584
|
+
tradingCnMarketData: MarketDataService;
|
|
585
|
+
/** hk 市场行情服务(由腾讯连接器同包双实例提供,config.market 分流;cn+hk 切片 2026-08-31 补齐)。 */
|
|
586
|
+
tradingHkMarketData: MarketDataService;
|
|
587
|
+
/**
|
|
588
|
+
* crypto 市场交易服务(R3 2026-08-29 补齐,crypto 市场第一个真实 TradeService):
|
|
589
|
+
* 由 connector-okx 实现(签名 demo/live 下单),与 connector-binance 经
|
|
590
|
+
* Config.enabled 互斥激活同一 tradingCryptoMarketData 键时一并 provide。
|
|
591
|
+
*/
|
|
592
|
+
tradingCryptoTrade: TradeService;
|
|
593
|
+
/**
|
|
594
|
+
* 交易服务注册表(issue #40 GUI 交易台,@dshtrading/api 类型声明):
|
|
595
|
+
* 与 tradingMarketDataRegistry 同构的宿主平面注册面——交易连接器 host 面数据行
|
|
596
|
+
* 注册,GUI 桥按路由当前值惰性解析。**注册不改变安全语义**:placeOrder 的
|
|
597
|
+
* 服务缝闸门(dryRun 缺省 true + liveTrading 显式开关)随服务实例生效;
|
|
598
|
+
* GUI 桥只放行 dry-run 下单与只读查询,实盘路径仍走 Agent 工具的 base 审批闸门。
|
|
599
|
+
*/
|
|
600
|
+
tradingTradeRegistry: TradeRegistry;
|
|
601
|
+
/**
|
|
602
|
+
* 市场路由服务(R5 2026-08-29 补齐,@dshtrading/router 提供):
|
|
603
|
+
* 连接器 apply 时 consult activeProvider(market) 决定是否激活——用户设置
|
|
604
|
+
* dshtrading.markets.<market>.provider 选谁谁激活(docs/exchange-routing.md)。
|
|
605
|
+
*/
|
|
606
|
+
tradingMarketRouter: MarketRouterService;
|
|
607
|
+
/**
|
|
608
|
+
* 行情服务注册表(2026-08-30 注册表模式定稿,@dshtrading/router 同插件提供):
|
|
609
|
+
* 连接器 host 面数据行注册,GUI 行情桥按路由当前值惰性解析(热切换)。
|
|
610
|
+
*/
|
|
611
|
+
tradingMarketDataRegistry: MarketDataRegistry;
|
|
612
|
+
/**
|
|
613
|
+
* 新闻聚合器注册表(Issue #37,@dshtrading/router 同插件提供):
|
|
614
|
+
* 各市场 Kit apply 时注册 aggregateNews 纯函数,GUI 行情桥按市场获取。
|
|
615
|
+
*/
|
|
616
|
+
tradingNewsRegistry: TradingNewsRegistry;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* 行情服务注册表契约(router 插件提供,2026-08-30 注册表模式定稿):
|
|
621
|
+
* 连接器 host 面数据行不再互斥式 provide 市场键,而是全部注册进本注册表;
|
|
622
|
+
* 消费方(GUI 行情桥)经 active() 按路由当前值惰性解析——settings 变更即刻生效
|
|
623
|
+
* (GUI 热切换),无 watch、无进程重启。preset 平面不走注册表:会话内数据源
|
|
624
|
+
* 一致性是有意语义,切交易所对会话 = 新建会话生效(docs/exchange-routing.md §2.2)。
|
|
625
|
+
*
|
|
626
|
+
* 与 tradeProvider 预留的衔接:本注册表只承载 MarketDataService;数据/交易分离
|
|
627
|
+
* 落地时 TradeService 走独立注册面(不复用本键),铁律 #4 到时再抽象。
|
|
628
|
+
*/
|
|
629
|
+
interface MarketDataRegistration {
|
|
630
|
+
/** 市场 slug(crypto/us/cn/hk;开放词汇,新市场 = 新键)。 */
|
|
631
|
+
readonly market: string;
|
|
632
|
+
/** 提供者 slug(binance/okx/…;开放词汇,第三方连接器可注册新 slug)。 */
|
|
633
|
+
readonly provider: string;
|
|
634
|
+
readonly service: MarketDataService;
|
|
635
|
+
}
|
|
636
|
+
interface MarketDataRegistry {
|
|
637
|
+
/**
|
|
638
|
+
* 注册一个市场的某 provider 行情服务;同 (market, provider) 重复注册抛错
|
|
639
|
+
* (配置错误必须响亮)。返回注销函数(调用方包进 ctx.effect 随 fiber 注销)。
|
|
640
|
+
*/
|
|
641
|
+
register(market: string, provider: string, service: MarketDataService): () => void;
|
|
642
|
+
/**
|
|
643
|
+
* 路由裁决后的当前激活注册项:router 选中的 provider 已注册 → 返回之;
|
|
644
|
+
* 选中了但未注册(包未装/enabled=false)→ undefined(调用方面向用户报错,
|
|
645
|
+
* 不静默降级到别家——用户设置是权威);router 无该市场路由(未知市场键)
|
|
646
|
+
* 且恰好一个注册项 → 返回之(新市场零配置可用);否则 undefined。
|
|
647
|
+
*/
|
|
648
|
+
active(market: string): MarketDataRegistration | undefined;
|
|
649
|
+
/** 某市场全部注册项(诊断/设置 UI 展示用)。 */
|
|
650
|
+
list(market: string): readonly MarketDataRegistration[];
|
|
651
|
+
}
|
|
652
|
+
/** 交易服务注册项(tradingTradeRegistry 的条目,issue #40)。 */
|
|
653
|
+
interface TradeRegistration {
|
|
654
|
+
readonly market: string;
|
|
655
|
+
readonly provider: string;
|
|
656
|
+
readonly service: TradeService;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* 交易服务注册表(router 插件同款注册模式,issue #40):交易连接器在 host 面
|
|
660
|
+
* 数据行注册(凭证经 ctx.credentials / 环境变量解析,缺失时只读方法 fail-closed
|
|
661
|
+
* 报 TRADING_CREDENTIALS_MISSING);注册面本身不做安全裁决——闸门在服务缝
|
|
662
|
+
* (placeOrder 三态)与桥层(GUI 只放行 dry-run)。
|
|
663
|
+
*/
|
|
664
|
+
interface TradeRegistry {
|
|
665
|
+
register(market: string, provider: string, service: TradeService): () => void;
|
|
666
|
+
active(market: string): TradeRegistration | undefined;
|
|
667
|
+
list(market: string): readonly TradeRegistration[];
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* 市场路由服务契约(router 插件提供):按市场查询当前激活的数据/交易所提供方。
|
|
671
|
+
* 用户设置(dshtrading namespace,settings.yaml)是权威;无设置时 = 组合默认值
|
|
672
|
+
* (现状零变化)。供应商取值与连接器的 provider slug 比对,相符者激活。
|
|
673
|
+
*/
|
|
674
|
+
interface MarketRouterService {
|
|
675
|
+
/** 某市场当前激活的 provider slug(settings resolved:用户层赢,缺省 base 默认)。 */
|
|
676
|
+
activeProvider(market: string): string | undefined;
|
|
677
|
+
/** 订阅激活变化(settings commit 驱动)。 */
|
|
678
|
+
watch(cb: (next: string | undefined, prev: string | undefined) => void): () => void;
|
|
679
|
+
}
|
|
680
|
+
/** 新闻/快讯条目(各市场 Kit 统一输出形状)。 */
|
|
681
|
+
interface NewsItem {
|
|
682
|
+
/** 来源标识(如 'eastmoney'、'yahoo'、'googlenews'、'binance'、'coindesk' 等)。 */
|
|
683
|
+
readonly source: string;
|
|
684
|
+
/** 新闻/快讯标题。 */
|
|
685
|
+
readonly title: string;
|
|
686
|
+
/** 详情页 URL。 */
|
|
687
|
+
readonly url: string;
|
|
688
|
+
/** ISO 8601 发布时间。 */
|
|
689
|
+
readonly publishedAt: string;
|
|
690
|
+
/** 关联标的代码(可选,格式随源不同)。 */
|
|
691
|
+
readonly relatedCodes?: readonly string[];
|
|
692
|
+
}
|
|
693
|
+
/** 新闻聚合请求选项。 */
|
|
694
|
+
interface AggregateNewsOptions {
|
|
695
|
+
/** 输出条数上限(1~50,默认 20)。 */
|
|
696
|
+
limit?: number | undefined;
|
|
697
|
+
/** 时间窗口(小时,1~168,默认 24)。 */
|
|
698
|
+
windowHours?: number | undefined;
|
|
699
|
+
/** 按标的代码过滤(可选)。 */
|
|
700
|
+
symbol?: string | undefined;
|
|
701
|
+
/** CryptoPanic API token(仅 crypto 市场使用,可选)。 */
|
|
702
|
+
cryptoPanicKey?: string | undefined;
|
|
703
|
+
}
|
|
704
|
+
/** 新闻聚合结果。 */
|
|
705
|
+
interface AggregateNewsResult {
|
|
706
|
+
/** 按发布时间倒序的新闻条目。 */
|
|
707
|
+
readonly items: readonly NewsItem[];
|
|
708
|
+
/** 失败的数据源名称(fail-soft 容错:可用源正常返回,不可用源记录在此)。 */
|
|
709
|
+
readonly unavailable: readonly string[];
|
|
710
|
+
}
|
|
711
|
+
/** 新闻聚合器函数签名(各 Kit 导出的 aggregateNews 符合此形状)。 */
|
|
712
|
+
type NewsAggregator = (options?: AggregateNewsOptions) => Promise<AggregateNewsResult>;
|
|
713
|
+
/** 新闻聚合器注册表契约(Issue #37,router 插件提供)。 */
|
|
714
|
+
interface TradingNewsRegistry {
|
|
715
|
+
register(market: string, aggregator: NewsAggregator): () => void;
|
|
716
|
+
get(market: string): NewsAggregator | undefined;
|
|
717
|
+
markets(): string[];
|
|
718
|
+
}
|
|
719
|
+
//#endregion
|
|
720
|
+
export { AccountBalance, AggregateNewsOptions, AggregateNewsResult, AuctionSnapshot, BuybackItem, CompanyProfile, CryptoFundamentals, DerivativesData, DerivativesHistory, DerivativesPoint, Disposable, DividendItem, DragonTigerItem, FinancialCell, FinancialIndicatorRow, FinancialReportGroup, FinancialReportMatrix, ForecastSummary, FundamentalsPackage, HolderNumSummary, InsiderTradeItem, InstitutionalHoldingItem, Interval, Kline, LimitUpPoolItem, MainOperationSegment, MarketDataRegistration, MarketDataRegistry, MarketDataService, MarketRouterService, NewsAggregator, NewsItem, OperatingEfficiency, Order, OrderRequest, OrderSide, OrderStatus, OrderType, Orderbook, OrderbookLevel, Position, PositionSide, ResearchReportItem, ShareholderItem, SplitItem, StockFundamentals, Ticker, TradeFill, TradeRegistration, TradeRegistry, TradeService, TradeTick, TradingNewsRegistry };
|