Skip to main content

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.12.4

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

Metadata

Release files for barchart-api 0.12.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for barchart-api 0.12.4
File Interpreter ABI Platform
barchart_api-0.12.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / barchart_api-0.12.4-py2.py3-none-any.whl

Download URL barchart_api-0.12.4-py2.py3-none-any.whl
Size 6.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
831fe1b0013278437caf28e8cc2f739d7bef89761e45f2c3a6f12339759534b0
BLAKE2b-256 checksum
How to use checksums
3b3fc452702d9a3b1c0a764bbde341ee966f725546e144a3e8552954ed5a89a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.12.4 This release

1 release file

0.12.3

1 release file

0.12.2

1 release file

0.12.1

1 release file

0.12.0

1 release file

0.11.0

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page