Reputation: 869
GOLD 1 OZ (XAUUSD=X)
this is Yahoo Finance Gold ticket.
But
import pandas_datareader as pdr
import datetime
from ta import *
gspc = pdr.get_data_yahoo('XAUUSD', #or 'XAUUSD=X'
start=datetime.datetime(1980, 1, 3),
end=datetime.datetime(2019, 5, 15),
interval='m')
give me error
RemoteDataError: No data fetched for symbol XAUUSD using YahooDailyReader
What ticket need? Where can i find the right one gold ticket?
Upvotes: 2
Views: 2151
Reputation: 57
I face the same problem:
1 Failed download: ['XAUUSD=X']: YFTzMissingError('$%ticker%: possibly delisted; no timezone found')
But when I try with AAPL it works!
Upvotes: 0
Reputation: 1
import yfinance as yf
import pandas_ta as ta
XAU= yf.Ticker("^XAU")
# Download the stock price data from Yahoo Finance API
data = XAU.history(start="2023-10-19", end="2023-11-19", interval="5m")
print(data)
Upvotes: 0