Commit 4a10847
committed
Clear market depth when depth is stopped
Previously the stopped market depth data remained in the Ticker object
until the next depth request, but it would obviously be old and just
using extra memory unnecessarily since it wasn't being used anymore.
Now we clear the market depth data on:
- initial market data request (ib.py)
- upstream market data "reset" signal (wrapper.py)
- market data stop/cancel (ib.py)1 parent 7ffac04 commit 4a10847
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1533 | 1533 | | |
1534 | 1534 | | |
1535 | 1535 | | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
1536 | 1543 | | |
1537 | 1544 | | |
1538 | 1545 | | |
| |||
0 commit comments