Skip to content

Instantly share code, notes, and snippets.

View njsoly's full-sized avatar
💭
Kickin' it.

Nate Solyntjes njsoly

💭
Kickin' it.
View GitHub Profile
import requests
## you will need to add an API key parameter if you call these more than a few times ##
#OHLC data
r = requests.get('https://finnhub.io/api/v1/stock/candle?symbol=AAPL&resolution=1&from=1572651390&to=1572910590')
print(r.json())
#Tick data - premium accounts only
r = requests.get('https://finnhub.io/api/v1/stock/tick?symbol=AAPL&date=2020-03-25')
/* hello */
console.log('hello, tamper monkey!');