Skip to content

Instantly share code, notes, and snippets.

@vedranmarkulj
Last active February 21, 2018 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vedranmarkulj/eba3ec3078a1ba016cdf71bf95457367 to your computer and use it in GitHub Desktop.
Save vedranmarkulj/eba3ec3078a1ba016cdf71bf95457367 to your computer and use it in GitHub Desktop.
get_historical_data_03.py
import requests
import pandas as pd
class AlphaVantage:
def __init__(self, symbol_code, interval="60min", outputsize="compact"):
self.base_url = "https://www.alphavantage.co"
self.default_endpoint = "/query"
self.api_key = "<enter your API Key here>"
self.symbol_code = symbol_code
self.interval = interval
self.outputsize = outputsize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment