tigeropen 0.3.0 → 0.5.5
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/README.md +55 -2
- package/dist/cjs/client/api-response.js +28 -7
- package/dist/cjs/client/case-convert.js +4 -3
- package/dist/cjs/client/http-client.js +124 -8
- package/dist/cjs/client/token-methods.js +42 -0
- package/dist/cjs/config/client-config.js +115 -16
- package/dist/cjs/config/config-parser.js +19 -9
- package/dist/cjs/config/index.js +4 -1
- package/dist/cjs/config/token-manager.js +54 -4
- package/dist/cjs/index.js +53 -2
- package/dist/cjs/model/enums.js +106 -7
- package/dist/cjs/model/order-helpers.js +149 -0
- package/dist/cjs/model/order-status.js +46 -0
- package/dist/cjs/model/quote-requests.js +11 -0
- package/dist/cjs/model/trade-requests.js +13 -0
- package/dist/cjs/push/index.js +1 -0
- package/dist/cjs/push/pb/OrderStatusData.js +24 -0
- package/dist/cjs/push/proto-message.js +6 -0
- package/dist/cjs/push/push-client.js +117 -19
- package/dist/cjs/push/push-message.js +4 -0
- package/dist/cjs/push/tick-util.js +172 -0
- package/dist/cjs/quote/quote-client.js +584 -42
- package/dist/cjs/trade/trade-client.js +334 -32
- package/dist/cjs/version.js +4 -0
- package/dist/esm/client/api-request.js +1 -1
- package/dist/esm/client/api-response.js +29 -8
- package/dist/esm/client/case-convert.js +4 -3
- package/dist/esm/client/http-client.js +128 -12
- package/dist/esm/client/index.js +6 -6
- package/dist/esm/client/token-methods.js +37 -0
- package/dist/esm/config/client-config.js +118 -20
- package/dist/esm/config/config-parser.js +19 -9
- package/dist/esm/config/index.js +4 -3
- package/dist/esm/config/token-manager.js +55 -5
- package/dist/esm/index.js +15 -1
- package/dist/esm/logger/index.js +1 -1
- package/dist/esm/model/contract-helpers.js +1 -1
- package/dist/esm/model/enums.js +104 -6
- package/dist/esm/model/order-helpers.js +142 -1
- package/dist/esm/model/order-status.js +43 -0
- package/dist/esm/model/quote-requests.js +10 -0
- package/dist/esm/model/trade-requests.js +12 -0
- package/dist/esm/push/index.js +6 -5
- package/dist/esm/push/pb/OrderStatusData.js +24 -0
- package/dist/esm/push/pb/PushData.js +11 -11
- package/dist/esm/push/pb/QuoteBasicData.js +1 -1
- package/dist/esm/push/pb/Response.js +1 -1
- package/dist/esm/push/pb/index.js +17 -17
- package/dist/esm/push/proto-message.js +9 -3
- package/dist/esm/push/push-client.js +124 -26
- package/dist/esm/push/push-message.js +4 -0
- package/dist/esm/push/tick-util.js +165 -0
- package/dist/esm/quote/index.js +1 -1
- package/dist/esm/quote/quote-client.js +553 -44
- package/dist/esm/signer/index.js +2 -2
- package/dist/esm/trade/index.js +1 -1
- package/dist/esm/trade/trade-client.js +303 -34
- package/dist/esm/version.js +1 -0
- package/dist/types/client/api-response.d.ts +6 -4
- package/dist/types/client/case-convert.d.ts +3 -1
- package/dist/types/client/http-client.d.ts +32 -1
- package/dist/types/client/token-methods.d.ts +34 -0
- package/dist/types/config/client-config.d.ts +22 -1
- package/dist/types/config/index.d.ts +3 -1
- package/dist/types/config/token-manager.d.ts +27 -3
- package/dist/types/index.d.ts +22 -1
- package/dist/types/model/enums.d.ts +77 -7
- package/dist/types/model/order-helpers.d.ts +52 -1
- package/dist/types/model/order-status.d.ts +14 -0
- package/dist/types/model/order.d.ts +127 -10
- package/dist/types/model/quote-requests.d.ts +356 -0
- package/dist/types/model/quote.d.ts +391 -4
- package/dist/types/model/trade-requests.d.ts +309 -0
- package/dist/types/model/trade.d.ts +231 -5
- package/dist/types/push/callbacks.d.ts +3 -7
- package/dist/types/push/index.d.ts +1 -0
- package/dist/types/push/pb/OrderStatusData.d.ts +4 -0
- package/dist/types/push/push-client.d.ts +36 -3
- package/dist/types/push/push-message.d.ts +4 -0
- package/dist/types/push/tick-util.d.ts +30 -0
- package/dist/types/quote/quote-client.d.ts +193 -15
- package/dist/types/trade/trade-client.d.ts +136 -18
- package/dist/types/version.d.ts +1 -0
- package/package.json +5 -2
|
@@ -37,6 +37,7 @@ export interface Brief {
|
|
|
37
37
|
export interface KlineItem {
|
|
38
38
|
time: number;
|
|
39
39
|
volume: number;
|
|
40
|
+
volumeDecimal?: number | null;
|
|
40
41
|
open: number;
|
|
41
42
|
close: number;
|
|
42
43
|
high: number;
|
|
@@ -52,6 +53,7 @@ export interface Kline {
|
|
|
52
53
|
export interface TimelineItem {
|
|
53
54
|
time: number;
|
|
54
55
|
volume: number;
|
|
56
|
+
volumeDecimal?: number | null;
|
|
55
57
|
price: number;
|
|
56
58
|
avgPrice: number;
|
|
57
59
|
}
|
|
@@ -71,6 +73,9 @@ export interface TradeTickItem {
|
|
|
71
73
|
volume: number;
|
|
72
74
|
price: number;
|
|
73
75
|
type: string;
|
|
76
|
+
partCode?: string;
|
|
77
|
+
partName?: string;
|
|
78
|
+
cond?: string;
|
|
74
79
|
}
|
|
75
80
|
export interface TradeTick {
|
|
76
81
|
symbol: string;
|
|
@@ -116,11 +121,37 @@ export interface OptionLeg {
|
|
|
116
121
|
theta?: number;
|
|
117
122
|
vega?: number;
|
|
118
123
|
rho?: number;
|
|
124
|
+
markPrice?: number;
|
|
125
|
+
preMarkPrice?: number;
|
|
126
|
+
markTimestamp?: number;
|
|
127
|
+
midPrice?: number;
|
|
128
|
+
preMidPrice?: number;
|
|
129
|
+
midTimestamp?: number;
|
|
119
130
|
}
|
|
120
131
|
export interface OptionChainRow {
|
|
121
132
|
put?: OptionLeg;
|
|
122
133
|
call?: OptionLeg;
|
|
123
134
|
}
|
|
135
|
+
/** Range filter, serialized as { min, max } — corresponds to Java Range<T> */
|
|
136
|
+
export interface Range {
|
|
137
|
+
min?: number;
|
|
138
|
+
max?: number;
|
|
139
|
+
}
|
|
140
|
+
/** Greeks range filters for option_chain (corresponds to Java OptionChainFilterModel.Greeks) */
|
|
141
|
+
export interface OptionChainFilterGreeks {
|
|
142
|
+
delta?: Range;
|
|
143
|
+
gamma?: Range;
|
|
144
|
+
vega?: Range;
|
|
145
|
+
theta?: Range;
|
|
146
|
+
rho?: Range;
|
|
147
|
+
}
|
|
148
|
+
/** Option chain filter (corresponds to Java OptionChainFilterModel) */
|
|
149
|
+
export interface OptionChainFilter {
|
|
150
|
+
inTheMoney?: boolean;
|
|
151
|
+
impliedVolatility?: Range;
|
|
152
|
+
openInterest?: Range;
|
|
153
|
+
greeks?: OptionChainFilterGreeks;
|
|
154
|
+
}
|
|
124
155
|
export interface OptionChain {
|
|
125
156
|
symbol: string;
|
|
126
157
|
expiry: number;
|
|
@@ -217,6 +248,42 @@ export interface CorporateAction {
|
|
|
217
248
|
fromFactor?: number;
|
|
218
249
|
toFactor?: number;
|
|
219
250
|
}
|
|
251
|
+
export interface CorporateSymbolChange {
|
|
252
|
+
symbol: string;
|
|
253
|
+
market?: string;
|
|
254
|
+
exchange?: string;
|
|
255
|
+
executeDate?: string;
|
|
256
|
+
actionType?: string;
|
|
257
|
+
oldSymbol?: string;
|
|
258
|
+
/** newSymbol is the ticker after the rename; same as symbol. */
|
|
259
|
+
newSymbol?: string;
|
|
260
|
+
}
|
|
261
|
+
export interface CorporateDelisting {
|
|
262
|
+
symbol: string;
|
|
263
|
+
market?: string;
|
|
264
|
+
exchange?: string;
|
|
265
|
+
executeDate?: string;
|
|
266
|
+
actionType?: string;
|
|
267
|
+
announcedDate?: string;
|
|
268
|
+
reason?: string;
|
|
269
|
+
}
|
|
270
|
+
export interface CorporateIPO {
|
|
271
|
+
symbol: string;
|
|
272
|
+
market?: string;
|
|
273
|
+
exchange?: string;
|
|
274
|
+
executeDate?: string;
|
|
275
|
+
actionType?: string;
|
|
276
|
+
ipoName?: string;
|
|
277
|
+
listingDate?: string;
|
|
278
|
+
listingPrice?: number;
|
|
279
|
+
sharesOutstanding?: number;
|
|
280
|
+
sharesFloat?: number;
|
|
281
|
+
offerAmount?: number;
|
|
282
|
+
priceRange?: string;
|
|
283
|
+
currency?: string;
|
|
284
|
+
minPurchaseQuantity?: number;
|
|
285
|
+
leverageRatio?: number;
|
|
286
|
+
}
|
|
220
287
|
export interface CapitalFlowItem {
|
|
221
288
|
time: string;
|
|
222
289
|
timestamp: number;
|
|
@@ -272,20 +339,39 @@ export interface FinancialDailyRequest {
|
|
|
272
339
|
beginDate: string;
|
|
273
340
|
endDate: string;
|
|
274
341
|
}
|
|
342
|
+
/**
|
|
343
|
+
* Financial report request.
|
|
344
|
+
*
|
|
345
|
+
* **Wire types (breaking):** `beginDate` / `endDate` are epoch-ms integers,
|
|
346
|
+
* not date strings. Python SDK converts via `date_str_to_timestamp` before
|
|
347
|
+
* sending; sending raw strings makes the gateway reject with
|
|
348
|
+
* `biz param error(failed to parse parameters in 'biz_content')`.
|
|
349
|
+
*/
|
|
275
350
|
export interface FinancialReportRequest {
|
|
276
351
|
symbols: string[];
|
|
277
352
|
market: string;
|
|
278
353
|
fields: string[];
|
|
279
354
|
periodType: string;
|
|
280
|
-
|
|
281
|
-
|
|
355
|
+
/** epoch-ms start time */
|
|
356
|
+
beginDate?: number;
|
|
357
|
+
/** epoch-ms end time */
|
|
358
|
+
endDate?: number;
|
|
282
359
|
}
|
|
360
|
+
/**
|
|
361
|
+
* Corporate action request.
|
|
362
|
+
*
|
|
363
|
+
* **Wire types (breaking):** `beginDate` / `endDate` are epoch-ms integers,
|
|
364
|
+
* matching `FinancialReportRequest`. Server rejects string dates with
|
|
365
|
+
* `biz param error(failed to parse parameters in 'biz_content')`.
|
|
366
|
+
*/
|
|
283
367
|
export interface CorporateActionRequest {
|
|
284
368
|
symbols: string[];
|
|
285
369
|
market: string;
|
|
286
370
|
actionType: string;
|
|
287
|
-
|
|
288
|
-
|
|
371
|
+
/** epoch-ms start time */
|
|
372
|
+
beginDate?: number;
|
|
373
|
+
/** epoch-ms end time */
|
|
374
|
+
endDate?: number;
|
|
289
375
|
}
|
|
290
376
|
export interface FutureKlineRequest {
|
|
291
377
|
contractCodes: string[];
|
|
@@ -309,3 +395,304 @@ export interface MarketScannerRequest {
|
|
|
309
395
|
sortFieldData?: Record<string, unknown>;
|
|
310
396
|
multiTagsFields?: string[];
|
|
311
397
|
}
|
|
398
|
+
/** Symbol + name item (all_symbol_names). */
|
|
399
|
+
export interface SymbolName {
|
|
400
|
+
symbol?: string;
|
|
401
|
+
name?: string;
|
|
402
|
+
market?: string;
|
|
403
|
+
}
|
|
404
|
+
/** Trade meta (quote_stock_trade). */
|
|
405
|
+
export interface TradeMeta {
|
|
406
|
+
symbol?: string;
|
|
407
|
+
lotSize?: number;
|
|
408
|
+
minTick?: number;
|
|
409
|
+
spreadScale?: number;
|
|
410
|
+
shortableFlag?: string;
|
|
411
|
+
marginableFlag?: string;
|
|
412
|
+
}
|
|
413
|
+
/** Stock detail (stock_detail). */
|
|
414
|
+
export interface StockDetail {
|
|
415
|
+
symbol?: string;
|
|
416
|
+
nameCN?: string;
|
|
417
|
+
nameEN?: string;
|
|
418
|
+
exchange?: string;
|
|
419
|
+
market?: string;
|
|
420
|
+
currency?: string;
|
|
421
|
+
secType?: string;
|
|
422
|
+
sector?: string;
|
|
423
|
+
industry?: string;
|
|
424
|
+
/** ms timestamp */
|
|
425
|
+
listingDate?: number;
|
|
426
|
+
marketCap?: number;
|
|
427
|
+
circulationCap?: number;
|
|
428
|
+
totalShares?: number;
|
|
429
|
+
epsTtm?: number;
|
|
430
|
+
peRatioTtm?: number;
|
|
431
|
+
}
|
|
432
|
+
/** Short interest data. */
|
|
433
|
+
export interface ShortInterest {
|
|
434
|
+
symbol?: string;
|
|
435
|
+
settlementDate?: string;
|
|
436
|
+
shortInterest?: number;
|
|
437
|
+
avgDailyVolume?: number;
|
|
438
|
+
daysToCover?: number;
|
|
439
|
+
percentOfFloat?: number;
|
|
440
|
+
shortInterestPrevious?: number;
|
|
441
|
+
percentChange?: number;
|
|
442
|
+
}
|
|
443
|
+
/** Broker detail inside a price level. */
|
|
444
|
+
export interface BrokerDetail {
|
|
445
|
+
id?: string;
|
|
446
|
+
name?: string;
|
|
447
|
+
}
|
|
448
|
+
/** A single broker-queue level. */
|
|
449
|
+
export interface StockBrokerItem {
|
|
450
|
+
level?: number;
|
|
451
|
+
price?: number;
|
|
452
|
+
brokers?: BrokerDetail[];
|
|
453
|
+
}
|
|
454
|
+
/** Broker queue (stock_broker). */
|
|
455
|
+
export interface StockBroker {
|
|
456
|
+
symbol?: string;
|
|
457
|
+
levelAskList?: StockBrokerItem[];
|
|
458
|
+
levelBidList?: StockBrokerItem[];
|
|
459
|
+
}
|
|
460
|
+
/** Stock industry classification (stock_industry). */
|
|
461
|
+
export interface StockIndustry {
|
|
462
|
+
symbol?: string;
|
|
463
|
+
gsector?: string;
|
|
464
|
+
ggroup?: string;
|
|
465
|
+
gind?: string;
|
|
466
|
+
gsubind?: string;
|
|
467
|
+
level?: string;
|
|
468
|
+
}
|
|
469
|
+
/** Trade rank row (trade_rank). */
|
|
470
|
+
export interface TradeRankItem {
|
|
471
|
+
symbol?: string;
|
|
472
|
+
name?: string;
|
|
473
|
+
latestPrice?: number;
|
|
474
|
+
change?: number;
|
|
475
|
+
changeRate?: number;
|
|
476
|
+
volume?: number;
|
|
477
|
+
amount?: number;
|
|
478
|
+
}
|
|
479
|
+
/** K-line quota detail. */
|
|
480
|
+
export interface KlineQuotaDetail {
|
|
481
|
+
symbol?: string;
|
|
482
|
+
market?: string;
|
|
483
|
+
usedBars?: number;
|
|
484
|
+
quotaBars?: number;
|
|
485
|
+
lastAccess?: number;
|
|
486
|
+
}
|
|
487
|
+
/** K-line quota (kline_quota). */
|
|
488
|
+
export interface KlineQuota {
|
|
489
|
+
method?: string;
|
|
490
|
+
used?: number;
|
|
491
|
+
quota?: number;
|
|
492
|
+
detail?: KlineQuotaDetail[];
|
|
493
|
+
}
|
|
494
|
+
/** Option historical-volatility time series point. */
|
|
495
|
+
export interface OptionVolatilityPoint {
|
|
496
|
+
impliedVol?: number;
|
|
497
|
+
percentile?: number;
|
|
498
|
+
rank?: number;
|
|
499
|
+
hisVolatility?: number;
|
|
500
|
+
timestamp?: number;
|
|
501
|
+
}
|
|
502
|
+
/** Implied-volatility metric for a specific period. */
|
|
503
|
+
export interface ImpliedVolMetric {
|
|
504
|
+
period?: string;
|
|
505
|
+
percentile?: number;
|
|
506
|
+
rank?: number;
|
|
507
|
+
}
|
|
508
|
+
/** Option analysis (option_analysis). */
|
|
509
|
+
export interface OptionAnalysis {
|
|
510
|
+
symbol?: string;
|
|
511
|
+
impliedVol30Days?: number;
|
|
512
|
+
hisVolatility?: number;
|
|
513
|
+
ivHisVRatio?: number;
|
|
514
|
+
callPutRatio?: number;
|
|
515
|
+
impliedVolMetric?: ImpliedVolMetric;
|
|
516
|
+
volatilityList?: OptionVolatilityPoint[];
|
|
517
|
+
}
|
|
518
|
+
/** Option symbol listing (option_symbol). */
|
|
519
|
+
export interface OptionSymbol {
|
|
520
|
+
symbol?: string;
|
|
521
|
+
market?: string;
|
|
522
|
+
nameCN?: string;
|
|
523
|
+
nameEN?: string;
|
|
524
|
+
}
|
|
525
|
+
/** Historical futures main contract entry. */
|
|
526
|
+
export interface FutureMainContractHistory {
|
|
527
|
+
contractCode?: string;
|
|
528
|
+
symbol?: string;
|
|
529
|
+
beginDate?: string;
|
|
530
|
+
endDate?: string;
|
|
531
|
+
}
|
|
532
|
+
/** A single futures trading time segment. */
|
|
533
|
+
export interface FutureTradingSegment {
|
|
534
|
+
/** ms timestamp */
|
|
535
|
+
start?: number;
|
|
536
|
+
end?: number;
|
|
537
|
+
/** RTH / Night / Break */
|
|
538
|
+
type?: string;
|
|
539
|
+
}
|
|
540
|
+
/** Futures trading session (future_trading_date). */
|
|
541
|
+
export interface FutureTradingTime {
|
|
542
|
+
contractCode?: string;
|
|
543
|
+
bizDate?: string;
|
|
544
|
+
zone?: string;
|
|
545
|
+
tradingTimes?: FutureTradingSegment[];
|
|
546
|
+
}
|
|
547
|
+
/** Futures tick-trade item (future_tick). */
|
|
548
|
+
export interface FutureTradeTickItem {
|
|
549
|
+
contractCode?: string;
|
|
550
|
+
index?: number;
|
|
551
|
+
time?: number;
|
|
552
|
+
price?: number;
|
|
553
|
+
volume?: number;
|
|
554
|
+
direction?: string;
|
|
555
|
+
}
|
|
556
|
+
/** Futures depth snapshot (future_depth). */
|
|
557
|
+
export interface FutureDepth {
|
|
558
|
+
contractCode?: string;
|
|
559
|
+
timestamp?: number;
|
|
560
|
+
asks?: DepthLevel[];
|
|
561
|
+
bids?: DepthLevel[];
|
|
562
|
+
}
|
|
563
|
+
/** Warrant brief (warrant_briefs). */
|
|
564
|
+
export interface WarrantBrief {
|
|
565
|
+
symbol?: string;
|
|
566
|
+
name?: string;
|
|
567
|
+
latestPrice?: number;
|
|
568
|
+
change?: number;
|
|
569
|
+
changeRate?: number;
|
|
570
|
+
volume?: number;
|
|
571
|
+
amount?: number;
|
|
572
|
+
underlying?: string;
|
|
573
|
+
issuer?: string;
|
|
574
|
+
expiryDate?: string;
|
|
575
|
+
strikePrice?: number;
|
|
576
|
+
warrantType?: string;
|
|
577
|
+
}
|
|
578
|
+
/** Warrant filter paged result (warrant_filter). */
|
|
579
|
+
export interface WarrantFilterResult {
|
|
580
|
+
total?: number;
|
|
581
|
+
items?: WarrantBrief[];
|
|
582
|
+
pageSize?: number;
|
|
583
|
+
page?: number;
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Industry list row (industry_list).
|
|
587
|
+
*
|
|
588
|
+
* **Wire fields (breaking):** the server returns `nameCN` / `nameEN` /
|
|
589
|
+
* `industryLevel`, not `name` / `level` (matches Python SDK's
|
|
590
|
+
* `IndustryListResponse` which reads `ind.get('nameCN')`,
|
|
591
|
+
* `ind.get('nameEN')`, `ind.get('industryLevel')`).
|
|
592
|
+
* Since responses come back already-camelCase (no snake→camel step) and the
|
|
593
|
+
* server keeps `nameCN` / `nameEN` in mixed case, the fields are exposed
|
|
594
|
+
* exactly as sent.
|
|
595
|
+
*
|
|
596
|
+
* `name` and `level` are backwards-compat aliases populated by
|
|
597
|
+
* `getIndustryList` after the raw response is decoded — `name` mirrors
|
|
598
|
+
* `nameEN || nameCN`, `level` mirrors `industryLevel`.
|
|
599
|
+
*/
|
|
600
|
+
export interface IndustryItem {
|
|
601
|
+
id?: string;
|
|
602
|
+
/** Chinese name. Wire: `nameCN`. */
|
|
603
|
+
nameCN?: string;
|
|
604
|
+
/** English name. Wire: `nameEN`. */
|
|
605
|
+
nameEN?: string;
|
|
606
|
+
/** Industry level. Wire: `industryLevel`. */
|
|
607
|
+
industryLevel?: string;
|
|
608
|
+
/** Convenience alias: `nameEN || nameCN`. Populated by `getIndustryList`. */
|
|
609
|
+
name?: string;
|
|
610
|
+
/** @deprecated Use `industryLevel`. Mirrored by `getIndustryList` for back-compat. */
|
|
611
|
+
level?: string;
|
|
612
|
+
}
|
|
613
|
+
/** Stock belonging to an industry (industry_stock_list). */
|
|
614
|
+
export interface IndustryStock {
|
|
615
|
+
symbol?: string;
|
|
616
|
+
name?: string;
|
|
617
|
+
industryId?: string;
|
|
618
|
+
change?: number;
|
|
619
|
+
changeRate?: number;
|
|
620
|
+
}
|
|
621
|
+
/** Trading calendar entry (trading_calendar). */
|
|
622
|
+
export interface TradingCalendarItem {
|
|
623
|
+
market?: string;
|
|
624
|
+
date?: string;
|
|
625
|
+
isTrading?: boolean;
|
|
626
|
+
sessionType?: string;
|
|
627
|
+
}
|
|
628
|
+
/** Single day's FX rate value within an ExchangeRate.dailyValueList entry. */
|
|
629
|
+
export interface ExchangeRateDailyValue {
|
|
630
|
+
date?: number;
|
|
631
|
+
value?: number;
|
|
632
|
+
}
|
|
633
|
+
/** FX rate (financial_exchange_rate). */
|
|
634
|
+
export interface ExchangeRate {
|
|
635
|
+
currency?: string;
|
|
636
|
+
dailyValueList?: ExchangeRateDailyValue[];
|
|
637
|
+
}
|
|
638
|
+
/** Financial currency per symbol (financial_currency). */
|
|
639
|
+
export interface FinancialCurrency {
|
|
640
|
+
symbol?: string;
|
|
641
|
+
market?: string;
|
|
642
|
+
currency?: string;
|
|
643
|
+
}
|
|
644
|
+
/** Overnight quote (quote_overnight). */
|
|
645
|
+
export interface QuoteOvernight {
|
|
646
|
+
symbol?: string;
|
|
647
|
+
latestPrice?: number;
|
|
648
|
+
askPrice?: number;
|
|
649
|
+
askSize?: number;
|
|
650
|
+
bidPrice?: number;
|
|
651
|
+
bidSize?: number;
|
|
652
|
+
preClose?: number;
|
|
653
|
+
volume?: number;
|
|
654
|
+
amount?: number;
|
|
655
|
+
timestamp?: number;
|
|
656
|
+
tradingStatus?: number;
|
|
657
|
+
change?: number;
|
|
658
|
+
changeRate?: number;
|
|
659
|
+
amplitude?: number;
|
|
660
|
+
}
|
|
661
|
+
/** Single market-scanner tag. */
|
|
662
|
+
export interface MarketScannerTag {
|
|
663
|
+
field?: string;
|
|
664
|
+
name?: string;
|
|
665
|
+
values?: string[];
|
|
666
|
+
}
|
|
667
|
+
/** Market-scanner tag group (one entry per market). wire: market_scanner_tags returns array of these. */
|
|
668
|
+
export interface MarketScannerTagGroup {
|
|
669
|
+
market?: string;
|
|
670
|
+
multiTagField?: string;
|
|
671
|
+
tagList?: MarketScannerTag[];
|
|
672
|
+
}
|
|
673
|
+
/** @deprecated Use MarketScannerTagGroup[] instead. Kept for backwards compatibility. */
|
|
674
|
+
export type MarketScannerTags = MarketScannerTagGroup;
|
|
675
|
+
/** Fund contract info (fund_contracts). */
|
|
676
|
+
export interface FundContractInfo {
|
|
677
|
+
symbol?: string;
|
|
678
|
+
name?: string;
|
|
679
|
+
currency?: string;
|
|
680
|
+
fundType?: string;
|
|
681
|
+
inception?: string;
|
|
682
|
+
netAssetValue?: number;
|
|
683
|
+
expenseRatio?: number;
|
|
684
|
+
}
|
|
685
|
+
/** Fund real-time NAV (fund_quote). */
|
|
686
|
+
export interface FundQuote {
|
|
687
|
+
symbol?: string;
|
|
688
|
+
latestNav?: number;
|
|
689
|
+
change?: number;
|
|
690
|
+
changeRate?: number;
|
|
691
|
+
date?: string;
|
|
692
|
+
}
|
|
693
|
+
/** Fund historical NAV (fund_history_quote). */
|
|
694
|
+
export interface FundHistoryQuote {
|
|
695
|
+
symbol?: string;
|
|
696
|
+
date?: string;
|
|
697
|
+
nav?: number;
|
|
698
|
+
}
|