Historical Option Trades
GET
https://api.optiondata.io/api-portal/f/list-csv-urls
Get the list of URLs for downloading the CSV files from the server, the URL links will expire in 1 hour after the request.
Query Parameters
date*
String
A specific date string used to fetch the list of downloable URLS for the CSV files generated for that date, formatted as YYYYMMDD
(e.g., 20240126).
Headers
API-KEY*
String
Your API key, an essential token for accessing our services, is available through optiondata.io. After submitting the application form, you will be emailed a trial API token valid for 14 days to explore our offerings. If you wish to test our API immediately, feel free to use test_key
as a temporary API key at no cost. Be aware that the test_key
only provides support for the date of 20240126
Sample Request
Schema for the CSV file
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
put_call
string
Indicates whether this trade is PUT
or CALL
strike_price
float
Strike price of the option trade
date_expiration
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.
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
oi
integer
The total number of this options contract that are still open.
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
Last updated