class Cryptoexchange::Exchanges::Nusax::Services::Pairs
Constants
- PAIRS_URL
Public Instance Methods
fetch()
click to toggle source
Calls superclass method
Cryptoexchange::Services::Pairs#fetch
# File lib/cryptoexchange/exchanges/nusax/services/pairs.rb, line 7 def fetch output = super output.map do |pair| Cryptoexchange::Models::MarketPair.new( base: pair["name"].split("/")[0], target: pair["name"].split("/")[1], market: Nusax::Market::NAME, inst_id: pair["id"] ) end end