An open API service indexing awesome lists of open source software.

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

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'])
```

![image](https://github.com/user-attachments/assets/94a308ad-a296-47f7-a92f-1c844f63ea9e)

* [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)