Last active
March 14, 2020 06:27
-
-
Save PatrickAlphaC/c5369e75cfbe6434691b25bea86bc41f to your computer and use it in GitHub Desktop.
Simple IEX Cloud Startup
This file contains hidden or 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 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