Skip to content

Commit

Permalink
use close instead of adjclose for pricing
Browse files Browse the repository at this point in the history
  • Loading branch information
mnsrulz committed Sep 19, 2024
1 parent 7198cce commit 4032d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/symbols/[symbol]/historical/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const getPriceAtDate = async (symbol: string, dt: string) => {
period1: dayjs().add(-1, 'day').toDate(),
period2: new Date()
});
return resp.at(0)?.adjClose?.toFixed(2);
return resp.at(0)?.close?.toFixed(2);
}
}

Expand Down

0 comments on commit 4032d0c

Please sign in to comment.