Skip to content

Commit

Permalink
Add region to stock symbol lookup requests to narrow results to a m…
Browse files Browse the repository at this point in the history
…arket
  • Loading branch information
NeonDaniel committed Apr 9, 2024
1 parent f7aaf12 commit 5a0923e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neon_hana/schema/api_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ class WeatherAPIRequest(BaseModel):

class StockAPISymbolRequest(BaseModel):
company: Optional[str] = None
region: Optional[str] = None
model_config = {
"json_schema_extra": {
"examples": [{"company": "microsoft"}]}}
"examples": [{"company": "microsoft",
"region": "United States"}]}}


class StockAPIQuoteRequest(BaseModel):
Expand Down

0 comments on commit 5a0923e

Please sign in to comment.