修改tick2trade部分信息
This commit is contained in:
parent
b91f0dba61
commit
af985ac39a
@ -2,4 +2,6 @@
|
|||||||
|
|
||||||
本文件夹下的内容主要是围绕vn.py在实际交易中的一系列具体应用,包括说明文档和代码例子。
|
本文件夹下的内容主要是围绕vn.py在实际交易中的一系列具体应用,包括说明文档和代码例子。
|
||||||
|
|
||||||
* performance:《百倍加速!Python量化策略的算法性能提升指南》
|
* performance:[《百倍加速!Python量化策略的算法性能提升指南》](http://zhuanlan.zhihu.com/p/24168485)
|
||||||
|
|
||||||
|
* tick2trade: [《vn.trader的tick-to-trade延时测试》](http://zhuanlan.zhihu.com/p/24242972)
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"brokerID": "9999",
|
"brokerID": "9999",
|
||||||
"tdAddress": "tcp://180.168.146.187:10000",
|
"tdAddress": "tcp://180.168.146.187:10000",
|
||||||
"password": "19890624",
|
"password": "simnow申请",
|
||||||
"mdAddress": "tcp://180.168.146.187:10010",
|
"mdAddress": "tcp://180.168.212.228:41213",
|
||||||
"userID": "000300"
|
"userID": "simnow申请"
|
||||||
}
|
}
|
@ -306,7 +306,7 @@ class MainEngine(object):
|
|||||||
|
|
||||||
order_time = self.sendOrder(req, tick.gatewayName)
|
order_time = self.sendOrder(req, tick.gatewayName)
|
||||||
|
|
||||||
print u'耗时:', (order_time - tick.tick_time)*100000/tick.frequency_time, u'微秒'
|
print u'耗时:', (order_time - tick.tick_time)*1000/tick.frequency_time, u'毫秒'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user