Skip to content

charlesamoreira/cotacoes-bovespa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

API para obter as cotações da bovespa

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published