Unofficial API for https://www.barchart.com/
Project description
Barchart API
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:
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file barchart_api-0.12.4-py2.py3-none-any.whl
.
File metadata
- Download URL: barchart_api-0.12.4-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 831fe1b0013278437caf28e8cc2f739d7bef89761e45f2c3a6f12339759534b0 |
|
MD5 | 6a5ed0640bce2357651893207fc35a4d |
|
BLAKE2b-256 | 3b3fc452702d9a3b1c0a764bbde341ee966f725546e144a3e8552954ed5a89a9 |