Good morning,
I am using the Stocks Pack by Coda, I am trying to get the quote for an specific date, example, January 3rd, 2022 of the SPY symbol.
I have tried HistoricalQuotes(“SPY”,“2y”), then filter by Date, even by price value, converting the date to number to match with my date’s number (44564), but always returns an empty list.
This is what I’ve tried so far:
HistoricalQuotes(“SPY”,“2y”).Filter(Date = ToDate(“1/3/2022”)).ClosePrice
HistoricalQuotes(“SPY”,“2y”).Filter(Date.ToDate() = ToDate(“1/3/2022”)).ClosePrice
HistoricalQuotes(“SPY”,“2y”).Filter(Date.ToDate().ToNumber() = 44564).ClosePrice
All the time it does return me an empty list.
Thanks in advance.