代码如下: #设置双向持仓 self.exchange.IO(“api”, “POST”, “/fapi/v1/positionSide/dual”, “dualSidePosition=false”) #设置全仓模式 self.exchange.IO(“cross”, True)
报错如下: Futures_OP 4: 400: {“code”:-4046,“msg”:“No need to change margin type.”} Futures_OP 4: 400: {“code”:-4059,“msg”:“No need to change position side.”}