https://github.com/eniompw/stockapi
Python Stock API
https://github.com/eniompw/stockapi
api finance stock-data stock-prices
Last synced: 9 months ago
JSON representation
Python Stock API
- Host: GitHub
- URL: https://github.com/eniompw/stockapi
- Owner: eniompw
- License: mit
- Created: 2022-09-21T08:21:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-04T16:58:27.000Z (over 1 year ago)
- Last Synced: 2025-03-27T04:43:45.660Z (about 1 year ago)
- Topics: api, finance, stock-data, stock-prices
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Stock API
* [Finnhub example.py](https://github.com/eniompw/stockAPI/blob/main/finnhub-example.py)
``` Python
import requests
r = requests.get("https://finnhub.io/api/v1/quote?symbol=AAPL&token=")
dict = r.json()
print(dict['c'])
```

* [CS50 Yahoo Finance example](https://github.com/eniompw/StockAPI/blob/main/cs50-lookup.py)
### Ref:
* [requests](https://www.w3schools.com/python/ref_requests_response.asp)
* [finnhub.io quote](https://finnhub.io/docs/api/quote)
* [CS50 Finance lookup](https://cdn.cs50.net/2022/fall/psets/9/finance/helpers.py?highlight)