class Cryptoexchange::Exchanges::Szzc::Services::Pairs
Constants
- PAIRS_URL
Public Instance Methods
adapt(output)
click to toggle source
# File lib/cryptoexchange/exchanges/szzc/services/pairs.rb, line 12 def adapt(output) market_pairs = [] HashHelper.dig(output, 'status', 'message').each do |name, pair| market_pairs << Cryptoexchange::Models::MarketPair.new( base: pair['bid_asset_symbol'], target: pair['ask_asset_symbol'], market: Szzc::Market::NAME ) end market_pairs end
fetch()
click to toggle source
Calls superclass method
Cryptoexchange::Services::Pairs#fetch
# File lib/cryptoexchange/exchanges/szzc/services/pairs.rb, line 8 def fetch adapt(super) end