Fetching live data from Yahoo Finance

Hello there:



I am currently enrolled in the course "Getting market data: Stock, crypto, news & fundamental"…  and I was wondering if maybe there is an API that allows me to fetch real time data from yahoo finance using python…  is that possible??  



 

Hey Ghery,



The yf.download() method of the yfinance library allows you to fetch real-time data, however, this comes with a time lag. For more accurate and faster results you can ask your broker if they provide this data.



Thanks,

Rushda Ansari