class Cryptoexchange::Exchanges::Bilaxy::Services::Pairs

Constants

PAIRS_URL

Public Instance Methods

fetch() click to toggle source
Calls superclass method Cryptoexchange::Services::Pairs#fetch
# File lib/cryptoexchange/exchanges/bilaxy/services/pairs.rb, line 7
def fetch
  output = super
  output['dataMap'].map do |target, symbol|
    symbol.map do |base_info|
      Cryptoexchange::Models::Bilaxy::MarketPair.new(
        base:   base_info['fShortName'],
        target: target,
        id:     base_info['fid'],
        market: Bilaxy::Market::NAME
      )
    end
  end.flatten
end