Commit b929515
authored
fix!: Support the recent ibapi changes (#132)
This pull request updates the documentation and example scripts to
improve virtual environment handling and contract definitions, refines
tick type usage, and makes API and error handling more precise. The
changes also clarify the order placement process and update various
contract parameters for accuracy.
**Virtual Environment and Documentation Improvements**
* Updated the `README.md` to recommend creating a temporary local
virtual environment for running the `dhib_env.py` installer script,
preventing system-wide package installations. Instructions for
activating, using, and cleaning up the environment are now included.
**Contract and Example Script Updates**
* Changed contract definitions in
`examples/example_all_functionality.py` and
`examples/example_read_only_functionality.py` to use updated symbols and
parameters (e.g., `ESM6`, new expiry dates, and strikes for options).
[[1]](diffhunk://#diff-f4fb9199c484cedf1eda84e6adfe319200009a55ad49b25ab64b9bf2a79a709eL107-R107)
[[2]](diffhunk://#diff-f4fb9199c484cedf1eda84e6adfe319200009a55ad49b25ab64b9bf2a79a709eL173-R174)
[[3]](diffhunk://#diff-4ea80aca49ce3a9308c5f29615ec342c39a735c698576b90e9b849d03e6588c7L103-R103)
[[4]](diffhunk://#diff-4ea80aca49ce3a9308c5f29615ec342c39a735c698576b90e9b849d03e6588c7L169-R170)
* Added `tif = "DAY"` to all sample orders for clarity and consistency
in both example scripts.
[[1]](diffhunk://#diff-f4fb9199c484cedf1eda84e6adfe319200009a55ad49b25ab64b9bf2a79a709eR493)
[[2]](diffhunk://#diff-f4fb9199c484cedf1eda84e6adfe319200009a55ad49b25ab64b9bf2a79a709eR505)
[[3]](diffhunk://#diff-f4fb9199c484cedf1eda84e6adfe319200009a55ad49b25ab64b9bf2a79a709eR517)
[[4]](diffhunk://#diff-4ea80aca49ce3a9308c5f29615ec342c39a735c698576b90e9b849d03e6588c7R489)
[[5]](diffhunk://#diff-4ea80aca49ce3a9308c5f29615ec342c39a735c698576b90e9b849d03e6588c7R507-R523)
**API and Error Handling Refinements**
* Modified the `request_account_pnl` method to require an explicit
account argument, removing the default "All" value, and updated example
scripts to pass the account parameter.
[[1]](diffhunk://#diff-2908a81036e0aa30f05a7491e9ba007a7be2622e6393c2fa22b67ad3fe49954dL737-R741)
[[2]](diffhunk://#diff-f4fb9199c484cedf1eda84e6adfe319200009a55ad49b25ab64b9bf2a79a709eL250-R250)
[[3]](diffhunk://#diff-4ea80aca49ce3a9308c5f29615ec342c39a735c698576b90e9b849d03e6588c7L246-R246)
* Added new error codes to `src/deephaven_ib/_internal/error_codes.py`
for improved feedback, including codes for indicative product valuation
and order TIF preset.
[[1]](diffhunk://#diff-3eec66c3648fafd75936057e023fccd38778770da1e6f9399d538383c6976c6fR36)
[[2]](diffhunk://#diff-3eec66c3648fafd75936057e023fccd38778770da1e6f9399d538383c6976c6fR46)
**Tick Type and Market Data Adjustments**
* Removed unsupported or deprecated tick types (`NEWS`,
`OPTION_VOLATILITY_HISTORICAL`) from the codebase and updated tick type
definitions to include delayed yield bid/ask.
[[1]](diffhunk://#diff-2908a81036e0aa30f05a7491e9ba007a7be2622e6393c2fa22b67ad3fe49954dL56-L58)
[[2]](diffhunk://#diff-2908a81036e0aa30f05a7491e9ba007a7be2622e6393c2fa22b67ad3fe49954dL98-R99)
[[3]](diffhunk://#diff-f4fb9199c484cedf1eda84e6adfe319200009a55ad49b25ab64b9bf2a79a709eL418)
[[4]](diffhunk://#diff-f4fb9199c484cedf1eda84e6adfe319200009a55ad49b25ab64b9bf2a79a709eL440)
[[5]](diffhunk://#diff-4ea80aca49ce3a9308c5f29615ec342c39a735c698576b90e9b849d03e6588c7L414)
[[6]](diffhunk://#diff-4ea80aca49ce3a9308c5f29615ec342c39a735c698576b90e9b849d03e6588c7L436)
* Updated example scripts to default to delayed market data type and
commented out real-time market data and news article requests for
clarity.
[[1]](diffhunk://#diff-f4fb9199c484cedf1eda84e6adfe319200009a55ad49b25ab64b9bf2a79a709eL275-R282)
[[2]](diffhunk://#diff-4ea80aca49ce3a9308c5f29615ec342c39a735c698576b90e9b849d03e6588c7L271-R278)
**Output and Logging Improvements**
* Improved output formatting in example scripts for readability by
adding newlines to contract print statements and clarifying order
placement logs.
[[1]](diffhunk://#diff-f4fb9199c484cedf1eda84e6adfe319200009a55ad49b25ab64b9bf2a79a709eL240-R240)
[[2]](diffhunk://#diff-4ea80aca49ce3a9308c5f29615ec342c39a735c698576b90e9b849d03e6588c7L236-R236)
[[3]](diffhunk://#diff-4ea80aca49ce3a9308c5f29615ec342c39a735c698576b90e9b849d03e6588c7R507-R523)
These changes enhance usability, maintainability, and clarity for users
and developers working with the deephaven-ib integration.1 parent 7840aaf commit b929515
File tree
7 files changed
+72
-50
lines changed- .github/workflows
- examples
- src/deephaven_ib
- _internal
7 files changed
+72
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
10 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
201 | 209 | | |
202 | 210 | | |
203 | | - | |
| 211 | + | |
204 | 212 | | |
205 | 213 | | |
206 | 214 | | |
207 | 215 | | |
208 | | - | |
| 216 | + | |
209 | 217 | | |
210 | 218 | | |
211 | 219 | | |
212 | 220 | | |
213 | | - | |
| 221 | + | |
214 | 222 | | |
215 | 223 | | |
216 | 224 | | |
217 | 225 | | |
218 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
219 | 233 | | |
220 | 234 | | |
221 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
| 173 | + | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
| 281 | + | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | 418 | | |
420 | 419 | | |
421 | 420 | | |
| |||
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
440 | | - | |
441 | 439 | | |
442 | 440 | | |
443 | 441 | | |
| |||
492 | 490 | | |
493 | 491 | | |
494 | 492 | | |
| 493 | + | |
495 | 494 | | |
496 | 495 | | |
497 | 496 | | |
| |||
503 | 502 | | |
504 | 503 | | |
505 | 504 | | |
| 505 | + | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
| 517 | + | |
517 | 518 | | |
518 | 519 | | |
519 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
| 169 | + | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | | - | |
| 277 | + | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
415 | 414 | | |
416 | 415 | | |
417 | 416 | | |
| |||
433 | 432 | | |
434 | 433 | | |
435 | 434 | | |
436 | | - | |
437 | 435 | | |
438 | 436 | | |
439 | 437 | | |
| |||
488 | 486 | | |
489 | 487 | | |
490 | 488 | | |
| 489 | + | |
491 | 490 | | |
492 | 491 | | |
493 | 492 | | |
| |||
505 | 504 | | |
506 | 505 | | |
507 | 506 | | |
| 507 | + | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
| 517 | + | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| 525 | + | |
525 | 526 | | |
526 | 527 | | |
527 | 528 | | |
528 | | - | |
| 529 | + | |
529 | 530 | | |
530 | 531 | | |
531 | 532 | | |
532 | 533 | | |
533 | 534 | | |
534 | 535 | | |
| 536 | + | |
535 | 537 | | |
536 | 538 | | |
537 | 539 | | |
| |||
0 commit comments