Skip to content

Instantly share code, notes, and snippets.

@cameronShadmehry
Created June 12, 2021 04:32
Show Gist options
  • Save cameronShadmehry/5780454969e8704e4e5324105e0a6ae7 to your computer and use it in GitHub Desktop.
Save cameronShadmehry/5780454969e8704e4e5324105e0a6ae7 to your computer and use it in GitHub Desktop.
# Specify the stock that you want to analyze.
stock = 'TSLA'
# Request for data from Finhub.io (30 calls per second limit: https://finnhub.io/docs/api/rate-limit).
r = requests.get('https://finnhub.io/api/v1/stock/insider-transactions?symbol='+stock+'&token=YOUR API KEY')
# Load the JSON file as a string.
test = json.loads(r.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment