stoqey / ibkr

Interactive Brokers wrapper 🚩
MIT License
59 stars 11 forks source link

add option to prevent process from exiting immediately on disconnect #90

Open mistakia opened 1 year ago

mistakia commented 1 year ago

https://github.com/stoqey/ibkr/blob/665072e4df483bf8639a6ba9eb3d4b4555ca03da/src/connection/IBKRConnection.ts#L135

The process will currently exit on a disconnect event which is not desirable for my use-case. Not sure what the best approach would be but the main one that comes to mind is to leave this as the default behavior and allow an option on initialization to change this behavior.

ceddybi commented 1 year ago

@mistakia Thank you for pointing that out have you tried using the stoqey/ib library instead ?

mistakia commented 1 year ago

I have not — I will try that instead. Thanks for the tip.