Module: IEX::Api::KeyStats

Defined in:
lib/iex/api/key_stats.rb

Class Method Summary collapse

Class Method Details

.connection(symbol) ⇒ Object



8
9
10
# File 'lib/iex/api/key_stats.rb', line 8

def self.connection(symbol)
  IEX::Api.default_connection "#{symbol}/stats"
end

.get(symbol) ⇒ Object



4
5
6
# File 'lib/iex/api/key_stats.rb', line 4

def self.get(symbol)
  connection(symbol).get.body
end