Using the Insider Trading Data API with Python

Start by installing the SEC API Python SDK:

pip install sec-api

How to find and analyze Tesla insider trades?

The Python tutorial illustrates how to find the most recent insider trades performed by Tesla executives and directors using the Insider Trading Data API. Elon Musk's sales of Tesla shares over time is visualized and an insightful sales pattern is discovered.

Click on "Open in Colab" to run the complete Python code in a Jupyter notebook on Google Colab in your browser.