Skip to main content

Unofficial API for https://www.barchart.com/

Project description

Barchart API

PyPI - Version PyPI - Downloads GitHub Repo stars GitHub forks GitHub contributors PyPI - License GitHub

GitHub last commit (by committer) GitHub pull requests GitHub closed pull requests GitHub issues

GitHub top language GitHub language count GitHub repo size GitHub repo file count (file type) PyPI - Wheel PyPI - Implementation

Version: 0.10.0

API for Barchart

API Calls:

  • Top Stocks to Own
  • Top ETFs to Own

This repository is actively maintained - Contributions are welcome!

Contribution Opportunities:

  • Support more endpoints!
Usage:
#!/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}")
Installation Instructions:

Install Python Package

python -m pip install barchart-api
Repository Owners:

GitHub followers GitHub User's stars

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

barchart_api-0.10.0-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file barchart_api-0.10.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for barchart_api-0.10.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 47b2c918865d535080c0e43d8de77bddf9e76964c48bab9a6aa91e2d62d555cc
MD5 5ab3235af23e5ce895229b39897df28f
BLAKE2b-256 72caf8ec65d030828741bcfdb2a112ce6a2a13ff3f58a87738db3b3a1b7ddc10

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page