Module: Flashboy

Defined in:
lib/flashboy.rb,
lib/flashboy/ask.rb,
lib/flashboy/bid.rb,
lib/flashboy/cex.rb,
lib/flashboy/gdax.rb,
lib/flashboy/order.rb,
lib/flashboy/quote.rb,
lib/flashboy/trade.rb,
lib/flashboy/client.rb,
lib/flashboy/gemini.rb,
lib/flashboy/kraken.rb,
lib/flashboy/quoine.rb,
lib/flashboy/bittrex.rb,
lib/flashboy/version.rb,
lib/flashboy/bitfinex.rb,
lib/flashboy/exchange.rb,
lib/flashboy/poloniex.rb,
lib/flashboy/order_book.rb

Defined Under Namespace

Classes: Ask, Bid, Bitfinex, Bittrex, Cex, Client, Exchange, Gdax, Gemini, Kraken, Order, OrderBook, Poloniex, Quoine, Quote, Trade

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.exchangesObject



43
44
45
# File 'lib/flashboy.rb', line 43

def self.exchanges
  [Bitfinex, Bittrex, Cex, Gdax, Gemini, Kraken, Poloniex, Quoine]
end

.loggerObject



27
28
29
# File 'lib/flashboy.rb', line 27

def self.logger
  @logger ||= Logger.new(STDOUT)
end

.order_book(pair) ⇒ Object



37
38
39
40
41
# File 'lib/flashboy.rb', line 37

def self.order_book(pair)
  exchanges.map do |exchange|
    exchange.new.order_book(pair)
  end
end

.quote(pair) ⇒ Object



31
32
33
34
35
# File 'lib/flashboy.rb', line 31

def self.quote(pair)
  exchanges.map do |exchange|
    exchange.new.quote(pair)
  end
end