From e561d3906ffc41df99073921a2f0b47a601a2564 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sun, 23 Apr 2023 11:38:12 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=20=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E5=88=B01.1.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + README.md | 2 +- setup.cfg | 2 +- vnpy_ctastrategy/__init__.py | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dca562f..7ca767d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 1.1.4版本 1. 加载策略类时,过滤TargetPosTemplate模板 +2. 移除策略配置时,同时删除该策略的缓存数据 # 1.1.3版本 diff --git a/README.md b/README.md index 5af45ba..f0d1046 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@

- + diff --git a/setup.cfg b/setup.cfg index 7541e53..11b0fa2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = vnpy_ctastrategy -version = 1.1.3 +version = 1.1.4 url = https://www.vnpy.com license = MIT author = Xiaoyou Chen diff --git a/vnpy_ctastrategy/__init__.py b/vnpy_ctastrategy/__init__.py index 827f52f..f5ccb94 100644 --- a/vnpy_ctastrategy/__init__.py +++ b/vnpy_ctastrategy/__init__.py @@ -22,6 +22,7 @@ from pathlib import Path +from typing import Type import importlib_metadata from vnpy.trader.app import BaseApp @@ -47,6 +48,6 @@ class CtaStrategyApp(BaseApp): app_module: str = __module__ app_path: Path = Path(__file__).parent display_name: str = "CTA策略" - engine_class: CtaEngine = CtaEngine + engine_class: Type[CtaEngine] = CtaEngine widget_name: str = "CtaManager" icon_name: str = str(app_path.joinpath("ui", "cta.ico"))