-
-
Save vedranmarkulj/e6439abd8b7eb517be02cba0433fd5f5 to your computer and use it in GitHub Desktop.
get_historical_data_04.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import pandas as pd | |
class AlphaVantage: | |
. | |
. | |
. | |
def intraday(self): | |
parameters = { | |
"function": "TIME_SERIES_INTRADAY", | |
"symbol": self.symbol_code, | |
"interval": self.interval, | |
"outputsize": self.outputsize, | |
"datatype": "json", | |
"apikey": self.api_key | |
} | |
response_intraday = requests.get("{0}{1}".format(self.base_url, self.default_endpoint), params=parameters, stream=True).json() | |
return response_intraday |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment