Last active
January 21, 2020 17:29
-
-
Save PatrickAlphaC/9afe1d83518d00f452470ef0fcd4f1fa to your computer and use it in GitHub Desktop.
Simple Tiingo 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 = 'XXX' | |
# Get a token from https://api.tiingo.com/ | |
ticker = "TSLA" | |
url = "https://api.tiingo.com/tiingo/daily/{}/prices?token={}".format(ticker, token) | |
response = requests.get(url) | |
print(response.json()) | |
# There are also Tiingo python wrappers | |
# Look here: https://github.com/hydrosquall/tiingo-python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment