Class: Bovesparb::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/bovesparb/client.rb

Constant Summary collapse

API_ENDPOINT =
"http://bvmf.bmfbovespa.com.br".freeze
DICTIONARY =
{
  Codigo: :ticket,
  Nome: :name,
  Data: :date,
  Abertura: :open,
  Minimo: :low,
  Maximo: :high,
  Medio: :average,
  Ultimo: :close,
  Oscilacao: :variation,
}

Instance Method Summary collapse

Instance Method Details

#quotes(stocks) ⇒ Object



16
17
18
19
# File 'lib/bovesparb/client.rb', line 16

def quotes(stocks)
  response = request(params: { strListaCodigos: stocks })
  parser(response)
end