# Insidertrading — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access insider trading data sourced from SEC Form 4 filings, including buy and sell transactions, filing dates, insider names, share counts, and company details. Filter by ticker, insider, trade type, or date range, and retrieve ranked lists of the most actively traded stocks among corporate insiders.

**Category:** Finance & Markets | **Website:** [insidertrading.org/](https://insidertrading.org/) | **Docs:** [parse.bot/marketplace/0cd5b975-144a-4db1-af5d-1c287ad3af72/insidertrading-org-api](https://parse.bot/marketplace/0cd5b975-144a-4db1-af5d-1c287ad3af72/insidertrading-org-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-insidertrading-org-api-0cd5b975/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_insider_buying

Fetch recent insider buying (purchase) transactions. Returns the latest purchase-type filings from the OpenInsider screener. Optionally filter by ticker symbol.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ticker` | string | No | Stock ticker symbol to filter results. Omitting returns all tickers. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-insidertrading-org-api-0cd5b975/get_insider_buying \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ticker":"<string>"}'
```

### get_insider_selling

Fetch recent insider selling transactions. Returns the latest sale-type filings from the OpenInsider screener. Optionally filter by ticker symbol.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ticker` | string | No | Stock ticker symbol to filter results. Omitting returns all tickers. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-insidertrading-org-api-0cd5b975/get_insider_selling \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ticker":"<string>"}'
```

### get_insider_trading

Fetch insider trading transactions with flexible filters. Returns paginated results from the OpenInsider screener sorted by most recent filing date. Supports filtering by ticker, insider name, trade type, and filing date window. Each result includes SEC filing links, trade details, ownership changes, and price performance metrics.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `count` | integer | No | Max results per page. |
| `filing_date` | string | No | Filing date preset in days (e.g., '730' for last 2 years, '30' for last month, '7' for last week). Omitting returns all dates. |
| `insider` | string | No | Filter by insider name. |
| `page` | integer | No | Page number for pagination. |
| `ticker` | string | No | Stock ticker symbol or comma-separated list to filter results. |
| `trade_type` | string | No | Transaction type filter. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-insidertrading-org-api-0cd5b975/get_insider_trading \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"count":"<integer>","filing_date":"<string>","insider":"<string>","page":"<integer>","ticker":"<string>","trade_type":"<string>"}'
```

### get_latest_filings

Fetch the most recent SEC Form 4 filings across all insiders and companies. Returns a mix of purchases and sales sorted by filing date. Optionally filter by ticker symbol.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ticker` | string | No | Stock ticker symbol to filter results. Omitting returns all tickers. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-insidertrading-org-api-0cd5b975/get_latest_filings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ticker":"<string>"}'
```

### get_top_traded_stocks

Fetch top stocks actively traded by insiders for a given time period, ranked by transaction value. Returns the highest-value insider purchases within the specified window.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `period` | string | No | Time period for the ranking. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-insidertrading-org-api-0cd5b975/get_top_traded_stocks \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"period":"<string>"}'
```
