Module: IbRubyProxy

Defined in:
lib/ib_ruby_proxy/client/ib/bar.rb,
lib/ib_ruby_proxy.rb,
lib/ib_ruby_proxy/version.rb,
lib/ib_ruby_proxy/client/client.rb,
lib/ib_ruby_proxy/client/ib/order.rb,
lib/ib_ruby_proxy/server/ext/enum.rb,
lib/ib_ruby_proxy/util/has_logger.rb,
lib/ib_ruby_proxy/server/ext/array.rb,
lib/ib_ruby_proxy/util/string_utils.rb,
lib/ib_ruby_proxy/client/ib/contract.rb,
lib/ib_ruby_proxy/client/ib/combo_leg.rb,
lib/ib_ruby_proxy/server/ib_proxy_service.rb,
lib/ib_ruby_proxy/server/ib_client_adapter.rb,
lib/ib_ruby_proxy/client/ib/historical_tick.rb,
lib/ib_ruby_proxy/server/ib_wrapper_adapter.rb,
lib/ib_ruby_proxy/client/ib/contract_details.rb,
lib/ib_ruby_proxy/client/ib/tick_attrib_last.rb,
lib/ib_ruby_proxy/server/reflection/ib_class.rb,
lib/ib_ruby_proxy/server/reflection/ib_field.rb,
lib/ib_ruby_proxy/server/ext/idempotent_types.rb,
lib/ib_ruby_proxy/client/ib_callbacks_observer.rb,
lib/ib_ruby_proxy/client/ib/tick_attrib_bid_ask.rb,
lib/ib_ruby_proxy/client/ib/historical_tick_last.rb,
lib/ib_ruby_proxy/client/ib/delta_neutral_contract.rb,
lib/ib_ruby_proxy/client/callbacks_response_handler.rb,
lib/ib_ruby_proxy/client/ib/historical_tick_bid_ask.rb,
lib/ib_ruby_proxy/server/ib_ruby_class_files_generator.rb,
lib/ib_ruby_proxy/server/ib_ruby_class_source_generator.rb

Overview


File generated automatically by ib_ruby_proxy


Defined Under Namespace

Modules: Client, Server, Util Classes: Error

Constant Summary collapse

LOGGER_LEVEL =
Logger::DEBUG
VERSION =
'0.0.3'.freeze

Class Method Summary collapse

Class Method Details

.configHash

Configuration options parsed from ib_ruby_proxy/config.yml

Returns:

  • (Hash)


26
27
28
29
30
31
# File 'lib/ib_ruby_proxy.rb', line 26

def self.config
  @config ||= begin
    file_path = File.join(__dir__, 'ib_ruby_proxy/config.yml')
    YAML.load_file(file_path)
  end
end

.loggerLogger

Gem logger

Returns:

  • (Logger)


17
18
19
20
21
# File 'lib/ib_ruby_proxy.rb', line 17

def self.logger
  @logger ||= Logger.new(STDOUT).tap do |logger|
    logger.level = LOGGER_LEVEL
  end
end