Skip to content

Commit

Permalink
[Mod] 更新版本号到1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Sep 25, 2021
1 parent 02f85f4 commit 0301dce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>

<p align="center">
<img src ="https://img.shields.io/badge/version-1.0.3-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/version-1.0.4-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg"/>
<img src ="https://img.shields.io/badge/python-3.7-blue.svg" />
<img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
Expand All @@ -17,7 +17,7 @@

## 安装

安装需要基于2.4.0版本以上的[VN Studio](https://www.vnpy.com)
安装需要基于2.6.0版本以上的[VN Studio](https://www.vnpy.com)

直接使用pip命令:

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = vnpy_ctastrategy
version = 1.0.3
version = 1.0.4
url = https://www.vnpy.com
license = MIT
author = Xiaoyou Chen
Expand Down
7 changes: 7 additions & 0 deletions vnpy_ctastrategy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

from pathlib import Path

import importlib_metadata
from vnpy.trader.app import BaseApp
from vnpy.trader.constant import Direction
from vnpy.trader.object import TickData, BarData, TradeData, OrderData
Expand All @@ -33,6 +34,12 @@
from .template import CtaTemplate, CtaSignal, TargetPosTemplate


try:
__version__ = importlib_metadata.version("vnpy_ctastrategy")
except importlib_metadata.PackageNotFoundError:
__version__ = "dev"


class CtaStrategyApp(BaseApp):
""""""

Expand Down

0 comments on commit 0301dce

Please sign in to comment.