From 13ce7b912227ea20671465d83bd6ab5eeb4fbe2b Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Sun, 14 Jun 2026 02:38:06 -0700 Subject: feat: add FilingsResponse types and api.filings() client --- 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 84df997..13c73bf 100644 --- a/frontend/lib/api.ts +++ b/frontend/lib/api.ts @@ -1,4 +1,4 @@ -import type { FinancialsResponse, HistoryPoint, InsidersResponse, MarketIndex, RatiosResponse, SearchResult, TickerOverview, ValuationResponse, WatchlistResponse } from "@/types/api"; +import type { FilingsResponse, FinancialsResponse, HistoryPoint, InsidersResponse, MarketIndex, RatiosResponse, SearchResult, TickerOverview, ValuationResponse, WatchlistResponse } from "@/types/api"; const API_BASE = (process.env.NEXT_PUBLIC_API_BASE_URL || "").trim().replace(/\/$/, ""); @@ -69,4 +69,9 @@ export const api = { `/api/tickers/${encodeURIComponent(symbol)}/insiders` ); }, + filings(symbol: string) { + return request( + `/api/tickers/${encodeURIComponent(symbol)}/filings` + ); + }, }; -- cgit v1.3-2-g0d8e