@tigeropenapi/tigeropen 0.3.0 → 0.4.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/dist/cjs/client/case-convert.js +4 -3
- package/dist/cjs/client/http-client.js +123 -6
- package/dist/cjs/config/client-config.js +56 -12
- package/dist/cjs/config/index.js +3 -1
- package/dist/cjs/config/token-manager.js +54 -4
- package/dist/cjs/index.js +51 -2
- package/dist/cjs/model/enums.js +89 -7
- 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/pb/OrderStatusData.js +24 -0
- package/dist/cjs/push/proto-message.js +6 -0
- package/dist/cjs/push/push-client.js +111 -16
- package/dist/cjs/push/push-message.js +4 -0
- package/dist/cjs/quote/quote-client.js +333 -9
- package/dist/cjs/trade/trade-client.js +204 -25
- package/dist/esm/client/api-request.js +1 -1
- package/dist/esm/client/api-response.js +1 -1
- package/dist/esm/client/case-convert.js +4 -3
- package/dist/esm/client/http-client.js +128 -11
- package/dist/esm/client/index.js +6 -6
- package/dist/esm/config/client-config.js +59 -15
- 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 +87 -6
- package/dist/esm/model/order-helpers.js +1 -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 +5 -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 +118 -23
- package/dist/esm/push/push-message.js +4 -0
- package/dist/esm/quote/index.js +1 -1
- package/dist/esm/quote/quote-client.js +335 -11
- package/dist/esm/signer/index.js +2 -2
- package/dist/esm/trade/index.js +1 -1
- package/dist/esm/trade/trade-client.js +206 -27
- package/dist/types/client/case-convert.d.ts +3 -1
- package/dist/types/client/http-client.d.ts +32 -1
- package/dist/types/config/client-config.d.ts +16 -1
- package/dist/types/config/index.d.ts +2 -0
- 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 +60 -6
- package/dist/types/model/order-status.d.ts +14 -0
- package/dist/types/model/quote-requests.d.ts +344 -0
- package/dist/types/model/quote.d.ts +261 -0
- package/dist/types/model/trade-requests.d.ts +260 -0
- package/dist/types/model/trade.d.ts +214 -1
- 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/quote/quote-client.d.ts +121 -6
- package/dist/types/trade/trade-client.d.ts +95 -12
- package/package.json +2 -2
|
@@ -309,3 +309,264 @@ export interface MarketScannerRequest {
|
|
|
309
309
|
sortFieldData?: Record<string, unknown>;
|
|
310
310
|
multiTagsFields?: string[];
|
|
311
311
|
}
|
|
312
|
+
/** Symbol + name item (all_symbol_names). */
|
|
313
|
+
export interface SymbolName {
|
|
314
|
+
symbol?: string;
|
|
315
|
+
name?: string;
|
|
316
|
+
market?: string;
|
|
317
|
+
}
|
|
318
|
+
/** Trade meta (quote_stock_trade). */
|
|
319
|
+
export interface TradeMeta {
|
|
320
|
+
symbol?: string;
|
|
321
|
+
lotSize?: number;
|
|
322
|
+
minTick?: number;
|
|
323
|
+
spreadScale?: number;
|
|
324
|
+
shortableFlag?: string;
|
|
325
|
+
marginableFlag?: string;
|
|
326
|
+
}
|
|
327
|
+
/** Stock detail (stock_detail). */
|
|
328
|
+
export interface StockDetail {
|
|
329
|
+
symbol?: string;
|
|
330
|
+
nameCN?: string;
|
|
331
|
+
nameEN?: string;
|
|
332
|
+
exchange?: string;
|
|
333
|
+
market?: string;
|
|
334
|
+
currency?: string;
|
|
335
|
+
secType?: string;
|
|
336
|
+
sector?: string;
|
|
337
|
+
industry?: string;
|
|
338
|
+
/** ms timestamp */
|
|
339
|
+
listingDate?: number;
|
|
340
|
+
marketCap?: number;
|
|
341
|
+
circulationCap?: number;
|
|
342
|
+
totalShares?: number;
|
|
343
|
+
epsTtm?: number;
|
|
344
|
+
peRatioTtm?: number;
|
|
345
|
+
}
|
|
346
|
+
/** Short interest data. */
|
|
347
|
+
export interface ShortInterest {
|
|
348
|
+
symbol?: string;
|
|
349
|
+
settlementDate?: string;
|
|
350
|
+
shortInterest?: number;
|
|
351
|
+
avgDailyVolume?: number;
|
|
352
|
+
daysToCover?: number;
|
|
353
|
+
percentOfFloat?: number;
|
|
354
|
+
shortInterestPrevious?: number;
|
|
355
|
+
percentChange?: number;
|
|
356
|
+
}
|
|
357
|
+
/** Broker detail inside a price level. */
|
|
358
|
+
export interface BrokerDetail {
|
|
359
|
+
id?: string;
|
|
360
|
+
name?: string;
|
|
361
|
+
}
|
|
362
|
+
/** A single broker-queue level. */
|
|
363
|
+
export interface StockBrokerItem {
|
|
364
|
+
level?: number;
|
|
365
|
+
price?: number;
|
|
366
|
+
brokers?: BrokerDetail[];
|
|
367
|
+
}
|
|
368
|
+
/** Broker queue (stock_broker). */
|
|
369
|
+
export interface StockBroker {
|
|
370
|
+
symbol?: string;
|
|
371
|
+
levelAskList?: StockBrokerItem[];
|
|
372
|
+
levelBidList?: StockBrokerItem[];
|
|
373
|
+
}
|
|
374
|
+
/** Stock industry classification (stock_industry). */
|
|
375
|
+
export interface StockIndustry {
|
|
376
|
+
symbol?: string;
|
|
377
|
+
gsector?: string;
|
|
378
|
+
ggroup?: string;
|
|
379
|
+
gind?: string;
|
|
380
|
+
gsubind?: string;
|
|
381
|
+
level?: string;
|
|
382
|
+
}
|
|
383
|
+
/** Trade rank row (trade_rank). */
|
|
384
|
+
export interface TradeRankItem {
|
|
385
|
+
symbol?: string;
|
|
386
|
+
name?: string;
|
|
387
|
+
latestPrice?: number;
|
|
388
|
+
change?: number;
|
|
389
|
+
changeRate?: number;
|
|
390
|
+
volume?: number;
|
|
391
|
+
amount?: number;
|
|
392
|
+
}
|
|
393
|
+
/** K-line quota detail. */
|
|
394
|
+
export interface KlineQuotaDetail {
|
|
395
|
+
symbol?: string;
|
|
396
|
+
market?: string;
|
|
397
|
+
usedBars?: number;
|
|
398
|
+
quotaBars?: number;
|
|
399
|
+
lastAccess?: number;
|
|
400
|
+
}
|
|
401
|
+
/** K-line quota (kline_quota). */
|
|
402
|
+
export interface KlineQuota {
|
|
403
|
+
method?: string;
|
|
404
|
+
used?: number;
|
|
405
|
+
quota?: number;
|
|
406
|
+
detail?: KlineQuotaDetail[];
|
|
407
|
+
}
|
|
408
|
+
/** Option historical-volatility time series point. */
|
|
409
|
+
export interface OptionVolatilityPoint {
|
|
410
|
+
date?: string;
|
|
411
|
+
volatility?: number;
|
|
412
|
+
}
|
|
413
|
+
/** Option analysis (option_analysis). */
|
|
414
|
+
export interface OptionAnalysis {
|
|
415
|
+
symbol?: string;
|
|
416
|
+
historicalVolatility30Day?: number;
|
|
417
|
+
historicalVolatility60Day?: number;
|
|
418
|
+
historicalVolatility90Day?: number;
|
|
419
|
+
impliedVolatility?: number;
|
|
420
|
+
volatilityList?: OptionVolatilityPoint[];
|
|
421
|
+
}
|
|
422
|
+
/** Option symbol listing (option_symbol). */
|
|
423
|
+
export interface OptionSymbol {
|
|
424
|
+
symbol?: string;
|
|
425
|
+
market?: string;
|
|
426
|
+
nameCN?: string;
|
|
427
|
+
nameEN?: string;
|
|
428
|
+
}
|
|
429
|
+
/** Historical futures main contract entry. */
|
|
430
|
+
export interface FutureMainContractHistory {
|
|
431
|
+
contractCode?: string;
|
|
432
|
+
symbol?: string;
|
|
433
|
+
beginDate?: string;
|
|
434
|
+
endDate?: string;
|
|
435
|
+
}
|
|
436
|
+
/** A single futures trading time segment. */
|
|
437
|
+
export interface FutureTradingSegment {
|
|
438
|
+
/** ms timestamp */
|
|
439
|
+
start?: number;
|
|
440
|
+
end?: number;
|
|
441
|
+
/** RTH / Night / Break */
|
|
442
|
+
type?: string;
|
|
443
|
+
}
|
|
444
|
+
/** Futures trading session (future_trading_date). */
|
|
445
|
+
export interface FutureTradingTime {
|
|
446
|
+
contractCode?: string;
|
|
447
|
+
bizDate?: string;
|
|
448
|
+
zone?: string;
|
|
449
|
+
tradingTimes?: FutureTradingSegment[];
|
|
450
|
+
}
|
|
451
|
+
/** Futures tick-trade item (future_tick). */
|
|
452
|
+
export interface FutureTradeTickItem {
|
|
453
|
+
contractCode?: string;
|
|
454
|
+
index?: number;
|
|
455
|
+
time?: number;
|
|
456
|
+
price?: number;
|
|
457
|
+
volume?: number;
|
|
458
|
+
direction?: string;
|
|
459
|
+
}
|
|
460
|
+
/** Futures depth snapshot (future_depth). */
|
|
461
|
+
export interface FutureDepth {
|
|
462
|
+
contractCode?: string;
|
|
463
|
+
timestamp?: number;
|
|
464
|
+
asks?: DepthLevel[];
|
|
465
|
+
bids?: DepthLevel[];
|
|
466
|
+
}
|
|
467
|
+
/** Warrant brief (warrant_briefs). */
|
|
468
|
+
export interface WarrantBrief {
|
|
469
|
+
symbol?: string;
|
|
470
|
+
name?: string;
|
|
471
|
+
latestPrice?: number;
|
|
472
|
+
change?: number;
|
|
473
|
+
changeRate?: number;
|
|
474
|
+
volume?: number;
|
|
475
|
+
amount?: number;
|
|
476
|
+
underlying?: string;
|
|
477
|
+
issuer?: string;
|
|
478
|
+
expiryDate?: string;
|
|
479
|
+
strikePrice?: number;
|
|
480
|
+
warrantType?: string;
|
|
481
|
+
}
|
|
482
|
+
/** Warrant filter paged result (warrant_filter). */
|
|
483
|
+
export interface WarrantFilterResult {
|
|
484
|
+
total?: number;
|
|
485
|
+
items?: WarrantBrief[];
|
|
486
|
+
pageSize?: number;
|
|
487
|
+
page?: number;
|
|
488
|
+
}
|
|
489
|
+
/** Industry list row (industry_list). */
|
|
490
|
+
export interface IndustryItem {
|
|
491
|
+
id?: string;
|
|
492
|
+
name?: string;
|
|
493
|
+
level?: string;
|
|
494
|
+
}
|
|
495
|
+
/** Stock belonging to an industry (industry_stock_list). */
|
|
496
|
+
export interface IndustryStock {
|
|
497
|
+
symbol?: string;
|
|
498
|
+
name?: string;
|
|
499
|
+
industryId?: string;
|
|
500
|
+
change?: number;
|
|
501
|
+
changeRate?: number;
|
|
502
|
+
}
|
|
503
|
+
/** Trading calendar entry (trading_calendar). */
|
|
504
|
+
export interface TradingCalendarItem {
|
|
505
|
+
market?: string;
|
|
506
|
+
date?: string;
|
|
507
|
+
isTrading?: boolean;
|
|
508
|
+
sessionType?: string;
|
|
509
|
+
}
|
|
510
|
+
/** FX rate (financial_exchange_rate). */
|
|
511
|
+
export interface ExchangeRate {
|
|
512
|
+
currency?: string;
|
|
513
|
+
date?: string;
|
|
514
|
+
rate?: number;
|
|
515
|
+
baseCurrency?: string;
|
|
516
|
+
}
|
|
517
|
+
/** Financial currency per symbol (financial_currency). */
|
|
518
|
+
export interface FinancialCurrency {
|
|
519
|
+
symbol?: string;
|
|
520
|
+
market?: string;
|
|
521
|
+
currency?: string;
|
|
522
|
+
}
|
|
523
|
+
/** Overnight quote (quote_overnight). */
|
|
524
|
+
export interface QuoteOvernight {
|
|
525
|
+
symbol?: string;
|
|
526
|
+
preClose?: number;
|
|
527
|
+
open?: number;
|
|
528
|
+
close?: number;
|
|
529
|
+
high?: number;
|
|
530
|
+
low?: number;
|
|
531
|
+
volume?: number;
|
|
532
|
+
amount?: number;
|
|
533
|
+
change?: number;
|
|
534
|
+
changeRate?: number;
|
|
535
|
+
beginTime?: number;
|
|
536
|
+
endTime?: number;
|
|
537
|
+
}
|
|
538
|
+
/** Single market-scanner tag. */
|
|
539
|
+
export interface MarketScannerTag {
|
|
540
|
+
field?: string;
|
|
541
|
+
name?: string;
|
|
542
|
+
values?: string[];
|
|
543
|
+
}
|
|
544
|
+
/** Market scanner tag set (market_scanner_tags). */
|
|
545
|
+
export interface MarketScannerTags {
|
|
546
|
+
tagFields?: string[];
|
|
547
|
+
tags?: MarketScannerTag[];
|
|
548
|
+
}
|
|
549
|
+
/** Fund contract info (fund_contracts). */
|
|
550
|
+
export interface FundContractInfo {
|
|
551
|
+
symbol?: string;
|
|
552
|
+
name?: string;
|
|
553
|
+
currency?: string;
|
|
554
|
+
fundType?: string;
|
|
555
|
+
inception?: string;
|
|
556
|
+
netAssetValue?: number;
|
|
557
|
+
expenseRatio?: number;
|
|
558
|
+
}
|
|
559
|
+
/** Fund real-time NAV (fund_quote). */
|
|
560
|
+
export interface FundQuote {
|
|
561
|
+
symbol?: string;
|
|
562
|
+
latestNav?: number;
|
|
563
|
+
change?: number;
|
|
564
|
+
changeRate?: number;
|
|
565
|
+
date?: string;
|
|
566
|
+
}
|
|
567
|
+
/** Fund historical NAV (fund_history_quote). */
|
|
568
|
+
export interface FundHistoryQuote {
|
|
569
|
+
symbol?: string;
|
|
570
|
+
date?: string;
|
|
571
|
+
nav?: number;
|
|
572
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trade request interfaces (v0.4.0).
|
|
3
|
+
*
|
|
4
|
+
* 所有字段可选(用户调用时传一个空对象即可);字段名用 camelCase,
|
|
5
|
+
* client 层通过 keysToSnakeCase 转成服务端 wire 真名的 snake_case。
|
|
6
|
+
* **字段名设计规则:camelCase → snake_case 后必须等于服务端 wire 真名。**
|
|
7
|
+
* 比如 Trade 用 `startDate`/`endDate`(wire `start_date`/`end_date`),
|
|
8
|
+
* 不用 `startTime`/`endTime`(会被转成 `start_time`/`end_time`,与 wire 不符)。
|
|
9
|
+
*
|
|
10
|
+
* 参考 Go SDK model/trade_requests.go。
|
|
11
|
+
*/
|
|
12
|
+
export interface OrdersRequest {
|
|
13
|
+
account?: string;
|
|
14
|
+
secType?: string;
|
|
15
|
+
market?: string;
|
|
16
|
+
symbol?: string;
|
|
17
|
+
/** 毫秒时间戳 (wire: start_date) */
|
|
18
|
+
startDate?: number;
|
|
19
|
+
/** 毫秒时间戳 (wire: end_date) */
|
|
20
|
+
endDate?: number;
|
|
21
|
+
limit?: number;
|
|
22
|
+
isBrief?: boolean;
|
|
23
|
+
/** 订单状态过滤: Invalid / Initial / PendingCancel / Cancelled / Submitted / Filled / Inactive / PendingSubmit */
|
|
24
|
+
states?: string[];
|
|
25
|
+
/** LATEST_CREATED / LATEST_STATUS_UPDATED */
|
|
26
|
+
sortBy?: string;
|
|
27
|
+
segType?: string;
|
|
28
|
+
lang?: string;
|
|
29
|
+
pageToken?: string;
|
|
30
|
+
/** 仅 ActiveOrders 使用,按父订单 ID 过滤附加订单 */
|
|
31
|
+
parentId?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface GetOrderRequest {
|
|
34
|
+
account?: string;
|
|
35
|
+
id?: number;
|
|
36
|
+
orderId?: number;
|
|
37
|
+
isBrief?: boolean;
|
|
38
|
+
showCharges?: boolean;
|
|
39
|
+
lang?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface OrderTransactionsRequest {
|
|
42
|
+
account?: string;
|
|
43
|
+
orderId?: number;
|
|
44
|
+
symbol?: string;
|
|
45
|
+
secType?: string;
|
|
46
|
+
/** 毫秒时间戳 */
|
|
47
|
+
startDate?: number;
|
|
48
|
+
/** 毫秒时间戳 */
|
|
49
|
+
endDate?: number;
|
|
50
|
+
limit?: number;
|
|
51
|
+
expiry?: string;
|
|
52
|
+
strike?: number;
|
|
53
|
+
putCall?: string;
|
|
54
|
+
lang?: string;
|
|
55
|
+
pageToken?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface PositionsRequest {
|
|
58
|
+
account?: string;
|
|
59
|
+
secType?: string;
|
|
60
|
+
currency?: string;
|
|
61
|
+
market?: string;
|
|
62
|
+
symbol?: string;
|
|
63
|
+
subAccounts?: string[];
|
|
64
|
+
expiry?: string;
|
|
65
|
+
strike?: string;
|
|
66
|
+
right?: string;
|
|
67
|
+
assetQuoteType?: string;
|
|
68
|
+
lang?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface AssetsRequest {
|
|
71
|
+
account?: string;
|
|
72
|
+
subAccounts?: string[];
|
|
73
|
+
segment?: boolean;
|
|
74
|
+
marketValue?: boolean;
|
|
75
|
+
lang?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface ManagedAccountsRequest {
|
|
78
|
+
account?: string;
|
|
79
|
+
lang?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface DerivativeContractsRequest {
|
|
82
|
+
account?: string;
|
|
83
|
+
symbols: string[];
|
|
84
|
+
secType: string;
|
|
85
|
+
expiry?: string;
|
|
86
|
+
lang?: string;
|
|
87
|
+
}
|
|
88
|
+
export interface AnalyticsAssetRequest {
|
|
89
|
+
account?: string;
|
|
90
|
+
segType?: string;
|
|
91
|
+
/** 格式 "YYYY-MM-DD" */
|
|
92
|
+
startDate?: string;
|
|
93
|
+
endDate?: string;
|
|
94
|
+
lang?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface AggregateAssetsRequest {
|
|
97
|
+
account?: string;
|
|
98
|
+
baseCurrency?: string;
|
|
99
|
+
segType?: string;
|
|
100
|
+
lang?: string;
|
|
101
|
+
}
|
|
102
|
+
export interface EstimateTradableQuantityRequest {
|
|
103
|
+
account?: string;
|
|
104
|
+
symbol: string;
|
|
105
|
+
secType: string;
|
|
106
|
+
action: string;
|
|
107
|
+
orderType?: string;
|
|
108
|
+
limitPrice?: number;
|
|
109
|
+
market?: string;
|
|
110
|
+
currency?: string;
|
|
111
|
+
expiry?: string;
|
|
112
|
+
strike?: string;
|
|
113
|
+
right?: string;
|
|
114
|
+
lang?: string;
|
|
115
|
+
}
|
|
116
|
+
export interface ForexOrderRequest {
|
|
117
|
+
account?: string;
|
|
118
|
+
segType?: string;
|
|
119
|
+
sourceCurrency: string;
|
|
120
|
+
targetCurrency: string;
|
|
121
|
+
sourceAmount?: number;
|
|
122
|
+
targetAmount?: number;
|
|
123
|
+
orderType?: string;
|
|
124
|
+
lang?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface SegmentFundRequest {
|
|
127
|
+
account?: string;
|
|
128
|
+
id?: string;
|
|
129
|
+
fromSegment?: string;
|
|
130
|
+
toSegment?: string;
|
|
131
|
+
currency?: string;
|
|
132
|
+
amount?: number;
|
|
133
|
+
limit?: number;
|
|
134
|
+
lang?: string;
|
|
135
|
+
}
|
|
136
|
+
export interface FundDetailsRequest {
|
|
137
|
+
account?: string;
|
|
138
|
+
segTypes?: string[];
|
|
139
|
+
fundType?: string;
|
|
140
|
+
currency?: string;
|
|
141
|
+
/** 毫秒时间戳 */
|
|
142
|
+
startDate?: number;
|
|
143
|
+
/** 毫秒时间戳 */
|
|
144
|
+
endDate?: number;
|
|
145
|
+
limit?: number;
|
|
146
|
+
pageToken?: string;
|
|
147
|
+
lang?: string;
|
|
148
|
+
}
|
|
149
|
+
export interface FundingHistoryRequest {
|
|
150
|
+
account?: string;
|
|
151
|
+
segType?: string;
|
|
152
|
+
currency?: string;
|
|
153
|
+
/** 毫秒时间戳 */
|
|
154
|
+
startDate?: number;
|
|
155
|
+
/** 毫秒时间戳 */
|
|
156
|
+
endDate?: number;
|
|
157
|
+
limit?: number;
|
|
158
|
+
lang?: string;
|
|
159
|
+
}
|
|
160
|
+
export interface PositionTransferRequest {
|
|
161
|
+
fromAccount?: string;
|
|
162
|
+
toAccount: string;
|
|
163
|
+
market?: string;
|
|
164
|
+
transfers: Array<{
|
|
165
|
+
symbol?: string;
|
|
166
|
+
quantity?: number;
|
|
167
|
+
expiry?: string;
|
|
168
|
+
strike?: string;
|
|
169
|
+
right?: string;
|
|
170
|
+
secType?: string;
|
|
171
|
+
}>;
|
|
172
|
+
lang?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface PositionTransferRecordsRequest {
|
|
175
|
+
/** wire: account_id */
|
|
176
|
+
accountId?: string;
|
|
177
|
+
sinceDate?: string;
|
|
178
|
+
toDate?: string;
|
|
179
|
+
market?: string;
|
|
180
|
+
limit?: number;
|
|
181
|
+
lang?: string;
|
|
182
|
+
}
|
|
183
|
+
export interface PositionTransferDetailRequest {
|
|
184
|
+
accountId?: string;
|
|
185
|
+
id: string;
|
|
186
|
+
lang?: string;
|
|
187
|
+
}
|
|
188
|
+
export interface PositionTransferExternalRecordsRequest {
|
|
189
|
+
accountId?: string;
|
|
190
|
+
sinceDate?: string;
|
|
191
|
+
toDate?: string;
|
|
192
|
+
market?: string;
|
|
193
|
+
limit?: number;
|
|
194
|
+
lang?: string;
|
|
195
|
+
}
|
|
196
|
+
/** 行权检验请求 (wire: option_exercise_check) */
|
|
197
|
+
export interface OptionExerciseCheckRequest {
|
|
198
|
+
account?: string;
|
|
199
|
+
secretKey?: string;
|
|
200
|
+
/** 期权合约 ID */
|
|
201
|
+
contractId: number;
|
|
202
|
+
/** Exercise | Expire */
|
|
203
|
+
type: string;
|
|
204
|
+
quantity?: number;
|
|
205
|
+
/** yyyy-MM-dd,Exercise 类型建议填 */
|
|
206
|
+
executingDate?: string;
|
|
207
|
+
/** Exercise 类型建议填 */
|
|
208
|
+
isForce?: boolean;
|
|
209
|
+
/** 0–10,Expire 类型专用 */
|
|
210
|
+
itmRate?: number;
|
|
211
|
+
lang?: string;
|
|
212
|
+
}
|
|
213
|
+
/** 查询可行权持仓请求 (wire: option_exercise_position) */
|
|
214
|
+
export interface OptionExercisePositionRequest {
|
|
215
|
+
account?: string;
|
|
216
|
+
secretKey?: string;
|
|
217
|
+
/** Exercise | Expire */
|
|
218
|
+
type: string;
|
|
219
|
+
lang?: string;
|
|
220
|
+
}
|
|
221
|
+
/** 提交行权申请请求 (wire: option_exercise_submit) */
|
|
222
|
+
export interface OptionExerciseSubmitRequest {
|
|
223
|
+
account?: string;
|
|
224
|
+
secretKey?: string;
|
|
225
|
+
contractId: number;
|
|
226
|
+
/** Exercise | Expire */
|
|
227
|
+
type: string;
|
|
228
|
+
quantity: number;
|
|
229
|
+
/** Exercise 必填,yyyy-MM-dd */
|
|
230
|
+
executingDate?: string;
|
|
231
|
+
/** Exercise 必填 */
|
|
232
|
+
isForce?: boolean;
|
|
233
|
+
/** 0–10,Expire 专用 */
|
|
234
|
+
itmRate?: number;
|
|
235
|
+
lang?: string;
|
|
236
|
+
}
|
|
237
|
+
/** 分页查询行权记录请求 (wire: option_exercise_record) */
|
|
238
|
+
export interface OptionExerciseRecordsRequest {
|
|
239
|
+
account?: string;
|
|
240
|
+
secretKey?: string;
|
|
241
|
+
/** 从 1 开始,默认 1 */
|
|
242
|
+
page?: number;
|
|
243
|
+
/** 1–100,默认 20 */
|
|
244
|
+
size?: number;
|
|
245
|
+
/** New | Cancel | Success | Fail */
|
|
246
|
+
status?: string;
|
|
247
|
+
/** Exercise | Expire */
|
|
248
|
+
type?: string;
|
|
249
|
+
symbol?: string;
|
|
250
|
+
/** symbol | expire_date | strike | is_call */
|
|
251
|
+
orderBy?: string;
|
|
252
|
+
lang?: string;
|
|
253
|
+
}
|
|
254
|
+
/** 撤销行权申请请求 (wire: option_exercise_cancel) */
|
|
255
|
+
export interface OptionExerciseCancelRequest {
|
|
256
|
+
account?: string;
|
|
257
|
+
secretKey?: string;
|
|
258
|
+
id: number;
|
|
259
|
+
lang?: string;
|
|
260
|
+
}
|