class Cryptoexchange::Exchanges::Joyso::Services::IdFetcher
Public Class Methods
get_id(base)
click to toggle source
# File lib/cryptoexchange/exchanges/joyso/services/id_fetcher.rb, line 5 def self.get_id(base) tokens = HTTP.get("#{Cryptoexchange::Exchanges::Joyso::Market::API_URL}/system") pairs_result = tokens.parse(:json) base_token = pairs_result['tokens'].select { |s| s['symbol'] == base } base_token[0]['address'] end