module Bitstamper::Rest::Public::Currencies

Public Instance Methods

eur_usd_rate() click to toggle source
# File lib/bitstamper/rest/public/currencies.rb, line 6
def eur_usd_rate
  response = get("/eur_usd")
  {buy: response&.fetch("buy", nil)&.to_f, sell: response&.fetch("sell", nil)&.to_f}
end