日志显示平仓了,实际未平仓 19.21的是手动平的
日期 平台 类型 价格 数量 信息 2022-05-17 19:21:50 收益 1680.68143944 2022-05-17 19:19:01 信息 CLOSEOUT 信号所在行数: 26 信号次数: 1 触发周期: 2022-05-17 19:19:00 2022-05-17 19:18:43 Futures_Binance 错误 Buy(30381.2, 0.808): 400: {“code”:-2019,“msg”:“Margin is insufficient.”} 2022-05-17 19:18:43 Futures_Binance 错误 Buy(30383.8, 0.304): 400: {“code”:-2019,“msg”:“Margin is insufficient.”} 2022-05-17 19:18:42 Futures_Binance 错误 Buy(30385.7, 15.811): 400: {“code”:-2019,“msg”:“Margin is insufficient.”} 2022-05-17 19:18:41 Futures_Binance 错误 Buy(30385.5, 16.884): 400: {“code”:-2019,“msg”:“Margin is insufficient.”} 2022-05-17 19:18:40 Futures_Binance 错误 Buy(30382.5, 1.409): 400: {“code”:-2019,“msg”:“Margin is insufficient.”} 2022-05-17 19:18:40 Futures_Binance 错误 Buy(30386.9, 0.251): 400: {“code”:-2019,“msg”:“Margin is insufficient.”} 2022-05-17 19:18:39 Futures_Binance 买入开多 - swap 30387.8 0.184 swap Ask {“Price”:30387.3,“Amount”:0.126} 2022-05-17 19:18:38 Futures_Binance 错误 Buy(30385.8, 1.674): 400: {“code”:-2019,“msg”:“Margin is insufficient.”} 2022-05-17 19:18:37 Futures_Binance 买入开多 - swap 30385.8 0.082 swap Ask {“Price”:30385.3,“Amount”:0.077}
发明者量化-小小梦 检查下是不是下单头寸超出了,变成开仓了。报错意思是保证金不足,通常是开仓的时候报。