Skip to content

Instantly share code, notes, and snippets.

@PatrickAlphaC
Last active January 21, 2020 17:29
Show Gist options
  • Save PatrickAlphaC/9afe1d83518d00f452470ef0fcd4f1fa to your computer and use it in GitHub Desktop.
Save PatrickAlphaC/9afe1d83518d00f452470ef0fcd4f1fa to your computer and use it in GitHub Desktop.
Simple Tiingo Startup
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