stock_at_time_trade()
StandardPro
Real-time request:
- Returns a real-time session from the Nasdaq Basic feed if the account has a stocks standard or pro subscription.
- Returns a 15-minute delayed session from the UTP & CTA feeds account has the stocks value subscription subscription.
Historical request:
Returns the last trade reported by UTP & CTA feeds at a specified millisecond of the day.
Trade condition mappings can be found here.
Parameters
symbolRequired -
The stock or index symbol, or underlying symbol for options.
Type: str
start_dateRequired -
The start date (inclusive).
Type: datetime.date
end_dateRequired -
The end date (inclusive).
Type: datetime.date
time_of_dayRequired -
The time of the day to fetch data for; assumed to be America/New_York.
Type: datetime.time
venue -
Used to specify the venue of the real time or historic request. nqb = Nasdaq Basic; utp_cta = merged UTP & CTA.
Type: str (Default: nqb)
Enumnqb, utp_cta
Sample Code
py
Response
Returns the last trade for a given symbol and specified time of day
array of: