module IEX::Endpoints::Crypto
Public Instance Methods
crypto(symbol, options = {})
click to toggle source
# File lib/iex/endpoints/crypto.rb, line 4 def crypto(symbol, options = {}) IEX::Resources::Crypto.new(get("crypto/#{symbol}/quote", { token: publishable_token }.merge(options))) rescue Faraday::ResourceNotFound => e raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body]) end