Compare commits

..

No commits in common. "39f67b45de2fe6e49ca7cd6544f0f5b9a9d2156d" and "b3fa44b6732cc2fd2e8ac58fa61004ac54a283d7" have entirely different histories.

View file

@ -19,17 +19,4 @@ async def lookup(query: str, exchange: str | None = None):
params["exchange"] = exchange
response = requests.get("https://finnhub.io/api/v1/search", params=params)
return response.json()
@router.get("/quote")
async def quote(symbol: str):
"""
API to get a stock quote.
"""
params = {
"token": settings.FINNHUB_API_KEY,
"symbol": symbol
}
response = requests.get("https://finnhub.io/api/v1/quote", params=params)
return response.json()
return response.json()