webclinic017 / yahoofinance-api

python flask api for fetching history and intraday data from yafoo finance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yahoofinance-api

python flask api for fetching history and intraday data from yafoo finance.

API

HTTP Method URI Action
GET http://[hostname]/api/[version]/history get all history stock data (Open, High, Low, Close, Adj Close)
GET http://[hostname]/api/[version]/intraday get all history stock data (Open, High, Low, Close)

Version

v1 history data example: http://127.0.0.1:5000/api/v1/history?symbol=tsla&start_day=2020-09-14&end_day=2020-09-26&interval=1d

v1 intraday data example: http://127.0.0.1:5000/api/v1/intraday?symbol=tsla&start_day=2020-09-20&end_day=2020-09-26&interval=1m

v2 history data example: http://127.0.0.1:5000/api/v2/history?symbol=tsla&start_day=2020-09-14&end_day=2020-09-26&interval=1d

v2 intraday data example:http://127.0.0.1:5000/api/v2/intraday?symbol=tsla&start_day=2020-09-20&end_day=2020-09-26&interval=1m

About

python flask api for fetching history and intraday data from yafoo finance.

License:MIT License


Languages

Language:Python 100.0%