Skip to content

Commit 53ee34e

Browse files
committedMay 25, 2017
first commit
1 parent 0246b5f commit 53ee34e

21 files changed

+8591
-0
lines changed
 

‎.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*.egg-info
2+
.cache/
3+
dist/
4+
.idea
5+
.vscode
6+
__pycache__
7+
*.bcolz
8+
*.pk
9+
*.h5
10+
*.pyc
11+
.coverage
12+
.tox

‎requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dateutils
2+
six
3+
numpy
4+
rqalpha

‎rqalpha_mod_vnpy/__init__.py

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Copyright 2017 Ricequant, Inc
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
19+
__config__ = {
20+
"gateway_type": 'CTP',
21+
"vn_trader_path": None,
22+
"all_day": True,
23+
"query_interval": 2,
24+
"default_data_source": True,
25+
"temp_path": "./vnpy_temp",
26+
"CTP": {
27+
'userID': None,
28+
'password': None,
29+
'brokerID': '9999',
30+
'tdAddress': 'tcp://180.168.146.187:10030',
31+
'mdAddress': 'tcp://180.168.146.187:10031'
32+
}
33+
}
34+
35+
36+
def load_mod():
37+
from .mod import VNPYMod
38+
return VNPYMod()

‎rqalpha_mod_vnpy/ctp/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)
Please sign in to comment.