> ## 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

# FlowAlert

> An n aggregate of option transactions that tripped a rule, see https://unusualwhales.com/option-flow-alerts/rules

Message
fields**45**
topic[flow-alerts](/docs/kafka/topics/flow-alerts.md)

**Proto definition**

```protobuf schema.proto theme={null}
message FlowAlert {
  string rule_id = 1;
  string ticker = 2;
  string option_chain = 3;
  double underlying_price = 4;
  int64 volume = 5;
  int32 total_size = 6;
  double total_premium = 7;
  double total_ask_side_prem = 8;
  double total_bid_side_prem = 9;
  int64 start_time = 10;
  int64 end_time = 11;
  string url = 12;
  double price = 13;
  bool has_multileg = 14;
  bool has_sweep = 15;
  bool has_floor = 16;
  int32 open_interest = 17;
  bool all_opening_trades = 18;
  string id = 19;
  bool has_singleleg = 20;
  double volume_oi_ratio = 21;
  repeated string trade_ids = 22;
  int32 trade_count = 23;
  int32 expiry_count = 24;
  int64 executed_at = 25;
  int64 ask_vol = 26;
  int64 bid_vol = 27;
  int64 no_side_vol = 28;
  int64 mid_vol = 29;
  int64 multi_vol = 30;
  int64 stock_multi_vol = 31;
  repeated string upstream_condition_details = 32;
  repeated string exchanges = 33;
  string bid = 34;
  string ask = 35;
  string ivStart = 36;
  string ivEnd = 37;
  optional TickerInfo ticker_info = 38;
  double delta = 39;
  double gamma = 40;
  double theta = 41;
  double vega = 42;
  double rho = 43;
  double theo = 44;
  optional double iv = 45;
}
```

## Fields

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

rule\_id
string
1

UUID that represents for the rule for which the alert triggered

ticker
string
2

The underlying ticker symbol the alert is for

option\_chain
string
3

OptionSymbol in the OSI format, SPY241227C00480000

underlying\_price
double
4

The price of the underlying at the point of when the alert got created

volume
int64
5

The total market volume of the option symbol at the point of when the alert got created.

total\_size
int32
6

The total aggregated size of all transactions that make up this alert.

total\_premium
double
7

The total aggregated premium of all transactions that make up this alert.

total\_ask\_side\_prem
double
8

The total aggregated ask premium (meaning all trades that executed closer to the ask than bid) of all transactions that make up this alert.

total\_bid\_side\_prem
double
9

The total aggregated bid premium (meaning all trades that executed closer to the bid than ask) of all transactions that make up this alert.

start\_time
int64
10

The start time of the window of the alert

end\_time
int64
11

The end time of the window of the alert

url
string
12

Link to the alert on unusualwhales.com

price
double
13

the price of the contract

has\_multileg
bool
14

Boolean flag whether any transaction was part of a multi leg transaction

has\_sweep
bool
15

Boolean flag whether any transaction was a iso sweep

has\_floor
bool
16

Boolean flag whether any transaction orginiated from the trading floor

open\_interest
int32
17

The OI of the chain

all\_opening\_trades
bool
18

Boolean flag whether all trades are guranteed to be executed to be opened. Opened is defined as when for each transaction the size > OI - (vol - size) If this flag is false that means we simply do not know whether the trade was buy to open/close or sell to open/close

id
string
19

Unique UUID of the alert.

has\_singleleg
bool
20

Boolean flag whether any transaction was a single leg transaction

volume\_oi\_ratio
double
21

The ratio of the option's volume to its open interest

trade\_ids
string
repeated
22

The individual transaction ids that made up the alert as UUIDs. If you are also consuming the topic all-option-trades you can use those UUIDs to match the alert to the given single transactions and link them.

trade\_count
int32
23

Count of trades that made up this alert

expiry\_count
int32
24

Count of unique expirations

executed\_at
int64
25

Last executed timestamp of all transactions

ask\_vol
int64
26

The sum of all sizes of the transactions where they executed closer to ask

bid\_vol
int64
27

The sum of all sizes of the transactions where they executed closer to bid

no\_side\_vol
int64
28

The sum of all sizes of the transactions where they were classified as no side

mid\_vol
int64
29

The sum of all sizes of the transactions where they executed at mid

multi\_vol
int64
30

The sum of all sizes of the transactions that were part of a muti leg trade

stock\_multi\_vol
int64
31

The sum of all sizes of the transactions that were part of a stock muti leg trade

upstream\_condition\_details
string
repeated
32

All unique trade codes of the individual transactions

exchanges
string
repeated
33

All unique exchanges on which the individual transactions executed

bid
string
34

Latest bid of the chain

ask
string
35

Latest ask of the chain

ivStart
string
36

The implied volatility of the chain at the start of the alert window

ivEnd
string
37

The implied volatility of the chain at the end of the alert window

ticker\_info
[TickerInfo](/docs/kafka/types/TickerInfo.md)
optional
38

Underlying metadata supplied with this alert.

delta
double
39

Delta size weighted value based on all the trades that made up the alert.

gamma
double
40

Gamma size weighted value based on all the trades that made up the alert.

theta
double
41

Theta size weighted value based on all the trades that made up the alert.

vega
double
42

Vega size weighted value based on all the trades that made up the alert.

rho
double
43

Rho size weighted value based on all the trades that made up the alert.

theo
double
44

Theoretical price size weighted value based on all the trades that made up the alert.

iv
double
optional
45

Size weighted implied volatility of all transactions that make up the alert. Absent when unavailable.
