mirror of
https://github.com/ryanamay/sparkle.git
synced 2024-09-20 07:30:35 +00:00
Compare commits
No commits in common. "39f67b45de2fe6e49ca7cd6544f0f5b9a9d2156d" and "b3fa44b6732cc2fd2e8ac58fa61004ac54a283d7" have entirely different histories.
39f67b45de
...
b3fa44b673
1 changed files with 1 additions and 14 deletions
|
@ -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()
|
Loading…
Reference in a new issue