Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May i know, what is the documentation for batch API calls in Finnhub? Where can i get it? #14

Open
ProgrammingTed opened this issue Jan 18, 2025 · 0 comments

Comments

@ProgrammingTed
Copy link

ProgrammingTed commented Jan 18, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant