stocks/README.md
gabrielkheisa 5d4ce5a41c first
2022-10-29 20:46:20 +07:00

52 lines
908 B
Markdown

<h1>Get market data from Yahoo Finance using Selenium</h1>
<h2>Requirements:</h2>
<ul>
<li>Python 3.6 or Python 3.7</li>
<li>Pip3</li>
<li>Selenium Python</li>
<li>Chromium driver binary</li>
<li>Jupyter Notebook (optional)</li>
</ul>
<h2>Example:</h2>
<ul>
<li>
USD-IDR
https://api.gabrielkheisa.xyz/stocks/usdidr/
</li>
<li>
Dow Jones Industrial Average SPDR ETF
https://api.gabrielkheisa.xyz/stocks/sp500/
</li>
<li>
Nasaq Composite
https://api.gabrielkheisa.xyz/stocks/ixic/
</li>
<li>
BTC-USD
https://api.gabrielkheisa.xyz/stocks/btcusd/
<pre>
{
"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"
}
</pre>
</li>
<li>
ETH-USD
https://api.gabrielkheisa.xyz/stocks/ethusd/
</li>
<li>
Indeks Harga Saham Gabungan
https://api.gabrielkheisa.xyz/stocks/jkse/
</li>
</ul>