{"id":18263678,"url":"https://github.com/samgozman/barchart-dot-com","last_synced_at":"2025-10-30T03:51:46.215Z","repository":{"id":38304840,"uuid":"348274104","full_name":"samgozman/barchart-dot-com","owner":"samgozman","description":"Fetching data from the barchart.com","archived":false,"fork":false,"pushed_at":"2024-05-06T14:29:40.000Z","size":667,"stargazers_count":5,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T16:55:13.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samgozman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-16T08:47:52.000Z","updated_at":"2023-07-14T14:41:42.000Z","dependencies_parsed_at":"2024-05-06T15:55:43.309Z","dependency_job_id":"2312a383-0d55-444d-9b81-a2b54e43ce87","html_url":"https://github.com/samgozman/barchart-dot-com","commit_stats":{"total_commits":98,"total_committers":2,"mean_commits":49.0,"dds":0.3979591836734694,"last_synced_commit":"4b02216ce9582537c289126f4b99ad5302410af9"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samgozman%2Fbarchart-dot-com","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samgozman%2Fbarchart-dot-com/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samgozman%2Fbarchart-dot-com/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samgozman%2Fbarchart-dot-com/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samgozman","download_url":"https://codeload.github.com/samgozman/barchart-dot-com/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247246327,"owners_count":20907776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:12:13.024Z","updated_at":"2025-10-30T03:51:41.180Z","avatar_url":"https://github.com/samgozman.png","language":"JavaScript","funding_links":["https://ko-fi.com/C0C1DI4VL"],"categories":[],"sub_categories":[],"readme":"# barchart-dot-com\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/C0C1DI4VL)\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/samgozman/barchart-dot-com/barchart-dot-com%20Node.js)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/fb9a28f06d204b008206eab9ff169c3b)](https://www.codacy.com/gh/samgozman/barchart-dot-com/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=samgozman/barchart-dot-com\u0026amp;utm_campaign=Badge_Grade)\n[![npm](https://img.shields.io/npm/v/barchart-dot-com)](https://www.npmjs.com/package/barchart-dot-com)\n![npm bundle size](https://img.shields.io/bundlephobia/min/barchart-dot-com)\n![NPM](https://img.shields.io/npm/l/barchart-dot-com)\n\nFetching data from the barchart.com\n\n## Installation\n\nInstall package from NPM\n\n```bash\nnpm install barchart-dot-com\n```\n\n## Features\n\nFetch stock data from barchart-dot-com.com such as:\n\n* Financial income\n* Financial Cash Flow\n* Financial Balance Sheet\n* Overview: last price, options, analytics etc.\n\n## Usage\n\nUse **barchart-dot-com** in async functionsю\n\nMost of the financial data is available in annual and quarterly formats. In total, each data format contains 5 periods (years / months).\nResults sorted from closest date\n\n### Financials: income\n\nAnnual or Quarterly Income Statements.\n\n```javascript\nconst { financials } = require('barchart-dot-com')\n\nconst main = async () =\u003e {\n  const stock = await financials.income('aapl').annual()\n  console.log(stock.netIncome)\n  console.log(stock.ebitda)\n}\n\nmain()\n```\n\n*Returns:*\n\n* [ 57411000000, 55256000000, 59531000000, 48351000000, 45687000000 ]\n* [ 77344000000, 76477000000, 81801000000, 71501000000, 70529000000 ]\n\n### Financials: Cash Flow\n\nThe Cash Flow report is used to assess the quality of a company's income.\n\n```javascript\nconst { financials } = require('barchart-dot-com')\n\nconst main = async () =\u003e {\n  const stock = await financials.cashFlow('aapl').quarterly()\n  console.log(stock.freeCashFlow.freeFlow)\n}\n\nmain()\n```\n\n*Returns:*\n\n* [ 35263000000, 73365000000, 54573000000, 39867000000, 28409000000 ]\n\n### Financials: Balance Sheet\n\nA Balance Sheet is a financial statement that summarizes a company's assets, liabilities and shareholders' equity.\n\n```javascript\nconst { financials } = require('barchart-dot-com')\n\nconst main = async () =\u003e {\n  const stock = await financials.balanceSheet('aapl').annual()\n  console.log(stock.assets.total)\n  console.log(stock.liabilities.total)\n  console.log(stock.totalLiabilitiesAndEquity)\n}\n\nmain()\n```\n\n*Returns:*\n\n* [ 323888000000, 338516000000, 365725000000, 375319000000, 321686000000 ]\n* [ 258549000000, 248028000000, 258578000000, 241272000000, 193437000000 ]\n* [ 323888000000, 338516000000, 365725000000, 375319000000, 321686000000 ]\n\n### Quotes: overview\n\nThe Quote Overview gives you a snapshot view for a specific symbol.\n\n```javascript\nconst { quotes } = require('barchart-dot-com')\n\nconst main = async () =\u003e {\n  const stock = await quotes.overview('aapl')\n  console.log(stock.exchange)\n  console.log(stock.overview.previousPrice)\n  console.log(stock.fundamentals.beta60Month)\n  console.log(stock.technicals)\n}\n\nmain()\n```\n\n*Returns:*\n\n* 'NASDAQ'\n* 120.09\n* 1.25\n* { opinion: 'Sell', power: 8 }\n\n## Disclaimer\n\nThis is not an official NPM package. Always check the received data from the corresponding page on the barchart.com.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamgozman%2Fbarchart-dot-com","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamgozman%2Fbarchart-dot-com","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamgozman%2Fbarchart-dot-com/lists"}