From 5eeccd48c0b617d36047c5043f58853a10ee9d56 Mon Sep 17 00:00:00 2001 From: aaron yang Date: Sat, 20 Apr 2024 16:31:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=83=20docs:=20error=20in=20doc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage.md b/docs/usage.md index 712e458..32e45a3 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -372,7 +372,7 @@ start = datetime.date(2022, 1, 4) end = datetime.date(2023, 1,1) sma = SMAStrategy(sec, url=cfg.backtest.url, is_backtest=True, start=start, end=end, frame_type=FrameType.DAY, warmup_period=10) -await sma.backtest(portfolio=[sec], stop_on_error=False) +await sma.backtest(prefetch_stocks=[sec], stop_on_error=False) await sma.plot_metrics(sma.indicators) ```