Skip to content

Commit

Permalink
[Mod] 更新说明文档
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Oct 21, 2021
1 parent 75e9c69 commit 644c264
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 56 deletions.
33 changes: 1 addition & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## 说明

提供多种常用的智能交易算法:TWAP、Sniper、Iceberg、BestLimit等
AlgoTrading是用于算法交易执行的功能模块,提供多种常用的智能交易算法:TWAP、Sniper、Iceberg、BestLimit等,支持通过UI界面、CSV批量导入、外部模块访问等多种调用方式。

## 安装

Expand All @@ -30,34 +30,3 @@ pip install vnpy_algotrading
```
python setup.py install
```

## 使用

以脚本方式启动(script/run.py):

```
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
from vnpy_algotrading import AlgoTradingApp
def main():
"""主入口函数"""
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_app(AlgoTradingApp)
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
qapp.exec()
if __name__ == "__main__":
main()
```
23 changes: 0 additions & 23 deletions script/run.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ url = https://www.vnpy.com
license = MIT
author = Xiaoyou Chen
author_email = xiaoyou.chen@mail.vnpy.com
description = algorithm trading application for vn.py quant trading framework.
description = Algorithm trading application for vn.py quant trading framework.
long_description = file: README.md
long_description_content_type = text/markdown
keywords =
Expand Down

0 comments on commit 644c264

Please sign in to comment.