Node.js API para obter as cotações da bovespa
npm install cotacoes-bovespa
var cotacoesBovespa = require('cotacoes-bovespa');
cotacoesBovespa.getCurrentQuote('PETR4', function(err, quote){
console.log(quote);
});
var cotacoesBovespa = require('cotacoes-bovespa');
cotacoesBovespa.getHistoricalData("PETR4", function (err, quotes) {
console.log(quotes);
});
Type: function
ticker
string (stock ticker symbol)
callback
function
Returns quote for ticker symbol.
Type: object
Price objects.
Type: number
Current price of stock.
Type: number
Opening price of stock.
Type: number
Highest price of stock.
Type: number
Lowest price of stock.
Type: number
Closing price of stock at last day.
Type: number
Volume of stock traded.
Type: number
Market Change percent of stock at day.
Type: string
Short name of company.
Type: string
Long name of company
MIT © Charles Almeida