Trade (v3)
StandardPro
REQUIRED
The v3 Theta Terminal must be running to access data.
- Returns the last trade reported by OPRA at a specified millisecond of the day.
- Trade condition mappings can be found here.
- Extended trade conditions are not reported by OPRA for options, so they can be ignored.
- The
time_of_day
parameter represents the 00:00:00.000 ET that the trade should be provided for.
Sample URL
Paste the URL below into your browser while the Theta Terminal is running.
Returns the last trade for an option contract
http://localhost:25503/v3/option/at_time/trade?symbol=AAPL&expiration=20241108&strike=220.000&right=call&start_date=20241104&end_date=20241104&time_of_day=09:30:01.000Query Parameters
symbolRequired -
The stock or index symbol, or underlying symbol for options.
Type: string
start_dateRequired -
The start date (inclusive).
Type: string
end_dateRequired -
The end date (inclusive).
Type: string
time_of_dayRequired -
The time of the day to fetch data for; assumed to be America/New_York.
Type: string
expirationRequired -
The expiration of the contract in YYYY-MM-DD
or YYYYMMDD
format, or *
for all expirations.
Type: string
strike -
The strike price of the contract in dollars (ie 100.00
for $100.00
), or *
for all strikes.
Type: string (Default: *)
right -
The right (call or put) of the contract.
Type: string (Default: both)
Enumcall, put, both
format -
The format of the data when returned to the user.
Type: string (Default: csv)
Enumcsv, json, ndjson
Sample Code
py