class Cryptoexchange::Exchanges::Idax::Services::Pairs
Constants
- HTTP_METHOD
- PAIRS_URL
Public Instance Methods
adapt(output)
click to toggle source
# File lib/cryptoexchange/exchanges/idax/services/pairs.rb, line 13 def adapt(output) output['data'].map do |market| Cryptoexchange::Models::MarketPair.new({ base: market['baseCode'], target: market['quoteCode'], market: Idax::Market::NAME }) end end
fetch_via_api()
click to toggle source
Calls superclass method
Cryptoexchange::Services::Pairs#fetch_via_api
# File lib/cryptoexchange/exchanges/idax/services/pairs.rb, line 8 def fetch_via_api output = super adapt(output) end