wboayue / rust-ibapi

An implementation of the Interactive Brokers API for Rust
MIT License
38 stars 17 forks source link

Unexpected closed connection using tick-by-tick #99

Closed Pl0414141 closed 1 year ago

Pl0414141 commented 1 year ago

Hi,

To reproduce:

  1. Open TWS

  2. Connect using the example in this repo through tick-by-tick last data https://raw.githubusercontent.com/wboayue/rust-ibapi/main/examples/tick_by_tick.rs

  3. If the client do not receive any tick between 10-20 seconds the connection is closed.

Expected result:

The client should wait for more incoming ticks, do not close the connection.

Actual result:

Connection closed.

wboayue commented 1 year ago

Released a new version 0.4.0 that removes timeouts from realtime streams.