From fdaef36d7ede89e6711ae65948b7c85d23c8f716 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Mon, 18 May 2026 01:33:41 -0700 Subject: feat: add ValuationResponse types and api.valuation() method --- frontend/lib/api.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'frontend/lib') diff --git a/frontend/lib/api.ts b/frontend/lib/api.ts index 05af5ae..53b3dd3 100644 --- a/frontend/lib/api.ts +++ b/frontend/lib/api.ts @@ -1,4 +1,4 @@ -import type { FinancialsResponse, HistoryPoint, MarketIndex, SearchResult, TickerOverview, WatchlistResponse } from "@/types/api"; +import type { FinancialsResponse, HistoryPoint, MarketIndex, SearchResult, TickerOverview, ValuationResponse, WatchlistResponse } from "@/types/api"; const API_BASE = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000"; @@ -53,5 +53,10 @@ export const api = { return request( `/api/tickers/${encodeURIComponent(symbol)}/financials?period=${encodeURIComponent(period)}` ); + }, + valuation(symbol: string) { + return request( + `/api/tickers/${encodeURIComponent(symbol)}/valuation` + ); } }; -- cgit v1.3-2-g0d8e