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/
{
"price": "15,645.0000",
"price_change": "0.0000",
"change": "(0.0000%)",
"last_update": "As of 09:05PM GMT. Market open.",
"server_update": "03-11-2022 08:46:35 GMT+7",
"symbol": "#ff0000",
"color": "🔴"
}
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/
ETH-USD
https://api.gabrielkheisa.xyz/stocks/ethusd/
Indeks Harga Saham Gabungan
https://api.gabrielkheisa.xyz/stocks/jkse/