vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 32
声望: 0

时间,信息,接口
09:10:05.44,"委托失败,状态码:400,信息:{""code"":-4061,""msg"":""Order's position side does not match user's setting.""}",BINANCES
09:10:02.558,"委托失败,状态码:400,信息:{""code"":-4061,""msg"":""Order's position side does not match user's setting.""}",BINANCES
09:10:01.542,"委托失败,状态码:400,信息:{""code"":-4061,""msg"":""Order's position side does not match user's setting.""}",BINANCES
08:44:00.617,"委托失败,状态码:400,信息:{""code"":-4061,""msg"":""Order's position side does not match user's setting.""}",BINANCES
08:43:43.460,"委托失败,状态码:400,信息:{""code"":-4061,""msg"":""Order's position side does not match user's setting.""}",BINANCES
08:43:36.950,"委托失败,状态码:400,信息:{""code"":-4061,""msg"":""Order's position side does not match user's setting.""}",BINANCES
08:43:33.979,"委托失败,状态码:400,信息:{""code"":-4061,""msg"":""Order's position side does not match user's setting.""}",BINANCES
08:43:30.489,"委托失败,状态码:400,信息:{""code"":-4061,""msg"":""Order's position side does not match user's setting.""}",BINANCES
08:39:27.169,行情Websocket API连接刷新,BINANCES
08:39:26.389,"获取历史数据失败,状态码:400,信息:{""code"":-1023,""msg"":""Start time is greater than end time.""}",BINANCES
08:39:26.295,获取历史数据成功,BTCUSD_PERP - 1m,2021-02-24 16:00:00+08:00 - 2021-02-25 08:39:00+08:00,BINANCES
20:32:42.588,"委托失败,状态码:400,信息:{""code"":-1106,""msg"":""Parameter 'timeInForce' sent when not required.""}",BINANCES
20:32:28.473,行情Websocket API连接刷新,BINANCES
20:32:10.558,交易Websocket API连接成功,BINANCES
20:32:10.289,合约信息查询成功,BINANCES
20:32:10.227,委托信息查询成功,BINANCES
20:32:10.163,持仓信息查询成功,BINANCES
20:32:10.83,账户资金查询成功,BINANCES
20:32:09.868,REST API启动成功,BINANCES

Member
avatar
加入于:
帖子: 3164
声望: 185

请检查账户是否有做空权限,以及持仓是否设置为了全仓模式。

Member
avatar
加入于:
帖子: 2
声望: 0

设置了合约持仓模式,单向双向持仓了吗

Member
avatar
加入于:
帖子: 32
声望: 0

设置成了双向持仓模式的,但是依然报这个错误

Member
avatar
加入于:
帖子: 3164
声望: 185

订单的持仓方向和用户设置不一致。如果你单向,订单就不能填开平。如果你双向,订单就要填开平。

Member
avatar
加入于:
帖子: 32
声望: 0

好的,多谢!

Member
avatar
加入于:
帖子: 26
声望: 0

同样的问题,已经设置了全仓模式和双向持仓,无论 多开 空开 都不行 还是不匹配
description

description

Member
avatar
加入于:
帖子: 3164
声望: 185

请设为单向吧

Member
avatar
加入于:
帖子: 24
声望: 0

郭二蛋 wrote:

同样的问题,已经设置了全仓模式和双向持仓,无论 多开 空开 都不行 还是不匹配
description

description

遇到同样的问题,好兄弟解决了嘛? 求指点 谢谢啦

Member
avatar
加入于:
帖子: 20
声望: 0

仓位模式要改成 单向持仓。

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

沪公网安备 31011502017034号