Skip to content

Instantly share code, notes, and snippets.

@PatrickAlphaC
Last active January 21, 2020 17:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatrickAlphaC/dcc8a981c6d9a4e1d474ec27b52a125f to your computer and use it in GitHub Desktop.
Save PatrickAlphaC/dcc8a981c6d9a4e1d474ec27b52a125f to your computer and use it in GitHub Desktop.
Simple Alpha Vantage Startup
import requests
import json
key = 'XXX'
# Get a key from https://www.alphavantage.co/support/#api-key
ticker = 'TSLA'
url = 'https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol={}&apikey={}'.format(ticker, key)
response = requests.get(url)
print(response.json())
# Python wrappers also available to make it easier
# https://github.com/RomelTorres/alpha_vantage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment