module BitsDealer::Tickers

Public Instance Methods

tickers() click to toggle source
# File lib/bits_dealer/commands/tickers.rb, line 6
def tickers
  books = BitsDealer::Books::ALL_BOOKS

  tickers = Parallel.map(books) do |book|
    with_retries(:max_tries => 3) { Bitsor.ticker(book: book.id) }
  end

  helper.print_tickers_table(tickers: tickers)

  nil
end