forked from vnpy/vnpy.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog-1.2-release.html
317 lines (290 loc) · 14 KB
/
blog-1.2-release.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!DOCTYPE html>
<html lang="zh"
>
<head>
<title>vn.py框架v1.2发布 - vn.py</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/images/favicon.png" rel="icon">
<link rel="canonical" href="/blog-1.2-release.html">
<meta name="author" content="用Python的交易员" />
<meta name="description" content="距离上一个版本v1.1的发布过去4个月后终于完成了v1.2,主要增加的功能: vn.rpc模块 实现客户端到服务端的跨进程函数调用,同时支持服务端向客户端推送数据。有了这个模块后,可以大幅简化很多用户想要的GUI和引擎分离、网页端界面监控、大运算量策略独立运行、分布式架构等等功能的实现。 vn.shzd和vn.ib接口 直达期货的接口封装vn.shzd已经介入vn.trader,直达属于一家专业度较高的外盘期货经纪商,在速度和技术服务方面有一定的优势,国内很多大型机构偏好使用他们的通道。 初步完成了Interactive Brokers API的封装接口vn.ib,和IbPy相比的一些不同点: vn.ib基于Boost.Python封装了原生Posix C++接口,比起IbPy能提供更好的性能 vn.ib底层代码中添加了异常捕捉功能,避免IbPy的函数触发异常后没有报错直接断开连接,导致无法调试的问题 vn.ib安装时可能需要编译(默认的pyd在Windows7 Python 2.7 32位下编译),IbPy是纯Python的可以直接使用 vn.ib基于较新的IB官方API(9.72 beta ..." />
<meta property="og:site_name" content="vn.py" />
<meta property="og:type" content="article"/>
<meta property="og:title" content="vn.py框架v1.2发布"/>
<meta property="og:url" content="/blog-1.2-release.html"/>
<meta property="og:description" content="距离上一个版本v1.1的发布过去4个月后终于完成了v1.2,主要增加的功能: vn.rpc模块 实现客户端到服务端的跨进程函数调用,同时支持服务端向客户端推送数据。有了这个模块后,可以大幅简化很多用户想要的GUI和引擎分离、网页端界面监控、大运算量策略独立运行、分布式架构等等功能的实现。 vn.shzd和vn.ib接口 直达期货的接口封装vn.shzd已经介入vn.trader,直达属于一家专业度较高的外盘期货经纪商,在速度和技术服务方面有一定的优势,国内很多大型机构偏好使用他们的通道。 初步完成了Interactive Brokers API的封装接口vn.ib,和IbPy相比的一些不同点: vn.ib基于Boost.Python封装了原生Posix C++接口,比起IbPy能提供更好的性能 vn.ib底层代码中添加了异常捕捉功能,避免IbPy的函数触发异常后没有报错直接断开连接,导致无法调试的问题 vn.ib安装时可能需要编译(默认的pyd在Windows7 Python 2.7 32位下编译),IbPy是纯Python的可以直接使用 vn.ib基于较新的IB官方API(9.72 beta ..."/>
<meta property="article:published_time" content="2016-11-10" />
<meta property="article:section" content="文章" />
<meta property="article:author" content="用Python的交易员" />
<!-- Bootstrap -->
<link rel="stylesheet" href="/theme/css/bootstrap.readable.min.css" type="text/css"/>
<link href="/theme/css/font-awesome.min.css" rel="stylesheet">
<link href="/theme/css/pygments/monokai.css" rel="stylesheet">
<link rel="stylesheet" href="/theme/css/style.css" type="text/css"/>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?e8c7573f82d43fa50c895a8e28c49ceb";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/" class="navbar-brand">
<img src="/images/favicon.png" width=""/> vn.py </a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="/pages/quickstart.html">
Quick Start
</a></li>
<li><a href="/pages/blog.html">
日志
</a></li>
<li><a href="/pages/screenshot.html">
截图
</a></li>
<li><a href="/pages/community.html">
社区
</a></li>
<li><a href="/pages/api.html">
API接口
</a></li>
<li><a href="/pages/download.html">
下载
</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="/archives.html"><i class="fa fa-th-list"></i><span class="icon-label">Archives</span></a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
</div> <!-- /.navbar -->
<!-- Banner -->
<style>
#banner{
background-image:url("/images/banner.png");
}
</style>
<div id="banner">
<div class="container">
<div class="copy">
<h1>vn.py</h1>
<p class="intro">Developed by traders, for traders.</p>
</div>
</div>
</div><!-- End Banner -->
<div class="container">
<div class="row">
<div class="col-sm-9">
<section id="content">
<article>
<header class="page-header">
<h1>
<a href="/blog-1.2-release.html"
rel="bookmark"
title="Permalink to vn.py框架v1.2发布">
vn.py框架v1.2发布
</a>
</h1>
</header>
<div class="entry-content">
<div class="panel">
<div class="panel-body">
<footer class="post-info">
<span class="label label-default">Date</span>
<span class="published">
<i class="fa fa-calendar"></i><time datetime="2016-11-10T23:50:41+08:00"> 2016-11-10(周四)</time>
</span>
</footer><!-- /.post-info --> </div>
</div>
<p>距离上一个版本v1.1的发布过去4个月后终于完成了v1.2,主要增加的功能:</p>
<h2>vn.rpc模块</h2>
<p>实现客户端到服务端的跨进程函数调用,同时支持服务端向客户端推送数据。有了这个模块后,可以大幅简化很多用户想要的GUI和引擎分离、网页端界面监控、大运算量策略独立运行、分布式架构等等功能的实现。</p>
<h2>vn.shzd和vn.ib接口</h2>
<p>直达期货的接口封装vn.shzd已经介入vn.trader,直达属于一家专业度较高的外盘期货经纪商,在速度和技术服务方面有一定的优势,国内很多大型机构偏好使用他们的通道。</p>
<p>初步完成了Interactive Brokers API的封装接口vn.ib,和IbPy相比的一些不同点:</p>
<ol>
<li>
<p>vn.ib基于Boost.Python封装了原生Posix C++接口,比起IbPy能提供更好的性能</p>
</li>
<li>
<p>vn.ib底层代码中添加了异常捕捉功能,避免IbPy的函数触发异常后没有报错直接断开连接,导致无法调试的问题</p>
</li>
<li>
<p>vn.ib安装时可能需要编译(默认的pyd在Windows7 Python 2.7 32位下编译),IbPy是纯Python的可以直接使用</p>
</li>
<li>
<p>vn.ib基于较新的IB官方API(9.72 beta)开发,IbPy则是采用了较老的API(9.70 stable)</p>
</li>
</ol>
<h2>增强CTA策略模块</h2>
<p>基于社区用户的反馈,增加了一些vn.trader中CTA模块(ctaAlgo)的功能:</p>
<ol>
<li>
<p>支持多进程参数优化,会自动根据电脑CPU的核心数量启动对应的进程池,大幅提高运算速度减少优化所需的时间,同时保持新优化函数和之前的一致性。</p>
</li>
<li>
<p>CTA实盘策略引擎提供对策略函数运行时的容错功能,避免出现因为某个策略逻辑有误导致整个系统在盘中被挂住或者崩溃的情况,发生异常时引擎会自动捕捉输出在监控界面上,并停止该策略的运行。</p>
</li>
</ol>
<h2>其他</h2>
<ol>
<li>
<p>修改vn.trader中的路径配置方案,允许用户从任意目录启动交易平台(之前必须从vn.trader目录下启动,否则可能找不到模块文件),方便开发和Debug。</p>
</li>
<li>
<p>修复了一些社区提出的小改进点以及bug。</p>
</li>
</ol>
<h2>v1.3计划</h2>
<ol>
<li>
<p>vn.ib接口替换掉IbPy接入到vn.trader中</p>
</li>
<li>
<p>提供中泰证券的XTP柜台接口封装vn.xtp</p>
</li>
<li>
<p>考虑接入LMAX外汇交易平台(真正的外汇交易所)的接口</p>
</li>
</ol>
</div>
<!-- /.entry-content -->
</article>
</section>
</div>
<div class="col-sm-3" id="sidebar">
<aside>
<section class="well well-sm">
<ul class="list-group list-group-flush">
<li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Social</span></h4>
<ul class="list-group" id="social">
<li class="list-group-item"><a href="http://github.com/vnpy/vnpy"><i class="fa fa-github-square fa-lg"></i> Github</a></li>
</ul>
</li>
<li class="list-group-item"><h4><i class="fa fa-external-link-square fa-lg"></i><span class="icon-label">Links</span></h4>
<ul class="list-group" id="links">
<li class="list-group-item">
<a href="http://www.vnpie.com" target="_blank">
官方论坛 - 维恩的派
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.trader" target="_blank">
交易平台
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.event" target="_blank">
事件引擎
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.ctp" target="_blank">
CTP接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.xspeed" target="_blank">
飞创接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.femas" target="_blank">
飞马接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.ksotp" target="_blank">
金仕达期权接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.ksgold" target="_blank">
金仕达黄金接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.sgit" target="_blank">
飞鼠接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/dev/vn.qdp" target="_blank">
QDP接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.oanda" target="_blank">
OANDA接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.ib" target="_blank">
IB接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.shzd" target="_blank">
直达期货接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.okcoin" target="_blank">
OKCoin接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.datayes" target="_blank">
通联数据接口
</a>
</li>
<li class="list-group-item">
<a href="http://github.com/vnpy/vnpy/tree/master/vn.demo" target="_blank">
开发DEMO
</a>
</li>
</ul>
</li>
</ul>
</section>
</aside>
</div>
</div>
</div>
<footer>
<div class="container">
<hr>
<div class="row">
<div class="col-xs-10">© 2017 用Python的交易员
· Powered by <a href="https://github.com/DandyDev/pelican-bootstrap3" target="_blank">pelican-bootstrap3</a>,
<a href="http://docs.getpelican.com/" target="_blank">Pelican</a>,
<a href="http://getbootstrap.com" target="_blank">Bootstrap</a> </div>
<div class="col-xs-2"><p class="pull-right"><i class="fa fa-arrow-up"></i> <a href="#">Back to top</a></p></div>
</div>
</div>
</footer>
<script src="/theme/js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/theme/js/bootstrap.min.js"></script>
<!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
<script src="/theme/js/respond.min.js"></script>
<script src="/theme/js/bodypadding.js"></script>
</body>
</html>