Realtime Option Trades
Last updated
Last updated
WEBSOCKET
wss://ws.optiondata.io
token
Required
aggregation_mode
AGGREGATED
or RAW
Optional field, default value is AGGREGATED
if leave blank
Determine how the option trades are aggregated by our algorithm. In AGGREGATED mode, the modified real-time feed combines option trades executed simultaneously for the same option symbol. In contrast, RAW mode keep the option trades in their original form without any modifications. For more details, more details.
symbols
SPY,TSLA,SPX or AAPL
Optional field,
leave it blank means no filtering
A list of symols in upper case seperated by comma. Using the *
wildcard or don't provide it to subscribe to all symbols.
premium
[100000,250000]//min premium is $100000, max premium is 250000
[100,null]//min premium is $100, no max limit
Optional field,
leave it blank means no filtering
The filter for minimum premium. The first value represents the minimum premium, while the second value indicates the maximum premium. If not provided, [0,null] will be the default value.
sentiment
BULLISH,BEARISH,NEUTRUAL
OR BULLISH
Optional field,
leave it blank means no filtering
The filter for sentiment includes potential values of BULLISH
, BEARISH
, and NEUTRUAL
. You can combine multiple selections by separating them with commas, such as NEUTRUAL,BEARISH
.
underlying_type
STOCK,ETF,INDEX
or STOCK
or ETF
or INDEX
Optional field,
leave it blank means no filtering
The filter for underlying_type includes potential values of INDEX
, STOCK
, and ETF
. You can combine multiple selections by separating them with commas, such as INDEX,STOCK
.
delta
[-0.9,0.98]
or [-1,0.9]
Optional field,
leave it blank means no filtering
The filter for delta has a default range of [-1, 1]
. The first value represents the minimum delta, while the second value indicates the maximum delta. The range must remain within [-1, 1]
moneyness
ITM,OTM,ATM
or ITM
Optional field,
leave it blank means no filtering
The filter for moneyness includes potential values of ITM
, ATM
, and OTM
. You can combine multiple selections by separating them with commas, such as ITM,OTM
.
expiry_days
[15,20]
// minimum expiry days is 15, maximum expiry day is 20 days
[0,null]
// // minimum expiry days is 15, no maximum expiry days
[null,30] // minimum expiry days is 0, maximum expiry day is 30 days
Optional field,
leave it blank means no filtering
The days remaining until the expiration date. The first number represents the minimum expiration days, with a default value of 0 if null
is provided. The second number is the maximum expiration days; if null
is provided, there is no limit.
is_recent_earning_only
true
Optional field,
leave it blank means no filtering
Filter for symbols with incoming earning reports(earning_date
is not null).
put_call
CALL
, or PUT
Optional field,
leave it blank means no filtering
Filter to identify whether this option trade is PUT
or CALL
side
ASK,AASK
or ASK,BID
Optional field,
leave it blank means no filtering
Identify the side on which this trade is executed on
strike
[15.5,20]
// minimum strike price is $15.5, maximum strike price is $20
[0,null]
// // minimum expiry days is $0, no maximum limit on strike price.
[null,30]
// minimum strike price is $0, maximum strike price is $30.
Optional field,
leave it blank means no filtering
Identity the range of the Strike price of the option trade. The first number represents the minimum strike price, with a default value of 0
if null
is provided. The second number is the maximum strike price. if null
is provided, there is no limit at the maximium strike price. default value is [0,null]
with minimum strike price is $0, and no limit on the maximum strike price.
oi
[155,2000]
// minimum open interest is 155, maximum open interest is 200
[0,null]
// // minimum open interest is 0, no maximum limit on open interest.
[null,300]
// minimum open interest is 0, maximum open interest is 300.
Optional field,
leave it blank means no filtering
The total number of this options contract that are still open. The first number represents the minimum OI, with a default value of 0
if null
is provided. The second number is the maximum OI. if null
is provided, there is no limit at the maximium OI. default value is [0,null]
with minimum OI is 0, and no limit on the maximum OI.
iv
[0.1,1.1]
// minimum iv is 0.1, maximum iv is 1.1
[0,null]
// // minimum iv is 0, no maximum limit.
[null,1.1]
// minimum iv is 0, maximum iv is 1.1
Optional field,
leave it blank means no filtering
Implied Volatility which reflects the market's expectations of the future volatility of the underlying asset's price. The first number represents the minimum IV, with a default value of 0
if null
is provided. The second number is the maximum IV. if null
is provided, there is no limit at the maximium IV. default value is [0,null]
with minimum IV is 0, and no limit on the maximum IV.
option_activity_type
AUTO
// single choice
AUTO,SLAN,SLAI
// multiple choices
Optional field,
leave it blank means no filtering
trade_count
[1,1]
//only block trads
[2,null]
//only aggregated trades
[2,10]
// aggregated trades that aggregates 2 to 10 trades
Optional field,
leave it blank means no filtering
Number of trades involved in the sweep or trade. Use [1,1] to filter for block trades only, and [2,null] to filter for aggregated trades.
is_opening_only
true
Optional field,
leave it blank means no filtering
Filter for trades that are opening trades, with a size greater than the sum of open interest and daily volume, minus the trade size.
test_mode
true
Optional
If test_mode
is set to true
and it is not market time, the WebSocket will stream data from three days ago until today. This feature is useful for developers who want to continue testing the WebSocket stream connection after the market closes.
id
string
unique id for this option trade record
symbol
string
Ticker Symbol (TSLA
, MSFT
, etc...)
date
string
the date the trade was executed, the date format is YYYY-MM-DD
time
string
The time the trade was created. Format is YYYY-MM-DD HH:MM:SS
put_call
string
Indicates whether this trade is PUT
or CALL
strike
float
Strike price of the option trade
expiration_date
string
The date on which the Option expires. The Option becomes invalid after this date and cannot be exercised ex: 2022-04-05
option_activity_type
string
underlying_type
string
Indicates underlying is Common Stock, ETF, ETN, etc.
oi
integer
Open Interest. The total number of this options contract that are still open.
size
integer
Total order size (either of the 1 trade for the trade of SINGLE or REPEATED, or the sum of trade sizes for a AGGREGATED trade)
price
float
Last price of a trade, or last price of last trade in a sweep.
underlying_price
float
Current stock price of the underlying asset
bid
float
Option contract best bid
bid_size
integer
Option contract bid size on exchange with best bid
ask_size
integer
Option contract bid size on exchange with best ask
ask
float
Option contract best ask
iv
float
Implied volatility (IV) is an estimate of the future volatility of the underlying stock based on options prices.
premium
float
Cost in dollar of the entire sweep or block option trade
sentiment
string
BULLISH
, BEARISH
, or NEUTRAL
The sentiment is estimated based on whether the trade was executed at the bid, ask, or spot price.
trade_count
integer
Number of trades involved in the sweep.
expiry_days
integer
The days left to expiration date.
delta
float
Delta is a measure of the change in an option's price
vega
float
Vega is a Greek that measures how sensitive an option's price is to changes in the implied volatility of the underlying stock
exchange
string
Exchange where the trade executed
daily_volume
integer
Day volume for this option contract including this trade
earning_date
string
next earning date for the underlying asset.
updated_timestamp
string
the UTC timestamp that this data record is created in our system
theta
float
measures the rate at which an option's price decreases as it approaches its expiration date, commonly referred to as "time decay."
rho
float
measures the sensitivity of an option’s price to changes in interest rates.
market_cap
Int
market capitalization, company's total market value, represented in dollars, and calculated by multiplying the current share price by the total number of outstanding shares
Feel free to reach out to us to set up an API connection:
cus_xxxxxxxxxx
(Get Your API token here: )
Get API token here:
how is the trade excuted. All relevant code can be found at
Please refer to
A: Please register at to get a 14-day free trial without a credit card required. Please reach out to us to help you set up the API connection.