# Insidertrading — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/insidertrading/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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.beta.paywithlocus.com/api/wrapped/credits/insidertrading/get-insider-buying \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/insidertrading/get-insider-selling \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/insidertrading/get-insider-trading \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/insidertrading/get-latest-filings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/insidertrading/get-top-traded-stocks \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"period":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.