Sha256: 8aafc02112298e1c504967100bec326f8de28497b7dd78d75a3efaf1f4c76f7e
Contents?: true
Size: 342 Bytes
Versions: 1
Compression:
Stored size: 342 Bytes
Contents
require 'parallel' require 'retries' module BitsDealer module Tickers 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bits_dealer-0.1.1 | lib/bits_dealer/commands/tickers.rb |