> ## Documentation Index
> Fetch the complete documentation index at: https://api.unusualwhales.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> API requests use the base URL https://api.unusualwhales.com and require a bearer token in the `Authorization` header (`Authorization: Bearer <API_KEY>`). Create and manage API tokens at https://unusualwhales.com/dashboard/api.
> For live market data inside an AI tool, use the Unusual Whales MCP server at https://unusualwhales.com/public-api/mcp.
> Instructions for agents using Unusual Whales tools: https://unusualwhales.com/skill.md

# ScreenerFlexState

> Open-interest statistics and FLEX aggregates for the ticker. Values can come from stored ticker-day data, live open-interest statistics, or live FLEX state. The message is absent when every field is unavailable.

Message
fields**11**
used by[StockScreenerState](/docs/kafka/types/StockScreenerState.md)

**Proto definition**

```protobuf schema.proto theme={null}
message ScreenerFlexState {
  optional int64 total_open_interest = 1;
  optional int64 call_open_interest = 2;
  optional int64 put_open_interest = 3;
  Decimal avg_30_day_call_oi = 4;
  Decimal avg_30_day_put_oi = 5;
  optional int64 flex_oi = 6;
  optional int64 flex_option_chains = 7;
  optional int64 new_chains = 8;
  optional int64 prev_total_oi = 9;
  optional int64 prev_call_oi = 10;
  optional int64 prev_put_oi = 11;
}
```

## Fields

The number on the right of each row is the protobuf field number.

total\_open\_interest
int64
optional
1

Total option contract open interest. This is normally call\_open\_interest plus put\_open\_interest. Absent when unavailable.

call\_open\_interest
int64
optional
2

Call option contract open interest for the represented trading date.

put\_open\_interest
int64
optional
3

Put option contract open interest for the represented trading date.

avg\_30\_day\_call\_oi
[Decimal](/docs/kafka/types/Decimal.md)
4

Arithmetic mean of non-null call open interest among up to the 30 most recent earlier stored dates. The value remains absent until the ticker's earliest stored state is at least 30 calendar days old. Eligibility does not require 30 stored observations.

avg\_30\_day\_put\_oi
[Decimal](/docs/kafka/types/Decimal.md)
5

Arithmetic mean of non-null put open interest among up to the 30 most recent earlier stored dates. The value remains absent until the ticker's earliest stored state is at least 30 calendar days old. Eligibility does not require 30 stored observations.

flex\_oi
int64
optional
6

Sum of open interest across the ticker's FLEX option contract records for the represented date.

flex\_option\_chains
int64
optional
7

Number of FLEX option contract records for the ticker and represented date.

new\_chains
int64
optional
8

Number of non-expired option symbols present on this trading date with no matching option-state row on the previous trading date. This does not prove an exchange listing event.

prev\_total\_oi
int64
optional
9

Total option open interest from the previous trading-date state.

prev\_call\_oi
int64
optional
10

Call option open interest from the previous trading-date state.

prev\_put\_oi
int64
optional
11

Put option open interest from the previous trading-date state.
