forked from jasonweiyi/XAPI2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventArgs.cs
More file actions
241 lines (222 loc) · 6.96 KB
/
Copy pathEventArgs.cs
File metadata and controls
241 lines (222 loc) · 6.96 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace XAPI.Event
{
[ComVisible(false)]
public class OnConnectionStatusEventArgs:EventArgs
{
public readonly ConnectionStatus status;
public readonly RspUserLoginField userLogin;
public readonly int size1;
public OnConnectionStatusEventArgs(ConnectionStatus status, ref RspUserLoginField userLogin, int size1)
{
this.status = status;
this.userLogin = userLogin;
this.size1 = size1;
}
}
[ComVisible(false)]
public class OnRtnErrorEventArgs : EventArgs
{
public readonly ErrorField error;
public OnRtnErrorEventArgs(ref ErrorField error)
{
this.error = error;
}
}
[ComVisible(false)]
public class OnLogEventArgs : EventArgs
{
public readonly LogField log;
public OnLogEventArgs(ref LogField log)
{
this.log = log;
}
}
[ComVisible(false)]
public class OnRtnDepthMarketDataNEventArgs : EventArgs
{
public readonly DepthMarketDataNClass marketData;
public OnRtnDepthMarketDataNEventArgs(ref DepthMarketDataNClass marketData)
{
this.marketData = marketData;
}
}
[ComVisible(false)]
public class OnRtnQuoteRequestEventArgs : EventArgs
{
public readonly QuoteRequestField quoteRequest;
public OnRtnQuoteRequestEventArgs(ref QuoteRequestField quoteRequest)
{
this.quoteRequest = quoteRequest;
}
}
[ComVisible(false)]
public class OnRspQryInstrumentEventArgs : EventArgs
{
public readonly InstrumentField instrument;
public readonly int size1;
public readonly bool bIsLast;
public OnRspQryInstrumentEventArgs(ref InstrumentField instrument, int size1, bool bIsLast)
{
this.instrument = instrument;
this.size1 = size1;
this.bIsLast = bIsLast;
}
}
[ComVisible(false)]
public class OnRspQryTradingAccountEventArgs : EventArgs
{
public readonly AccountField account;
public readonly int size1;
public readonly bool bIsLast;
public OnRspQryTradingAccountEventArgs(ref AccountField account, int size1, bool bIsLast)
{
this.account = account;
this.size1 = size1;
this.bIsLast = bIsLast;
}
}
[ComVisible(false)]
public class OnRspQryInvestorPositionEventArgs : EventArgs
{
public readonly PositionField position;
public readonly int size1;
public readonly bool bIsLast;
public OnRspQryInvestorPositionEventArgs(ref PositionField position, int size1, bool bIsLast)
{
this.position = position;
this.size1 = size1;
this.bIsLast = bIsLast;
}
}
[ComVisible(false)]
public class OnRspQrySettlementInfoEventArgs : EventArgs
{
public readonly SettlementInfoClass settlementInfo;
public readonly int size1;
public readonly bool bIsLast;
public OnRspQrySettlementInfoEventArgs(ref SettlementInfoClass settlementInfo, int size1, bool bIsLast)
{
this.settlementInfo = settlementInfo;
this.size1 = size1;
this.bIsLast = bIsLast;
}
}
[ComVisible(false)]
public class OnRspQryOrderEventArgs : EventArgs
{
public readonly OrderField order;
public readonly int size1;
public readonly bool bIsLast;
public OnRspQryOrderEventArgs(ref OrderField order, int size1, bool bIsLast)
{
this.order = order;
this.size1 = size1;
this.bIsLast = bIsLast;
}
}
[ComVisible(false)]
public class OnRspQryTradeEventArgs : EventArgs
{
public readonly TradeField trade;
public readonly int size1;
public readonly bool bIsLast;
public OnRspQryTradeEventArgs(ref TradeField trade, int size1, bool bIsLast)
{
this.trade = trade;
this.size1 = size1;
this.bIsLast = bIsLast;
}
}
[ComVisible(false)]
public class OnRspQryQuoteEventArgs : EventArgs
{
public readonly QuoteField quote;
public readonly int size1;
public readonly bool bIsLast;
public OnRspQryQuoteEventArgs(ref QuoteField quote, int size1, bool bIsLast)
{
this.quote = quote;
this.size1 = size1;
this.bIsLast = bIsLast;
}
}
[ComVisible(false)]
public class OnRtnOrderEventArgs : EventArgs
{
public readonly OrderField order;
public OnRtnOrderEventArgs(ref OrderField order)
{
this.order = order;
}
}
[ComVisible(false)]
public class OnRtnTradeEventArgs : EventArgs
{
public readonly TradeField trade;
public OnRtnTradeEventArgs(ref TradeField trade)
{
this.trade = trade;
}
}
[ComVisible(false)]
public class OnRtnQuoteEventArgs : EventArgs
{
public readonly QuoteField quote;
public OnRtnQuoteEventArgs(ref QuoteField quote)
{
this.quote = quote;
}
}
[ComVisible(false)]
public class OnRspQryHistoricalTicksEventArgs : EventArgs
{
public readonly IntPtr pTicks;
public readonly int size1;
public readonly HistoricalDataRequestField request;
public readonly int size2;
public readonly bool bIsLast;
public OnRspQryHistoricalTicksEventArgs(IntPtr pTicks, int size1, ref HistoricalDataRequestField request, int size2, bool bIsLast)
{
this.pTicks = pTicks;
this.size1 = size1;
this.request = request;
this.size2 = size2;
this.bIsLast = bIsLast;
}
}
[ComVisible(false)]
public class OnRspQryHistoricalBarsEventArgs : EventArgs
{
public readonly IntPtr pTicks;
public readonly int size1;
public readonly HistoricalDataRequestField request;
public readonly int size2;
public readonly bool bIsLast;
public OnRspQryHistoricalBarsEventArgs(IntPtr pTicks, int size1, ref HistoricalDataRequestField request, int size2, bool bIsLast)
{
this.pTicks = pTicks;
this.size1 = size1;
this.request = request;
this.size2 = size2;
this.bIsLast = bIsLast;
}
}
[ComVisible(false)]
public class OnRspQryInvestorEventArgs : EventArgs
{
public readonly InvestorField investor;
public readonly int size1;
public readonly bool bIsLast;
public OnRspQryInvestorEventArgs(ref InvestorField investor, int size1, bool bIsLast)
{
this.investor = investor;
this.size1 = size1;
this.bIsLast = bIsLast;
}
}
}