# Barchart API
![PyPI - Version](https://img.shields.io/pypi/v/barchart-api)
![PyPI - Downloads](https://img.shields.io/pypi/dd/barchart-api)
![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/barchart-api)
![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/barchart-api)
![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/barchart-api)
![PyPI - License](https://img.shields.io/pypi/l/barchart-api)
![GitHub](https://img.shields.io/github/license/Knuckles-Team/barchart-api)
![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/barchart-api)
![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/barchart-api)
![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/barchart-api)
![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/barchart-api)
![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/barchart-api)
![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/barchart-api)
![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/barchart-api)
![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/barchart-api)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/barchart-api)
![PyPI - Implementation](https://img.shields.io/pypi/implementation/barchart-api)
*Version: 0.12.4*
API for [Barchart](https://www.barchart.com/)
#### API Calls:
- Top Stocks to Own
- Top ETFs to Own
This repository is actively maintained - Contributions are welcome!
Contribution Opportunities:
- Support more endpoints!
<details>
<summary><b>Usage:</b></summary>
```python
#!/usr/bin/python
# coding: utf-8
import barchart_api
barchart_client = barchart_api.Api(url="https://www.barchart.com/")
top_stocks_responses = barchart_client.get_top_stocks_top_own(max_pages=1)
top_stocks = []
for top_stocks_response in top_stocks_responses:
try:
top_stocks.append(top_stocks_response.json())
except Exception as e:
print(f"Top Stocks ERROR: {top_stocks_response}")
print(f"Top Stocks: {top_stocks}")
```
</details>
<details>
<summary><b>Installation Instructions:</b></summary>
Install Python Package
```bash
python -m pip install barchart-api
```
</details>
<details>
<summary><b>Repository Owners:</b></summary>
<img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=Knucklessg1&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" />
![GitHub followers](https://img.shields.io/github/followers/Knucklessg1)
![GitHub User's stars](https://img.shields.io/github/stars/Knucklessg1)
</details>
Raw data
{
"_id": null,
"home_page": "https://github.com/Knuckles-Team/barchart-api",
"name": "barchart-api",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Audel Rouhi",
"author_email": "knucklessg1@gmail.com",
"download_url": null,
"platform": null,
"description": "# Barchart API\n\n![PyPI - Version](https://img.shields.io/pypi/v/barchart-api)\n![PyPI - Downloads](https://img.shields.io/pypi/dd/barchart-api)\n![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/barchart-api)\n![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/barchart-api)\n![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/barchart-api)\n![PyPI - License](https://img.shields.io/pypi/l/barchart-api)\n![GitHub](https://img.shields.io/github/license/Knuckles-Team/barchart-api)\n\n![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/barchart-api)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/barchart-api)\n![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/barchart-api)\n![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/barchart-api)\n\n![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/barchart-api)\n![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/barchart-api)\n![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/barchart-api)\n![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/barchart-api)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/barchart-api)\n![PyPI - Implementation](https://img.shields.io/pypi/implementation/barchart-api)\n\n*Version: 0.12.4*\n\nAPI for [Barchart](https://www.barchart.com/)\n\n#### API Calls:\n- Top Stocks to Own\n- Top ETFs to Own\n\nThis repository is actively maintained - Contributions are welcome!\n\nContribution Opportunities:\n- Support more endpoints!\n\n\n<details>\n <summary><b>Usage:</b></summary>\n\n```python\n#!/usr/bin/python\n# coding: utf-8\nimport barchart_api\n\nbarchart_client = barchart_api.Api(url=\"https://www.barchart.com/\")\ntop_stocks_responses = barchart_client.get_top_stocks_top_own(max_pages=1)\ntop_stocks = []\nfor top_stocks_response in top_stocks_responses:\n try:\n top_stocks.append(top_stocks_response.json())\n except Exception as e:\n print(f\"Top Stocks ERROR: {top_stocks_response}\")\nprint(f\"Top Stocks: {top_stocks}\")\n```\n</details>\n\n<details>\n <summary><b>Installation Instructions:</b></summary>\n\nInstall Python Package\n\n```bash\npython -m pip install barchart-api\n```\n</details>\n\n<details>\n <summary><b>Repository Owners:</b></summary>\n\n\n<img width=\"100%\" height=\"180em\" src=\"https://github-readme-stats.vercel.app/api?username=Knucklessg1&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true\" />\n\n![GitHub followers](https://img.shields.io/github/followers/Knucklessg1)\n![GitHub User's stars](https://img.shields.io/github/stars/Knucklessg1)\n</details>\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Unofficial API for https://www.barchart.com/",
"version": "0.12.4",
"project_urls": {
"Homepage": "https://github.com/Knuckles-Team/barchart-api"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3b3fc452702d9a3b1c0a764bbde341ee966f725546e144a3e8552954ed5a89a9",
"md5": "6a5ed0640bce2357651893207fc35a4d",
"sha256": "831fe1b0013278437caf28e8cc2f739d7bef89761e45f2c3a6f12339759534b0"
},
"downloads": -1,
"filename": "barchart_api-0.12.4-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "6a5ed0640bce2357651893207fc35a4d",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 6302,
"upload_time": "2024-07-26T15:31:44",
"upload_time_iso_8601": "2024-07-26T15:31:44.164580Z",
"url": "https://files.pythonhosted.org/packages/3b/3f/c452702d9a3b1c0a764bbde341ee966f725546e144a3e8552954ed5a89a9/barchart_api-0.12.4-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-26 15:31:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Knuckles-Team",
"github_project": "barchart-api",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "requests",
"specs": [
[
">=",
"2.8.1"
]
]
},
{
"name": "urllib3",
"specs": [
[
">=",
"2.2.2"
]
]
}
],
"lcname": "barchart-api"
}