From 5a0923e89733d8897c0af39ad6463f3699380c9f Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Tue, 9 Apr 2024 14:34:47 -0700 Subject: [PATCH] Add `region` to stock symbol lookup requests to narrow results to a market --- neon_hana/schema/api_requests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neon_hana/schema/api_requests.py b/neon_hana/schema/api_requests.py index 3d652b8..95ea29e 100644 --- a/neon_hana/schema/api_requests.py +++ b/neon_hana/schema/api_requests.py @@ -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):