Unofficial API for https://www.barchart.com/
Project description
Barchart API
Version: 0.9.0
Unofficial API for https://www.barchart.com/
API Calls:
- Top Stocks to Own
- Top ETFs to Own
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
Close
Hashes for barchart_api-0.9.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d607cb748b10059be61454300f80077994c15d05bb6e129171cdb9d1fa9f28c |
|
MD5 | 842c45a975c3e60c6d7c39f5e5551a75 |
|
BLAKE2b-256 | 0ffb6c49ec346316ac1904c69735917de3f2e4f462f9b900b72984bef2627687 |