Hey! I’ve been using yfinance python real time quotes and percentage change for a while, and yeah, the delay is a thing. It’s not ideal for super active trading, but for casual use, it’s fine.
Here’s how I calculate percentage change:
```python
import yfinance as yf
stock = yf.Ticker("GOOGL")
data = stock.history(period="1d", interval="1m")
data['Pct_Change'] = data['Close'].pct_change() * 100
print(data[['Close', 'Pct_Change']])
```
If you’re serious about real-time data, maybe look into Interactive Brokers. They’ve got a solid API for live quotes.
Here’s how I calculate percentage change:
```python
import yfinance as yf
stock = yf.Ticker("GOOGL")
data = stock.history(period="1d", interval="1m")
data['Pct_Change'] = data['Close'].pct_change() * 100
print(data[['Close', 'Pct_Change']])
```
If you’re serious about real-time data, maybe look into Interactive Brokers. They’ve got a solid API for live quotes.
