You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i am new here, I tried many times to call the batch API calls in Finnhub to improve the performance of retrieving the data, but I also failed, and I can't find any documentation online. Where can I have more informations for my references?
dataframe_result = pd.DataFrame(columns= my_columns)
for symbol_strings in symbol_strings[:1]:
#Request the quote data (support batch API calls?)
batch_api_url_quote= f'https://finnhub.io/api/v1/quote?symbol=
{symbol_2}&token={CLOUD_API_TOKEN}'
quote_data= requests.get(batch_api_url_quote).json()
print(batch_api_url_quote)
#Request the profile data (support batch API calls?)
batch_api_url_quote = f'https://finnhub.io/api/v1/profile2?symbol=
{symbol_2}&token={CLOUD_API_TOKEN}'
price_data = requests.get(api_url).json()
#Combine both data dictionaries
#final_data = {**profile_data, **price_data}
#print(final_data)
Thanks
The text was updated successfully, but these errors were encountered:
Hi, i am new here, I tried many times to call the batch API calls in Finnhub to improve the performance of retrieving the data, but I also failed, and I can't find any documentation online. Where can I have more informations for my references?
dataframe_result = pd.DataFrame(columns= my_columns)
for symbol_strings in symbol_strings[:1]:
#Request the quote data (support batch API calls?)
batch_api_url_quote= f'https://finnhub.io/api/v1/quote?symbol=
{symbol_2}&token={CLOUD_API_TOKEN}'
quote_data= requests.get(batch_api_url_quote).json()
print(batch_api_url_quote)
#Request the profile data (support batch API calls?)
batch_api_url_quote = f'https://finnhub.io/api/v1/profile2?symbol=
{symbol_2}&token={CLOUD_API_TOKEN}'
price_data = requests.get(api_url).json()
#Combine both data dictionaries
#final_data = {**profile_data, **price_data}
#print(final_data)
Thanks
The text was updated successfully, but these errors were encountered: