Historical Insider Data

Retrieve past transactions from 2010 to the present. Entries are automatically adjusted for events like stock splits, dividends, and other corporate actions, providing clean data for advanced analytics.

Retrieve Historical Insider Data for a Specific Ticker

To access historical insider trading data for a particular company, use the parameters below.

API Parameters

❚ Required: function

Needs to be set to HISTORICAL_TICKER_DATA i.e. function=HISTORICAL_TICKER_DATA for this.

❚ Required: ticker

The name of the equity of your choice. For example: ticker=CLF

❚ Optional: adjusted

By default, adjusted=true and the output of the insiders is adjusted by historical split and dividend events. Set adjusted=false to query raw (as-traded) intraday values.

❚ Optional: start_date

By default, it is set to 2020-01-01. The start date of the first transaction.

❚ Optional: end_date

By default, it is set to today. The end date of the last transaction.

❚ Required: apikey

Your API key. Claim your free API key here.

import requests

# Replace 'your_api_key' with your actual API key
url = 'https://api.example.com/ticker/stock_data'
params = {'apikey': 'your_api_key', 'symbol': 'AAPL'}

response = requests.get(url, params=params)

if response.status_code == 200:
  data = response.json()
  print(data)
else:
  print('Failed to retrieve data')

Ticker stock data

Get all the insiders for a give time span

API Parameters

❚ Required: function

The time series of your choice. In this case, function=HISTORICAL_DATES

❚ Optional: start_date

By default, it is set to 2020-01-01. The start date of the first insider transaction.

❚ Optional: end_date

By default, it is set to today. The end date of the first insider transaction.

❚ Optional: adjusted

By default, adjusted=true and the output of the insiders is adjusted by historical split and dividend events. Set adjusted=false to query raw (as-traded) intraday values.

❚ Required: apikey

Your API key. Claim your free API key here.

import requests

# Replace 'your_api_key' with your actual API key
url = 'https://api.example.com/ticker/stock_data'
params = {'apikey': 'your_api_key', 'symbol': 'AAPL'}

response = requests.get(url, params=params)

if response.status_code == 200:
  data = response.json()
  print(data)
else:
  print('Failed to retrieve data')

Real Time Event Subscription

INFO...

Ticker subscription

Ticker subscription info

Ticker subscription info

Ticker subscription info

import websocket
import json

def on_message(ws, message):
    print(f"Received data: {message}")

def on_error(ws, error):
    print(f"Error: {error}")

def on_close(ws):
    print("Disconnected from the WebSocket server")

def on_open(ws):
    print("Connected to the WebSocket server")
    subscription_message = json.dumps({
        "type": "subscribe",
        "symbol": "AAPL"
    })
    ws.send(subscription_message)

if __name__ == "__main__":
    websocket_url = "wss://api.example.com/ticker/subscribe?apikey=your_api_key"
    ws = websocket.WebSocketApp(websocket_url,
                                on_open=on_open,
                                on_message=on_message,
                                on_error=on_error,
                                on_close=on_close)
    ws.run_forever()

Day subscription

Day subscription info

Day subscription info

Day subscription info