remove async

This commit is contained in:
Seth Trowbridge 2026-01-17 17:17:00 -05:00
parent 08e40a87df
commit a2d29f5486

View File

@ -70,7 +70,7 @@ function parseDate(dateStr: string): number {
return Math.floor(date.getTime() / 1000);
}
async function getDateRange(): Promise<{ period1: number; period2: number }> {
function getDateRange(): { period1: number; period2: number } {
const args = Deno.args;
// If command line args provided, use them
@ -293,7 +293,7 @@ function getDateRangeLabel(): string {
async function Dump() {
// Initialize date range interactively
dateRange = await getDateRange();
dateRange = getDateRange();
args = `?period1=${dateRange.period1}&period2=${dateRange.period2}&interval=1d`;
closingEndpoint = (ticker: string) => `https://query1.finance.yahoo.com/v8/finance/chart/${ticker}${args}`;