Module: IB

Defined in:
lib/ib-ruby/messages.rb,
lib/ib-ruby/ib.rb,
lib/ib-ruby/datatypes.rb,
lib/ib-ruby/symbols/forex.rb,
lib/ib-ruby/symbols/futures.rb

Overview

The Futures constant is currently for testing purposes. It guesses the front month currency future using a crude algorithm that does not take into account expiry/rollover day. This will be valid most of the time, but near/after expiry day the next quarter’s contract takes over as the volume leader.

Note that the :description field is particular to ib-ruby, and is NOT part of the standard TWS API. It is never transmitted to IB. It’s purely used clientside, and you can store any arbitrary string that you may find useful there.

Defined Under Namespace

Modules: Datatypes, IncomingMessages, OutgoingMessages, Symbols Classes: ExtremelyAbstractMessage, IB, IBSocket

Constant Summary collapse

TWS_IP_ADDRESS =
"127.0.0.1"
TWS_PORT =
"7496"