Open High Low Close (v3)
ValueStandardPro
REQUIRED
The v3 Theta Terminal must be running to access data.
Provides a real-time Open, High, Low, Close for the current day.
- Returns a real-time session OHLC from the Nasdaq Basic feed if the account has a stocks standard or pro subscription.
- Returns a 15-minute delayed session OHLC from the UTP & CTA feeds if the account has the stocks value subscription.
- Returns the latest message for each symbol from the past 7 days (for example, on a Friday back to the previous Friday). Outside market hours it returns values from the most recent trading session. Symbols with no messages in the past 7 calendar days are not returned. Use
current_day_only=trueto return only today's data.
Sample URL
Paste the URL below into your browser while the Theta Terminal is running.
Returns OHLC for stocks for all symbols
http://127.0.0.1:25503/v3/stock/snapshot/ohlc?symbol=*Returns OHLC for a given stock trade from the Nasdaq Basic feed
http://127.0.0.1:25503/v3/stock/snapshot/ohlc?symbol=AAPL&venue=nqbClick to open in browser (HTML)
http://127.0.0.1:25503/v3/stock/snapshot/ohlc?symbol=AAPL&venue=nqb&format=htmlQuery Parameters
symbolRequired -
The stock or index symbol, or underlying symbol for options. Specify '*' for all symbols or a comma separated list when appropriate.
Type: array
venue -
Used to specify the venue of the real time or historic request. nqb = Nasdaq Basic; utp_cta = merged UTP & CTA.
Type: string (Default: nqb)
Enumnqb, utp_cta
min_time -
Filters snapshots to include only data with a timestamp greater or equal to the specified value (HH:mm:ss.SSS format).
Type: string
format -
The format of the data when returned to the user.
Type: string (Default: csv)
Enumcsv, json, ndjson, html
current_day_only -
Only return snapshot data from the current trading day (New York date). Applied before min_time.
Type: boolean (Default: false)
Responses
Returns OHLC for stocks for all symbols
array of:
Sample Code
py