Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
get_historical_data_05.py
import requests
import pandas as pd
class AlphaVantage:
.
.
.
def daily(self):
parameters = {
"function": "TIME_SERIES_DAILY",
"symbol": self.symbol_code,
"outputsize": self.outputsize,
"datatype": "json",
"apikey": self.api_key
}
response_daily = requests.get("{0}{1}".format(self.base_url, self.default_endpoint), params=parameters, stream=True).json()
return response_daily
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.