Last updated:
0 purchases
barchartapi 0.12.4
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:
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.