# Contracts with significant OI changes

`GET https://flow-api.skylit.ai/v1/contract/unusual-oi`

API: Flowseeker. Credits: 3.

Contracts whose open interest changed by at least
`min_oi_change` (or `min_oi_change_pct`) on the target date. `direction`
narrows the result to opening (OI ↑) or closing (OI ↓) flow.

## Authentication

Send your Skylit API key as a bearer token: `Authorization: Bearer <key>`. No other header is accepted.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | Maximum rows to return. (default `50`; min 1; max 200) |
| `min_oi_change` | query | integer | no |  (default `500`) |
| `min_oi_change_pct` | query | number (double) | no |  (default `25`) |
| `ticker` | query | string | no |  |
| `right` | query | string | no |  (one of `C`, `P`) |
| `min_dte` | query | integer | no |  |
| `max_dte` | query | integer | no |  |
| `min_premium` | query | number (double) | no |  |
| `min_volume` | query | integer | no |  (min 0) |
| `date` | query | string (date) | no | Target trading date (`YYYY-MM-DD`). Defaults to the **previous calendar day** (not the current trading date). |
| `order_by` | query | string | no |  (one of `oi_change`, `oi_change_pct`, `volume`, `premium`; default `oi_change`) |
| `direction` | query | string | no |  (one of `opening`, `closing`, `both`; default `both`) |
| `only_sweeps` | query | boolean | no |  |
| `only_multi_leg` | query | boolean | no |  |
| `exclude_multi_leg` | query | boolean | no |  |

## Example request

```bash
curl "https://flow-api.skylit.ai/v1/contract/unusual-oi" \
  -H "Authorization: Bearer $SKYLIT_API_KEY"
```

## Responses

### 200

Contracts ranked by OI change.

Shape (placeholder values):

```json
{
  "data": [
    {
      "symbol": "string",
      "ticker": "string",
      "expiration": "string",
      "strike": 0,
      "right": "C",
      "dte": 0,
      "date": "string",
      "openInterest": 0,
      "prevOi": 0,
      "oiChange": 0,
      "oiChangePct": 0,
      "volume": 0,
      "premium": 0,
      "volumeOiRatio": 0,
      "bidVolume": 0,
      "askVolume": 0,
      "lastPrice": 0,
      "underlyingPrice": 0,
      "iv": 0,
      "positionType": "opening",
      "sweepVolume": 0,
      "sweepPremium": 0,
      "multiLegVolume": 0,
      "multiLegPremium": 0
    }
  ],
  "meta": {
    "timestamp": "string",
    "requestId": "d7574836"
  }
}
```

### 400

Request validation failed.

invalidParam:

```json
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "Invalid parameter 'timeframe': must be one of [1m, 5m, 15m, 1h, 4h, 1d, 1w, 1M]"
  }
}
```

### 401

Missing or invalid API key.

missingKey:

```json
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Authentication required"
  }
}
```

### 402

The account's shared Skylit credit balance is lower than this route's cost. Top up to continue. Carries `X-Credits-Remaining: 0`.

Headers: `X-Credits-Remaining`.

outOfCredits:

```json
{
  "error": {
    "code": "insufficient_credits",
    "message": "Out of credits. Top up to continue making requests."
  }
}
```

### 429

Per-minute rate limit exceeded.

Headers: `Retry-After`.

tooFast:

```json
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Rate limit of 100 req/min exceeded. Retry after 18s."
  }
}
```
