https://github.com/saswatamcode/stock-python-api
This is a simple Flask RESTful API which utilizes the nsepy module to return a json with the stock data in specified time range.
https://github.com/saswatamcode/stock-python-api
Last synced: 11 months ago
JSON representation
This is a simple Flask RESTful API which utilizes the nsepy module to return a json with the stock data in specified time range.
- Host: GitHub
- URL: https://github.com/saswatamcode/stock-python-api
- Owner: saswatamcode
- Created: 2019-10-01T14:23:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:17:09.000Z (over 3 years ago)
- Last Synced: 2025-02-11T08:48:24.747Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
[](https://GitHub.com/Naereen/ama)
[](https://www.python.org/)
[](https://code.visualstudio.com/)
[](https://GitHub.com/saswatamcode/stock-python-api/network/)
[](https://GitHub.com/saswatamcode/stock-python-api/stargazers/)
[](https://GitHub.com/saswatamcode/stock-python-api/issues/)
[](https://github.com/ellerbrock/open-source-badges/)
# Stock-python-api
This is a simple Flask RESTful API which utilizes the nsepy module to return a json with the stock data in specified time range.
## To run
- Clone repo and make a virtual environment
- Type `pip install`
- Type `python3 api.py`
- Use a REST client and send a POST request to http://localhost:5000/stocks
- The body of the request should be in the form of request.json