Created
June 12, 2021 04:32
-
-
Save cameronShadmehry/5780454969e8704e4e5324105e0a6ae7 to your computer and use it in GitHub Desktop.
This file contains 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
# 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