ib-ruby / ib-extensions

Helpers and Macros that ease the usage of the TWS-API of Interactive Brokers through IB-Ruby
https://ib-ruby/github.io/ib-doc
0 stars 1 forks source link

Alerts module #1

Closed kvokka closed 4 years ago

kvokka commented 4 years ago

Can you please double check the ib-extensions/lib/alerts/base-alert.rb file, cos it looks like it should be in api?

Maybe i just misunderstood something. Thank u

topofocus commented 4 years ago

You are right and wrong. If ib-api just provides the api to the ruby world, then it should basically gather information, ie. account informations, contract infos, scanner data, news and orderstatus. In addition it should send orders, too.

Any additional stuff should go to other gems. IB::Alert translates Alerts to ruby-classes. It is currently used by gateway and account-infos.

You are right, its not properly required. Perhaps its best, to provide this functionality as extension as well.

kvokka commented 4 years ago

Thank you for such a clear explanation. Will leave it as it is then