diff --git a/app/api/v1/routes/stock.py b/app/api/v1/routes/stock.py index 8729c24..6073382 100644 --- a/app/api/v1/routes/stock.py +++ b/app/api/v1/routes/stock.py @@ -33,3 +33,16 @@ async def quote(symbol: str): response = requests.get("https://finnhub.io/api/v1/quote", params=params) return response.json() + +@router.get("/profile") +async def profile(symbol: str): + """ + API to get company profile. + """ + params = { + "token": settings.FINNHUB_API_KEY, + "symbol": symbol + } + + response = requests.get("https://finnhub.io/api/v1/stock/profile2", params=params) + return response.json()