vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 62
声望: 3

通过CTA策略下单,vnpy显示“提交中”,但实际已经成交了。策略本身没有任何报错信息。

description

连接接口出现以下错误信息:

00:02:39.204,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:39.179,查询账户请求出错,代码:1078,信息:In settlement or delivery. Unable to get assets of some contracts.,HUOBIS
。。。重复出现这2钟错误信息

any idea?

Member
avatar
加入于:
帖子: 2015
声望: 133

报错里说了,交割结算中,无法查询

Member
avatar
加入于:
帖子: 62
声望: 3

xiaohe wrote:

报错里说了,交割结算中,无法查询
。。。错误信息我也懂。。。但是一直报,,,关建是订单状态“提交中”,实际已经成交了!

时间,信息,接口
00:03:11.252,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:03:10.265,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:03:09.254,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:03:08.255,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:03:07.255,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:03:06.245,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:03:05.246,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:03:04.252,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:03:03.253,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:03:02.242,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:03:01.248,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:03:00.250,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:59.249,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:58.240,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:57.240,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:56.237,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:55.230,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:54.227,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:53.232,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:52.222,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:51.230,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:50.242,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:49.237,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:48.219,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:47.227,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:46.333,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:45.226,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:44.241,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:43.231,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:42.220,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:41.224,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:40.219,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:39.204,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:39.179,查询账户请求出错,代码:1078,信息:In settlement or delivery. Unable to get assets of some contracts.,HUOBIS
00:02:38.204,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:38.175,查询账户请求出错,代码:1078,信息:In settlement or delivery. Unable to get assets of some contracts.,HUOBIS
00:02:37.207,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
00:02:37.181,查询账户请求出错,代码:1078,信息:In settlement or delivery. Unable to get assets of some contracts.,HUOBIS
00:02:36.209,查询持仓请求出错,代码:1079,信息:In settlement or delivery. Unable to get positions of current contract.,HUOBIS
Member
avatar
加入于:
帖子: 2015
声望: 133

description

Member
avatar
加入于:
帖子: 62
声望: 3

我交易的是永续合约。。。anyway,最大的问题是订单状态显示“提交中”,但实际已经成交了!这就导致策略里self.pos = 0. 希望我已经把问题说明白了。。。

Member
avatar
加入于:
帖子: 2015
声望: 133

请自己调整一下交易时间。交易结算时无法查询订单和持仓等信息,自然就不会有信息返回,订单状态就不会改变了。

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3

沪公网安备 31011502017034号