Noncommital Premarital Mischief
Miss any of our Open RFC calls?Watch the recordings here! »

cotacoes-bovespa

1.0.3 • Public • Published

cotacoes-bovespa

Node.js API para obter as cotações da bovespa

https://nodei.co/npm/cotacoes-bovespa.png?downloads=true&downloadRank=true&stars=true

contributions welcome

install

npm install cotacoes-bovespa

example

var cotacoesBovespa = require('cotacoes-bovespa');
 
 
cotacoesBovespa.getCurrentQuote('PETR4', function(err, quote){
 
    console.log(quote);
 
});

example historical data

var cotacoesBovespa = require('cotacoes-bovespa');
 
 
cotacoesBovespa.getHistoricalData("PETR4", function (err, quotes) {
 
    console.log(quotes);
 
});

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

Install

npm i cotacoes-bovespa

DownloadsWeekly Downloads

50

Version

1.0.3

License

MIT

Unpacked Size

6.81 kB

Total Files

5

Last publish

Collaborators

  • avatar