class Cryptoexchange::Exchanges::Alluma::Services::Pairs

Constants

PAIRS_URL

Public Instance Methods

fetch() click to toggle source
Calls superclass method Cryptoexchange::Services::Pairs#fetch
# File lib/cryptoexchange/exchanges/alluma/services/pairs.rb, line 7
def fetch
  output = super
  output['data'].map do |pair|
    next if pair['hidePair'] == true

    Cryptoexchange::Models::MarketPair.new(
      base:   pair['target'],
      target: pair['base'],
      market: Alluma::Market::NAME
    )
  end.compact
end