1.0.7 • Published 7 months ago

barchart-dot-com v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

barchart-dot-com

ko-fi

GitHub Workflow Status Codacy Badge npm npm bundle size NPM

Fetching data from the barchart.com

Installation

Install package from NPM

npm install barchart-dot-com

Features

Fetch stock data from barchart-dot-com.com such as:

  • Financial income
  • Financial Cash Flow
  • Financial Balance Sheet
  • Overview: last price, options, analytics etc.

Usage

Use barchart-dot-com in async functionsю

Most of the financial data is available in annual and quarterly formats. In total, each data format contains 5 periods (years / months). Results sorted from closest date

Financials: income

Annual or Quarterly Income Statements.

const { financials } = require('barchart-dot-com')

const main = async () => {
  const stock = await financials.income('aapl').annual()
  console.log(stock.netIncome)
  console.log(stock.ebitda)
}

main()

Returns:

Financials: Cash Flow

The Cash Flow report is used to assess the quality of a company's income.

const { financials } = require('barchart-dot-com')

const main = async () => {
  const stock = await financials.cashFlow('aapl').quarterly()
  console.log(stock.freeCashFlow.freeFlow)
}

main()

Returns:

Financials: Balance Sheet

A Balance Sheet is a financial statement that summarizes a company's assets, liabilities and shareholders' equity.

const { financials } = require('barchart-dot-com')

const main = async () => {
  const stock = await financials.balanceSheet('aapl').annual()
  console.log(stock.assets.total)
  console.log(stock.liabilities.total)
  console.log(stock.totalLiabilitiesAndEquity)
}

main()

Returns:

Quotes: overview

The Quote Overview gives you a snapshot view for a specific symbol.

const { quotes } = require('barchart-dot-com')

const main = async () => {
  const stock = await quotes.overview('aapl')
  console.log(stock.exchange)
  console.log(stock.overview.previousPrice)
  console.log(stock.fundamentals.beta60Month)
  console.log(stock.technicals)
}

main()

Returns:

  • 'NASDAQ'
  • 120.09
  • 1.25
  • { opinion: 'Sell', power: 8 }

Disclaimer

This is not an official NPM package. Always check the received data from the corresponding page on the barchart.com.

1.0.7

7 months ago

1.0.6

11 months ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago