Module: RbtcArbitrage::TraderHelpers::Logger
- Included in:
- RbtcArbitrage::Trader
- Defined in:
- lib/rbtc_arbitrage/trader/logger.rb
Instance Method Summary collapse
Instance Method Details
#log_info ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rbtc_arbitrage/trader/logger.rb', line 8 def log_info lower_ex = @buy_client.exchange.to_s.capitalize higher_ex = @sell_client.exchange.to_s.capitalize logger.info "#{lower_ex} (Ask): $#{color(buyer[:price].round(2))}" logger.info "#{higher_ex} (Bid): $#{color(seller[:price].round(2))}" logger.info log_string("buying", lower_ex, @paid) logger.info log_string("selling", higher_ex, @received) log_profit end |
#logger ⇒ Object
4 5 6 |
# File 'lib/rbtc_arbitrage/trader/logger.rb', line 4 def logger @options[:logger] end |