Skip to content

Instantly share code, notes, and snippets.

@PatrickAlphaC
Last active March 14, 2020 06:27
Show Gist options
  • Save PatrickAlphaC/c5369e75cfbe6434691b25bea86bc41f to your computer and use it in GitHub Desktop.
Save PatrickAlphaC/c5369e75cfbe6434691b25bea86bc41f to your computer and use it in GitHub Desktop.
Simple IEX Cloud Startup
import requests
import json
token = 'XXXX'
# Get a key from https://iexcloud.io/cloud-login#/register/
ticker = 'TSLA'
url = 'https://cloud.iexapis.com/stable/stock/{}/quote?token={}'.format(ticker, token)
response = requests.get(url)
print(response.json())
# Python wrappers also available from IEX Cloud
# https://github.com/addisonlynch/iexfinance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment