Skip to content

Commit

Permalink
剥离vnpy_paperaccount模块
Browse files Browse the repository at this point in the history
剥离vnpy_paperaccount模块
  • Loading branch information
youyuanrsq committed Nov 2, 2021
1 parent c3e34f3 commit 8ddf2d5
Show file tree
Hide file tree
Showing 8 changed files with 639 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
exclude = build,__pycache__,__init__.py
ignore =
E501 line too long, fixed by black
W503 line break before binary operator
37 changes: 37 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[metadata]
name = vnpy_paperaccount
version = 1.0.0
url = https://www.vnpy.com
license = MIT
author = Xiaoyou Chen
author_email = [email protected]
description = paper account application for vn.py quant trading framework.
long_description = file: README.md
long_description_content_type = text/markdown
keywords =
quant
quantitative
investment
trading
algotrading
classifiers =
Development Status :: 5 - Production/Stable
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Office/Business :: Financial :: Investment
Programming Language :: Python :: Implementation :: CPython
License :: OSI Approved :: MIT License
Natural Language :: Chinese (Simplified)

[options]
packages = find:
zip_safe = False
install_requires =
importlib_metadata

[options.package_data]
* = *.ico
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from setuptools import setup


setup()
45 changes: 45 additions & 0 deletions vnpy_paperaccount/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# The MIT License (MIT)
#
# Copyright (c) 2015-present, Xiaoyou Chen
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from pathlib import Path

import importlib_metadata
from vnpy.trader.app import BaseApp

from .engine import PaperEngine, APP_NAME


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


class PaperAccountApp(BaseApp):
""""""
app_name = APP_NAME
app_module = __module__
app_path = Path(__file__).parent
display_name = "模拟交易"
engine_class = PaperEngine
widget_name = "PaperManager"
icon_name = "paper.ico"
Loading

0 comments on commit 8ddf2d5

Please sign in to comment.