cotacoes-bovespa
Node.js API para obter as cotações da bovespa
install
npm install cotacoes-bovespa
example
var cotacoesBovespa = ; cotacoesBovespa;
example historical data
var cotacoesBovespa = ; cotacoesBovespa;
api
getCurrentQuote(ticker, callback)
Type: function
ticker
string (stock ticker symbol)
callback
function
Returns quote for ticker symbol.
quote
Type: object
Price objects.
quote.price
Type: number
Current price of stock.
quote.open
Type: number
Opening price of stock.
quote.high
Type: number
Highest price of stock.
quote.low
Type: number
Lowest price of stock.
quote.previousClose
Type: number
Closing price of stock at last day.
quote.volume
Type: number
Volume of stock traded.
quote.marketChange
Type: number
Market Change percent of stock at day.
quote.shortName
Type: string
Short name of company.
quote.longName
Type: string
Long name of company
license
MIT © Charles Almeida