Commit 66a80bf
committed
Refactor infrastructure and improve trading pair support
Key changes:
1. Infrastructure improvements:
- Reordered session member in OrderBookInfraContext for better destruction order
- Replaced jthread with boost::asio::post for IO context execution
- Added proper session stopping in StopAsync()
- Enhanced WebSocket session cleanup with promises/futures for proper shutdown
2. Trading pair enhancements:
- Expanded supported trading pairs (added ETHBTC, BNBUSDT, SOLBNB, XRPUSDT, ADAUSDT, ADAXRP etc.)
- Updated converters and mappings for new trading pairs
- Added validation for trading pair in snapshot processing
3. Performance and stability:
- Added latency measurement for Binance depth updates
- Reduced verbose logging in JSON parsers
- Improved error handling for missing trading pairs
- Added proper cancellation support in WebSocket sessions
4. New features:
- Added base TradeSubscriptionBuilder for spot and futures
- Extended Bybit support with linear tickers channel
- Improved memory pool constants for funding rate events
5. Bug fixes:
- Fixed trading pair initialization in OrderBookEventInterface
- Ensured proper trading pair setting in snapshot listeners
- Added missing trading pair checks in sync logic
The changes improve stability, add support for more trading pairs, enhance performance monitoring, and provide better resource cleanup during shutdown.1 parent 5ffc4f8 commit 66a80bf
File tree
50 files changed
+1810
-195
lines changed- aoe
- binance
- infrastructure
- order_book_event
- order_book_sync
- parser/json/ws
- diff_response
- trade_response
- response_queue_listener/json
- rest/snapshot
- ws/diff_response
- subscription_builder
- bybit
- constants
- events_acceptor/funding_rate_event
- event/funding_rate_event
- parser/json/ws
- order_book_response
- ticker_response/funding_rate
- response_queue_listener/json/ws
- execution_response
- order_book_response
- order_response
- tickers_response/funding_rate
- session/web_socket
- subscription_builder/tickers
- response_queue_listener
- session/web_socket
- aos
- converters
- big_string_view_to_trading_pair
- tickers_to_trading_pair
- trading_pair_to_big_string_view
- trading_pair_to_small_string_view
- trading_pair_to_tickers
- event/funding_rate
- market_type
- ticker
- trading_pair_triangle
- trading_pair
- examples
- example31
- example44 copy
- example44
- example45
- example46
- example47
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
50 files changed
+1810
-195
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| 128 | + | |
| 129 | + | |
122 | 130 | | |
123 | 131 | | |
124 | 132 | | |
| |||
138 | 146 | | |
139 | 147 | | |
140 | 148 | | |
| 149 | + | |
| 150 | + | |
141 | 151 | | |
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
| 155 | + | |
145 | 156 | | |
146 | 157 | | |
147 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
| 51 | + | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
200 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
201 | 214 | | |
202 | 215 | | |
203 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
129 | 132 | | |
130 | 133 | | |
131 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
132 | 145 | | |
133 | 146 | | |
134 | 147 | | |
| |||
279 | 292 | | |
280 | 293 | | |
281 | 294 | | |
282 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
283 | 298 | | |
284 | 299 | | |
285 | 300 | | |
| |||
300 | 315 | | |
301 | 316 | | |
302 | 317 | | |
303 | | - | |
| 318 | + | |
| 319 | + | |
304 | 320 | | |
305 | 321 | | |
306 | 322 | | |
| |||
317 | 333 | | |
318 | 334 | | |
319 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
320 | 346 | | |
321 | 347 | | |
322 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
46 | 63 | | |
47 | 64 | | |
48 | 65 | | |
| |||
Lines changed: 18 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 | + | |
0 commit comments