Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pulseengine/core/price.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def fetch_price_history(
Returns None when the market simply has no data for the requested window.
Raises DataFetchError when the fetch itself fails after retries.
"""
end = dt.datetime.now(dt.timezone.utc)
end = dt.datetime.now(dt.UTC)
start = end - dt.timedelta(days=days)
last_error: Exception | None = None

Expand Down Expand Up @@ -121,7 +121,7 @@ def _fetch_via_ticker_history(ticker: str, days: int) -> pd.DataFrame | None:
for anything else.
"""
try:
end = dt.datetime.now(dt.timezone.utc)
end = dt.datetime.now(dt.UTC)
start = end - dt.timedelta(days=days)
with _yf_semaphore:
data = yf.Ticker(ticker).history(
Expand Down
Loading