3.54K 浏览
0
order = api.insert_order(symbol="SHFE.rb2001", direction="SELL", offset="CLOSE", limit_price=quote.bid_price1, volume=1)

原持仓有”螺纹钢“ 2手多单,自动执行上面代码后,怎么返回结果是自动撤单?请高手指导,谢谢!

ishanning 编辑评论 2019年10月25日

重看文档,解决

因为上期所平今特殊,跟其他所不一样。
参数修改为offset=”CLOSETODAY”就行