From ca54e9313894600feac548b13da8fab335db2905 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Mon, 29 Jun 2026 01:41:26 -0700 Subject: feat: update frontend API types, client and formatters --- frontend/lib/api.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'frontend/lib/api.ts') diff --git a/frontend/lib/api.ts b/frontend/lib/api.ts index 2635af5..a584241 100644 --- a/frontend/lib/api.ts +++ b/frontend/lib/api.ts @@ -1,4 +1,4 @@ -import type { FilingsResponse, FinancialsResponse, HistoryPoint, InsidersResponse, MarketIndex, NewsResponse, RatiosResponse, SearchResult, TickerOverview, ValuationResponse, WatchlistResponse } from "@/types/api"; +import type { FilingsResponse, FinancialsResponse, HistoryPoint, InsidersResponse, MarketIndex, NewsResponse, RatiosResponse, SearchResult, TickerOverview, ValuationResponse, WaccResponse, WatchlistResponse } from "@/types/api"; const API_BASE = (process.env.NEXT_PUBLIC_API_BASE_URL || "").trim().replace(/\/$/, ""); @@ -59,6 +59,11 @@ export const api = { `/api/tickers/${encodeURIComponent(symbol)}/valuation` ); }, + wacc(symbol: string) { + return request( + `/api/tickers/${encodeURIComponent(symbol)}/wacc` + ); + }, ratios(symbol: string) { return request( `/api/tickers/${encodeURIComponent(symbol)}/ratios` -- cgit v1.3-2-g0d8e