我正在使用kucoin-futures-python-sdk。我通过以下命令开仓:
x["open_order_id"] = client.create_limit_order(my_symbol, open_side, my_leverage, x["trading_size"], x["entrance_price"])
当我使用此命令平仓时:
x["close_order_id"] = client.create_limit_order(my_symbol, "","","", x["tp3"], closeOrder = True, stopPrice = x["sl1"], stop = c_s_dir, stopPriceType = "TP", type = "limit")
Kucoin 下达新的止损单。我需要一个关闭前一个头寸的止损单。根据Kucoin API Documentation,我正确设置了 closeOrder = True,但它不起作用。我怎样才能做到这一点并关闭头寸?