11 lines
340 B
Python
11 lines
340 B
Python
from __future__ import annotations
|
|
|
|
from datetime import date
|
|
|
|
from app.services.backtesting.historical_provider import DailyClosePoint
|
|
|
|
|
|
class StaticBacktestSource:
|
|
def load_daily_closes(self, symbol: str, start_date: date, end_date: date) -> list[DailyClosePoint]:
|
|
return [DailyClosePoint(date=date(2024, 1, 3), close=123.0)]
|