I have python code which only read real live data such currencies:
df1 = yf.download(tickers = 'audusd' ,period ='1d', interval = '1h')
df2 = yf.download(tickers = 'usdjpy' ,period ='1d', interval = '1h')
but for gold (xauusd) and Natural Gas(xbrusd) and others does not work:
df2 = yf.download(tickers = 'xauusd' ,period ='1d', interval = '1h') does not work
df3 = yf.download(tickers = 'xbrusd' ,period ='1d', interval = '1h')
does not work
How I can read metal or energy or other from forex using yfinance library ?