https://github.com/thevickypedia/stock_hawk
https://github.com/thevickypedia/stock_hawk
css html investment-portfolio robinhood-api ssm stock-hawk
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thevickypedia/stock_hawk
- Owner: thevickypedia
- License: mit
- Created: 2020-06-06T04:14:01.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T00:17:26.000Z (about 2 years ago)
- Last Synced: 2025-02-12T22:22:21.010Z (4 months ago)
- Topics: css, html, investment-portfolio, robinhood-api, ssm, stock-hawk
- Language: Python
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stock Hawk:
This is the AWS version of [robinhood_monitor](https://github.com/thevickypedia/robinhood_monitor)This repo contains scripts that run on lambda connecting to SSM.
Refer [Wiki](https://github.com/thevickypedia/stock_hawk/wiki) for setup information.
The following needs to be added before `GET FUNDAMENTALS` in `pyrh/robinhood.py` to get the watchlist feature working.
Refer https://github.com/robinhood-unofficial/pyrh/pull/274
```python
###########################################################################
# GET WATCHLIST
###########################################################################def get_watchlists(self):
"""Fetch watchlists endpoint and queries for
each instrumented result aka stock details returned from the watchlist
Returns:
(:obj:`dict`): values returned from `watchlists` and `instrument` endpoints
"""
api_url = "https://api.robinhood.com"
url = api_url + "/watchlists/"
res = []
watchlist = self.get_url(url)
if watchlist and 'results' in watchlist:
data = self.get_url(watchlist["results"][0]["url"])
for rec in data["results"]:
res.append(self.get_url(rec['instrument']))return res
```## License & copyright
© Vignesh Sivanandha Rao, Stock Hawk
Licensed under the [MIT License](LICENSE)