-
Notifications
You must be signed in to change notification settings - Fork 7
/
esunny_md_data_struct.py
99 lines (95 loc) · 2.75 KB
/
esunny_md_data_struct.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
TapAPIQuoteLoginAuth = {
"UserNo": "string",
"ISModifyPassword": "char",
"Password": "string",
"NewPassword": "string",
"QuoteTempPassword": "string",
"ISDDA": "char",
"DDASerialNo": "string",
}
TapAPIQuotLoginRspInfo = {
"UserNo": "string",
"UserType": "int",
"UserName": "string",
"QuoteTempPassword": "string",
"ReservedInfo": "string",
"LastLoginIP": "string",
"LastLoginProt": "unsigned int",
"LastLoginTime": "string",
"LastLogoutTime": "string",
"TradeDate": "string",
"LastSettleTime": "string",
"StartTime": "string",
"InitTime": "string",
}
TapAPIQuoteCommodityInfo = {
"Commodity": "dict",
"CommodityName": "string",
"CommodityEngName": "string",
"ContractSize": "double",
"CommodityTickSize": "double",
"CommodityDenominator": "int",
"CmbDirect": "char",
"CommodityContractLen": "int",
"IsDST": "char",
"RelateCommodity1": "dict",
"RelateCommodity2": "dict",
}
TapAPIQuoteContractInfo = {
"Contract": "dict",
"ContractType": "char",
"QuoteUnderlyingContract": "string",
"ContractName": "string",
"ContractExpDate": "string",
"LastTradeDate": "string",
"FirstNoticeDate": "string",
}
TapAPIQuoteWhole = {
"Contract": "dict",
"CurrencyNo": "string",
"TradingState": "char",
"DateTimeStamp": "string",
"QPreClosingPrice": "double",
"QPreSettlePrice": "double",
"QPrePositionQty": "unsigned long long",
"QOpeningPrice": "double",
"QLastPrice": "double",
"QHighPrice": "double",
"QLowPrice": "double",
"QHisHighPrice": "double",
"QHisLowPrice": "double",
"QLimitUpPrice": "double",
"QLimitDownPrice": "double",
"QTotalQty": "unsigned long long",
"QTotalTurnover": "double",
"QPositionQty": "unsigned long long",
"QAveragePrice": "double",
"QClosingPrice": "double",
"QSettlePrice": "double",
"QLastQty": "unsigned long long",
"QBidPrice": "double",
"QBidQty": "unsigned long long",
"QAskPrice": "double",
"QAskQty": "unsigned long long",
"QImpliedBidPrice": "double",
"QImpliedBidQty": "unsigned long long",
"QImpliedAskPrice": "double",
"QImpliedAskQty": "unsigned long long",
"QPreDelta": "double",
"QCurrDelta": "double",
"QInsideQty": "unsigned long long",
"QOutsideQty": "unsigned long long",
"QTurnoverRate": "double",
"Q5DAvgQty": "unsigned long long",
"QPERatio": "double",
"QTotalValue": "double",
"QNegotiableValue": "double",
"QPositionTrend": "long long",
"QChangeSpeed": "double",
"QChangeRate": "double",
"QChangeValue": "double",
"QSwing": "double",
"QTotalBidQty": "unsigned long long",
"QTotalAskQty": "unsigned long long",
"UnderlyContract": "dict",
}