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:
12
app/newenglandoil/schemas.py
Normal file
12
app/newenglandoil/schemas.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from typing import List
|
||||
from pydantic import BaseModel
|
||||
from app.schemas import PriceRecord
|
||||
|
||||
class LatestPriceResponse(BaseModel):
|
||||
"""Latest price scrape response schema."""
|
||||
status: str
|
||||
message: str
|
||||
prices_scraped: int
|
||||
prices_stored: int
|
||||
scrape_timestamp: str
|
||||
prices: List[PriceRecord]
|
||||
Reference in New Issue
Block a user