feat: initial commit for oil price scraper service
FastAPI-based scraper for commodity ticker prices (HO, CL, RB futures) and competitor oil pricing from NewEnglandOil. Includes cron-driven scraping, PostgreSQL storage, and REST endpoints for price retrieval. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
16
app/schemas.py
Normal file
16
app/schemas.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from typing import Optional
|
||||
from pydantic import BaseModel
|
||||
|
||||
class HealthResponse(BaseModel):
|
||||
"""Health check response schema."""
|
||||
status: str
|
||||
db_connected: bool
|
||||
|
||||
|
||||
class PriceRecord(BaseModel):
|
||||
"""Single price record schema."""
|
||||
company_name: str
|
||||
town: Optional[str] = None
|
||||
price_decimal: float
|
||||
scrape_date: str
|
||||
zone: str
|
||||
Reference in New Issue
Block a user