Skip to content

websocket order update messages not received several hours after subscription. #129

@simpzan

Description

@simpzan

Describe the bug

when I subscribe orders channel, initially I can receive the order update messages. but after several hours, I can't receive the messages any more.

Steps to Reproduce

Steps to reproduce the behaviour:

  1. subscribe order channel
  2. create a limit order, I can receive the realtime order update message now.
  3. 7 hours later, the order is filled, but there's no update messages received.

Expected Behaviour

I can always receive the realtime messages as long as the connection is there.

Additional context

I am trying to monitor my order status, and create new orders when my old order is filled.

Possible Solution

https://www.interactivebrokers.com/campus/ibkr-api-page/cpapi-v1/#ws-ping
per this doc, it is need to ping the channel every minutes to keep channel actually alive.

Your Environment

  • IBind version: 0.1.19
  • Python version (e.g. 3.10): 3.10.12
  • Authentication method (Gateway, IBeam or OAuth): IBeam
  • Operating System and version: Ubuntu 22.04.4 LTS
  • Link to your project/code (if public) :

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions