Merge branch 'dev' of https://github.com/vnpy/vnpy into dev
This commit is contained in:
commit
0aec6c90be
@ -4,10 +4,6 @@ cache: pip
|
||||
python:
|
||||
- 2.7
|
||||
- 3.6
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- dev
|
||||
install:
|
||||
- pip install -r requirements.txt
|
||||
- pip install flake8 # pytest # add another testing frameworks later
|
||||
@ -15,7 +11,7 @@ before_script:
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
- flake8 . --count --exit-zero --ignore=E265,W2 --max-complexity=10 --max-line-length=127 --statistics
|
||||
script:
|
||||
- true # pytest --capture=sys # add other tests here
|
||||
notifications:
|
||||
|
25
setup.py
25
setup.py
@ -3,17 +3,17 @@
|
||||
'''
|
||||
vn.py - By Traders, For Traders.
|
||||
|
||||
The vn.py project is an open-source quantitative trading framework
|
||||
that is developed by traders, for traders.
|
||||
The vn.py project is an open-source quantitative trading framework
|
||||
that is developed by traders, for traders.
|
||||
|
||||
The project is mainly written in Python and uses C++ for low-layer
|
||||
The project is mainly written in Python and uses C++ for low-layer
|
||||
and performance sensitive infrastructure.
|
||||
|
||||
Using the vn.py project, institutional investors and professional
|
||||
traders, such as hedge funds, prop trading firms and investment banks,
|
||||
can easily develop complex trading strategies with the Event Engine
|
||||
Strategy Module, and automatically route their orders to the most
|
||||
desired destinations, including equity, commodity, forex and many
|
||||
Using the vn.py project, institutional investors and professional
|
||||
traders, such as hedge funds, prop trading firms and investment banks,
|
||||
can easily develop complex trading strategies with the Event Engine
|
||||
Strategy Module, and automatically route their orders to the most
|
||||
desired destinations, including equity, commodity, forex and many
|
||||
other financial markets.
|
||||
'''
|
||||
|
||||
@ -31,7 +31,7 @@ def getSubpackages(name):
|
||||
for dirpath, _dirnames, _filenames in os.walk(name):
|
||||
if os.path.isfile(os.path.join(dirpath, '__init__.py')):
|
||||
splist.append(".".join(dirpath.split(os.sep)))
|
||||
|
||||
|
||||
return splist
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ setup(
|
||||
license='MIT',
|
||||
url='http://www.vnpy.org',
|
||||
description='A framework for developing Quantitative Trading programmes',
|
||||
long_description = __doc__,
|
||||
long_description=__doc__,
|
||||
keywords='quant quantitative investment trading algotrading',
|
||||
classifiers=['Development Status :: 4 - Beta',
|
||||
'Operating System :: Microsoft :: Windows :: Windows 7',
|
||||
@ -60,7 +60,4 @@ setup(
|
||||
'*.h', '*.cpp', '*.bash', '*.txt',
|
||||
'*.dll', '*.lib', '*.so', '*.pyd',
|
||||
'*.dat', '*.ini', '*.pfx', '*.scc', '*.crt', '*.key']},
|
||||
extras_require={
|
||||
'tq': ["tornado>=4.5.1", "sortedcontainers>=1.5.7"],
|
||||
}
|
||||
)
|
||||
extras_require={'tq': ["tornado>=4.5.1", "sortedcontainers>=1.5.7"]})
|
||||
|
@ -108,7 +108,7 @@ class CtpGateway(VtGateway):
|
||||
def connect(self):
|
||||
"""连接"""
|
||||
try:
|
||||
f = file(self.filePath)
|
||||
f = open(self.filePath)
|
||||
except IOError:
|
||||
log = VtLogData()
|
||||
log.gatewayName = self.gatewayName
|
||||
@ -118,6 +118,7 @@ class CtpGateway(VtGateway):
|
||||
|
||||
# 解析json文件
|
||||
setting = json.load(f)
|
||||
f.close()
|
||||
try:
|
||||
userID = str(setting['userID'])
|
||||
password = str(setting['password'])
|
||||
@ -1503,4 +1504,4 @@ class CtpTdApi(TdApi):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user