lib/utils.rb in SimBot-0.1.41 vs lib/utils.rb in SimBot-0.1.42
- old
+ new
@@ -40,10 +40,10 @@
end
# fetch btc/usd price from coin market cap
# @return [float] rate
def self.tusdzar_price
- response = Faraday.get('https://www.freeforexapi.com/api/live?pairs=USDZAR')
+ response = RestClient.get('https://www.freeforexapi.com/api/live?pairs=USDZAR')
hash = JSON.parse(response.body)
hash['rates']['USDZAR']['rate'].to_f.round(2)
end