Hello,
I just discovered that I have no stock price data since 29 Nov 2023. Did something happen ?
Did range parameter change ?
Is it still "quotes/history-price" ?
When I test the endpoint here, i get error 404 ...
चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:
thanks for that.
why not 20y like before ?
also, the q parameter works but it load data from 2022 only…
I added a 10y parameter for the range and the “Q” parameter as well for the freq.
Yes it works.
But I have 2 more issues :
Hello, sorry about that. I have fixed the problem can you check if the endpoints are working for you?
def fetch_financial_data(endpoint, symbol, freq=“quarterly”, formstyle=“dataframe”, **additional_params):
url = f"https://macrotrends-finance.p.rapidapi.com/{endpoint}"
headers = {
‘X-RapidAPI-Key’: api_keys[0],
‘X-RapidAPI-Host’: ‘macrotrends-finance.p.rapidapi.com’
}
params = {
‘symbol’: symbol,
‘freq’: freq,
‘formstyle’: formstyle,
**additional_params
}
future = session.get(url, headers=headers, params=params)
response = future.result()
data = fetch_financial_data(‘statements/income’, ‘AAPL’, formstyle=“dataframe”, transpose=True)
if data is not None:
print(data.head())
else:
print(“Failed to fetch data.”)
Error 404: {“message”:“Endpoint ‘/statements/income’ does not exist”}
Failed to fetch data.
Upon further inspection, your API endpoints are not working anymore ! I can’t get any data since Nov 29 !