module BTCMarkets::Market
Public Class Methods
tick()
click to toggle source
# File lib/btc_markets.rb, line 11 def self.tick url = 'https://api.btcmarkets.net/market/BTC/AUD/tick' response_body = HTTP.get(url).to_s hash = JSON.parse(response_body, decimal_class: BigDecimal) hash.transform_keys { |key| key.underscore.to_sym } end