Get stock market data from Yahoo Finance
index.php | ||
README.md | ||
script.py |
Get market data from Yahoo Finance using Selenium
Requirements:
- Python 3.6 or Python 3.7
- Pip3
- Selenium Python
- Chromium driver binary
- Jupyter Notebook (optional)
Example:
- USD-IDR https://api.gabrielkheisa.xyz/stocks/usdidr/
- Dow Jones Industrial Average SPDR ETF https://api.gabrielkheisa.xyz/stocks/sp500/
- Nasaq Composite https://api.gabrielkheisa.xyz/stocks/ixic/
-
BTC-USD
https://api.gabrielkheisa.xyz/stocks/btcusd/
{ "price": "20,752.78", "price_change": "+483.29", "change": "(+2.38%)", "last_update": "(+2.38%)", "server_update": "29-10-2022 20:13:26 GMT+7" }
- ETH-USD https://api.gabrielkheisa.xyz/stocks/ethusd/
- Indeks Harga Saham Gabungan https://api.gabrielkheisa.xyz/stocks/jkse/