Look, there is minute data in these 2 pictures, but the times are not suitable for the Turkish stock market, only the data on Quantra’s website is correct. How can I get this data correctly?
Look, there is minute data in these 2 pictures, but the times are not suitable for the Turkish stock market, only the data on Quantra’s website is correct. How can I get this data correctly?
You need to convert the timezone to Istanbul timezone. Here is a sample code.
import yfinance as yf
# Download the data
data = yf.download("THYAO.IS", interval="1m", period="1d", multi_level_index=False) # Period of 1 day for 1-minute data
# Convert the index (DatetimeIndex) to the Turkish Stock Exchange timezone
data.index = data.index.tz_convert("Europe/Istanbul")
data.head()