Repository navigation
Commit 34c7012
authored
Allow passing order object to modify_order() to skip get_order() call (#47)
For time-critical order modifications (e.g., bracket modifications during
position reversals), the get_order() call adds ~500-800ms of network latency.
Callers can now pass `order=` with an object containing the required fields
(account_id, basket_id, symbol, exchange, quantity, price_type, price) to
skip the lookup. Existing callers without `order=` are unaffected.
Fixes #461 parent 8513adc commit 34c7012
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
325 | 329 | | |
326 | 330 | | |
327 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
328 | 334 | | |
329 | 335 | | |
330 | 336 | | |
| |||
0 commit comments