summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-06-14 02:34:39 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-06-14 02:34:39 -0700
commit52c431e104b043cc0b7ac6f519ce227d12f2bb70 (patch)
tree7d5cb764ab568a34f57e2c80dd8138f43f3dfcba /backend
parent4571fc6a82f4190896bc7fe952cb747bba4aa8a1 (diff)
feat: add GET /api/tickers/{symbol}/filings route
Diffstat (limited to 'backend')
-rw-r--r--backend/app/main.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/backend/app/main.py b/backend/app/main.py
index 386a695..71ddd7a 100644
--- a/backend/app/main.py
+++ b/backend/app/main.py
@@ -9,7 +9,7 @@ from fastapi import FastAPI, HTTPException, Query, status
from fastapi.middleware.cors import CORSMiddleware
from app.db import watchlist
-from app.schemas import FinancialsResponse, HistoryPoint, InsidersResponse, MarketIndex, RatiosResponse, SearchResult, TickerOverview, ValuationResponse, WatchlistResponse
+from app.schemas import FilingsResponse, FinancialsResponse, HistoryPoint, InsidersResponse, MarketIndex, RatiosResponse, SearchResult, TickerOverview, ValuationResponse, WatchlistResponse
from app.services import data_service
load_dotenv()
@@ -85,6 +85,11 @@ def ticker_insiders(symbol: str) -> dict:
return data_service.get_insider_transactions(symbol)
+@app.get("/api/tickers/{symbol}/filings", response_model=FilingsResponse)
+def ticker_filings(symbol: str) -> dict:
+ return data_service.get_sec_filings(symbol)
+
+
@app.get("/api/watchlist", response_model=WatchlistResponse)
def get_watchlist() -> dict:
items = []