Commit b79ecad
authored
Feature: support equity index security types for history requests (#6)
* feat: supported SecurityType's HashSet in SymbolMapper
* feat: OHLC model and Json convert
* feat: extension to generate DateRange by day interval
* refactor: history request process Equity and EquityOption
test:feat: history Equity test
* test:refactor: helper class
* feat: Price model and Json converter
* feat: support history Index
test:feat: history Index
* feat: additional Log Warning in several cases
test:feat: several new wrong history test cases
* feat: handle response.StatusCode 472
* remove: validate StatusCode on 0 cuz duplication with StatusCode == Ok
* feat: skip "Connected" msg in WS handle Message
* feat: support of Index in GetLean SymbolMapper
* feat: stop all previous subscription
* feat: Un/S-ubscription process of Equity and Index
* feat: new properties in models of WS responses
* test:refactor: DataQueueHandler tests
* refactor: OpenInterest resolution warning
* feat: validate get distinct history data
* feat: add OrderBook for HandleQuoteUpdates
* fix: type of RequestId in WebSocketHeader entity
* remove: Log Warning of OpenInterest
* refactor: stop previous streaming subscriptions
* fix: variable name in WebSocketTrade entity
* feat: use ExchangeTimeZone for Symbols to get right update of ticks
* update: json config with support new Security types
* feat: new Wraps The Close() WS connection
feat: new Send() msg to WS with increment process
feat: call WS.Close() in Dispose()
* REMOVE: new keyword in Close()
rename: Close() to Close WSConnection()
feat: add Log.Debug when we have send Stop previous subs
* feat: use NewYork.TimeZone in all application
* feat: Implement SetJob pattern
* refactor: Base REST API Url to support different version and host uri
* fix: duplication of Api version in BaseURL
* refactor: blow up period in GetIndexHistory()
* refactor: TryGetExchangeOrDefault()
* feat: flag that exchange doesn't find log msg only once
* remove: default param in GetMessageOption
* refactor: create orderBook for symbol before we call Subscription1 parent 32cf5e0 commit b79ecad
18 files changed
Lines changed: 1191 additions & 183 deletions
File tree
- QuantConnect.ThetaData.Tests
- QuantConnect.ThetaData
- Converters
- Models
- Enums
- Rest
- WebSocket
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
39 | | - | |
40 | | - | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
44 | | - | |
45 | | - | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
53 | | - | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
56 | 67 | | |
57 | 68 | | |
58 | 69 | | |
| |||
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
80 | 104 | | |
81 | 105 | | |
82 | 106 | | |
| |||
143 | 167 | | |
144 | 168 | | |
145 | 169 | | |
146 | | - | |
| 170 | + | |
147 | 171 | | |
148 | 172 | | |
149 | 173 | | |
| |||
174 | 198 | | |
175 | 199 | | |
176 | 200 | | |
177 | | - | |
| 201 | + | |
178 | 202 | | |
179 | 203 | | |
180 | 204 | | |
| |||
Lines changed: 57 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | 28 | | |
31 | | - | |
| 29 | + | |
| 30 | + | |
32 | 31 | | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
60 | 61 | | |
61 | 62 | | |
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 | + | |
63 | 117 | | |
64 | 118 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
80 | 61 | | |
81 | | - | |
| 62 | + | |
82 | 63 | | |
83 | 64 | | |
84 | 65 | | |
| |||
111 | 92 | | |
112 | 93 | | |
113 | 94 | | |
114 | | - | |
| 95 | + | |
115 | 96 | | |
116 | 97 | | |
117 | 98 | | |
| |||
121 | 102 | | |
122 | 103 | | |
123 | 104 | | |
124 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
125 | 119 | | |
126 | 120 | | |
127 | 121 | | |
128 | 122 | | |
129 | 123 | | |
130 | | - | |
| 124 | + | |
131 | 125 | | |
132 | 126 | | |
133 | 127 | | |
134 | 128 | | |
135 | 129 | | |
136 | 130 | | |
137 | 131 | | |
138 | | - | |
| 132 | + | |
139 | 133 | | |
140 | 134 | | |
141 | 135 | | |
| |||
196 | 190 | | |
197 | 191 | | |
198 | 192 | | |
199 | | - | |
| 193 | + | |
200 | 194 | | |
201 | 195 | | |
202 | | - | |
| 196 | + | |
203 | 197 | | |
204 | 198 | | |
205 | 199 | | |
| |||
Lines changed: 75 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments