summaryrefslogtreecommitdiff
path: root/frontend/lib
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/lib')
-rw-r--r--frontend/lib/api.ts9
-rw-r--r--frontend/lib/overview.ts2
2 files changed, 8 insertions, 3 deletions
diff --git a/frontend/lib/api.ts b/frontend/lib/api.ts
index 2c65ef2..84df997 100644
--- a/frontend/lib/api.ts
+++ b/frontend/lib/api.ts
@@ -1,4 +1,4 @@
-import type { FinancialsResponse, HistoryPoint, MarketIndex, RatiosResponse, SearchResult, TickerOverview, ValuationResponse, WatchlistResponse } from "@/types/api";
+import type { FinancialsResponse, HistoryPoint, InsidersResponse, MarketIndex, RatiosResponse, SearchResult, TickerOverview, ValuationResponse, WatchlistResponse } from "@/types/api";
const API_BASE = (process.env.NEXT_PUBLIC_API_BASE_URL || "").trim().replace(/\/$/, "");
@@ -63,5 +63,10 @@ export const api = {
return request<RatiosResponse>(
`/api/tickers/${encodeURIComponent(symbol)}/ratios`
);
- }
+ },
+ insiders(symbol: string) {
+ return request<InsidersResponse>(
+ `/api/tickers/${encodeURIComponent(symbol)}/insiders`
+ );
+ },
};
diff --git a/frontend/lib/overview.ts b/frontend/lib/overview.ts
index bb63e83..04f9c64 100644
--- a/frontend/lib/overview.ts
+++ b/frontend/lib/overview.ts
@@ -20,7 +20,7 @@ export const OVERVIEW_NAV_ITEMS: NavItem[] = [
{ key: "financials", label: "Financials", icon: "ledger" },
{ key: "valuation", label: "Valuation", icon: "dollar" },
{ key: "options", label: "Options", icon: "window" },
- { key: "insiders", label: "Insiders", icon: "pulse", disabled: true },
+{ key: "insiders", label: "Insiders", icon: "pulse" },
{ key: "filings", label: "Filings", icon: "folder", disabled: true },
{ key: "news", label: "News", icon: "terminal", disabled: true }
];